User Tag List

Results 1 to 5 of 5

Thread: [Python]Simple Thhreaded WordList Generator

  1. #1

    Default [Python]Simple Thhreaded WordList Generator

    Took me about 3 minutes, was bored.

    Code:
    import threading
    import random
    import string
    
    """Created by: Saibal"""
    
    words = []
    
    class First_Chars ( threading.Thread ):
    
       def run ( self ):
          global words
          letters = "abcdefghijklmnopqrstuvwxyz"
          numbers = "12345678910"
          word1, word2, word3 = [random.choice(letters) + random.choice(numbers) for i in xrange(3)]
          the_word = "%s%s%s" % (word1,word2,word3)
          ok_done = the_word
          words.append(str(ok_done[:]))
    
    class Second_Chars ( threading.Thread ):
        def start ( self ):
            global words
            letters = "abcdefghijklmnopqrstuvwxyz"
            numbers = "12345678910"
            word1, word2, word3 = [random.choice(letters) + random.choice(numbers) for i in xrange(3)]
            the_word = "%s%s%s" % (word1,word2,word3)
            ok_done = the_word
            words.append(str(ok_done[:]))
    
    
    
    def Build_File():
        global words
        f = open("word_list.txt", "w")
        for j in words:
            print j
            f.write("%s\n"%j)
        f.close()
             
    amount = int(raw_input("Amount of words to make: "))
    for x in xrange ( amount ):
       First_Chars().start()
       Second_Chars().start()
    Build_File()
    print "Finished."

  2. #2
    VIP Member
    • 's Gadgets
      • Motherboard:
      • Gigabyte
      • CPU:
      • Q6600
      • RAM:
      • 3GB DDR II
      • Hard Drive:
      • 320GB
      • Graphics Card:
      • 8600GT :(
      • Speakers/HPs:
      • Cosonic
      • Keyboard:
      • A4Tech
      • Mouse:
      • A4Tech
      • Controller:
      • Logitech RumblePad
      • ISP:
      • BDCom
      • Download Speed:
      • 20KB/s
      • Upload Speed:
      • 3MB/s
    xk::v (G展mmjaw)'s Avatar
    Join Date
    Feb 2008
    Location
    Dhaka
    Posts
    3,551

    Default

    since you seem to be very interested in programming,
    then why dont you give some tutorials rather than ur HACKS!!

    like teach some people, how they create a form and then store the value of that form in a database on the server and stuffz like that..

    might catch the people then!!
    http://banglagamer.com/forums/image.php?type=sigpic&userid=19&dateline=1231856079

  3. #3
    Member
    • xK::CREATOR's Gadgets
      • Motherboard:
      • gigabyte ga-g31m-s2l
      • CPU:
      • Core 2 duo E7200, 2.5 ghz of clockspeed, 3mb of L2 cache, 1033 mhz FSB
      • RAM:
      • 2 gb trancend, 800 mhz bus | Baraite chai, shamortho nai.
      • Hard Drive:
      • samsung 160 gb sata
      • Graphics Card:
      • xfx 8500 GT
      • Display:
      • 17" dell e178wf lcd <--- if it were a ladeh, she would have definitely been my wife.
      • Sound Card:
      • Built in.
      • Speakers/HPs:
      • Cosonic.
      • Keyboard:
      • Naah, i am more into guitars..
      • Mouse:
      • Razer Salmosa
      • Controller:
      • None.
      • Power Supply:
      • Delux 450 watt | power tree UPS | Rahim afrooz IPS | Italian power substation
      • Optical Drive:
      • Fibre optic er naam shunsi.. optical drive kya cheese hain ?? :S
      • Benchmark Scores:
      • Naah, i'd rather preffer sitting on chairs.
      • Comment:
      • Shobai to shukhi hote chaye.. tobu keu shukhi hoy, keu hoyna.. :'(
      • ISP:
      • Link3
      • Download Speed:
      • 40~
      • Upload Speed:
      • 40~
    xK::CREATOR's Avatar
    Join Date
    Feb 2008
    Location
    Dhanmondi , Dhaka, Bangladesh
    Posts
    2,689

    Default

    amar ekta request ase. like bivinno site e form ase na? eishob form auto fill korar jonno roboform type onek soft ase.

    but ami shunsi shudhu matro javascript diya kaj ta kora jaye. like

    something like this :

    http://www.willmaster.com/library/ja...javascript.php

    Code:
    <script type="text/javascript" language="JavaScript">
    <!-- Copyright 2006 Bontrager Connection, LLC
    function FillForm() {
    // Specify form's name between the quotes on next line.
    var FormName = "MyForm";
    var questionlocation = location.href.indexOf('?');
    if(questionlocation < 0) { return; }
    var q = location.href.substr(questionlocation + 1);
    var list = q.split('&');
    for(var i = 0; i < list.length; i++) {
       var kv = list[i].split('=');
       if(! eval('document.'+FormName+'.'+kv[0])) { continue; }
       kv[1] = unescape(kv[1]);
       if(kv[1].indexOf('"') > -1) {
          var re = /"/g;
          kv[1] = kv[1].replace(re,'\\"');
          }
       eval('document.'+FormName+'.'+kv[0]+'.value="'+kv[1]+'"');
       }
    }
    FillForm();
    //-->
    </script>
    but egular mane jodi ektu spoon fed korte paren tahole upokar hoto.

  4. #4

    Default Re: [Python]Simple Thhreaded WordList Generator

    Quote Originally Posted by TE.Vy席sh View Post
    since you seem to be very interested in programming,
    then why dont you give some tutorials rather than ur HACKS!!

    like teach some people, how they create a form and then store the value of that form in a database on the server and stuffz like that..

    might catch the people then!!
    Yea, it's a time pass. FINE, I'll make some tuts. These, technically, aren't hacks lol.

    You serious? That's common knowledge right there. If you JUST opened MSSQL, you'd know how to do it.

    THE_CREATOR: I don't know Java. Useless and stupid piece of programming, my opinion.

  5. #5

    Default Re: [Python]Simple Thhreaded WordList Generator

    TE.Grim: I don't believe in tutorials. I learned all by myself, though I have to admit I got a few nudges here and there. It's a great a way of learning things and you have a great sense of accomplishment.

    TE.Creator: After diving deeper into Java (I take back what I said about it being useless... xD), it depends on the URL parameter. You have to fill in the name values and then execute the script. Good thing about it though is that it won't give an error message if there is no parameter, so your computer won't go "BEEP BEEP BEEP" until you restart.

Similar Threads

  1. [07-08] D飼x{SRS 1
    By KinG SRS in forum Goal of The Month
    Replies: 14
    Last Post: July 20th, 2008, 18:23
  2. Replies: 0
    Last Post: July 19th, 2008, 14:43

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 0.17923 seconds with 14 queries.