How To Create Simple Wordlist Generator Using Python?


Hello Friends 

Today, I am Going To Share A Python Script that can create wordlist for brute force attacks. and We will  Also Talk About Python Programming Language Features.


As Wikipedia Says:

Python is a widely used high-level, general-purpose, interpreted, dynamic programming language. Its design philosophy emphasizes code readability, and its syntax allows programmers to express concepts in fewer lines of code than would be possible in languages such as C++ or Java. The language provides constructs intended to enable clear programs on both a small and large scale.
Python supports multiple programming paradigms, including object-oriented, imperative and functional programming or procedural styles. It features a dynamic type system and automatic memory management and has a large and comprehensive standard library.
Python interpreters are available for many operating systems, allowing Python code to run on a wide variety of systems. Using third-party tools, such as Py2exe or Pyinstaller, Python code can be packaged into stand-alone executable programs for some of the most popular operating systems, so Python-based software can be distributed to, and used on, those environments with no need to install a Python interpreter.

That's Why Python Is My Favourite Programming Language.

OK! Now let's move ahead and

talk About Word list Generator.

Here, For This Tutorial, I Created A Word list Generator Script And its Speed is 900000 Word Per Second on my system. hmm, pretty good speed.

Because my example is very easy to understand.
So, here i am directly posting my python codes.

Python Word List Generator Codes:


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/usr/bin/python
import itertools 
import time
import sys


info = '''
                              
######################################################
                By S.S.B Group                          
######################################################

    Suraj Singh
    Admin
    S.S.B Group
    surajsinghbisht054@gmail.com
    http://bitforestinfo.blogspot.in/

    Note: We Feel Proud To Be Indian
######################################################

#######################################################################
# High Speed Wordlist Generator : Compitable To All Operating Systems #
#######################################################################
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
usages Example:>>
        Please Enter Here All Word for combination :>> ABCabc123';./
        please enter here lengh of words :>>4
        please enetr here name of Wordlist :>>>pass.txt
**********************************************************************
**********************************************************************
'''
print info
print ""
chrs=raw_input("[+] Please Enter Here All Word for combination :>> ")
print ""
l=int(raw_input("[+] Please Enter Minimum Lenth Of Words  : >>  "))
k = l
print ""
j=int(raw_input("[+] Please Enter Maximum Lenth Of Words  : >>  "))
n = j+1
print ""
mtl=len(chrs)
p=[]
zt = raw_input("[+] Please Enetr Here Name Of Wordlist File :>>> ")
for ltp in xrange(k, n):
 ans=mtl**ltp
 p.append(ans)
tline=sum(p)
print "[+] Numbers Of Total Lines : ", tline
raw_input('[+] Are You Ready ?[Press Enter]')

print "\n\n+++++++++++++++++++++++++ Please Wait ++++++++++++++++++++++++++++++++++++++++\n \n"
time1=time.asctime()
start=time.time()

psd = open(zt, 'a')
for i in xrange(k,n):
  r=i*100/n
  l=str(r)+' percent '
  sys.stdout.write("\r%s" % l)
  sys.stdout.flush()
  psd.flush()
  for xs in itertools.product(chrs, repeat=i):
    psd.write(''.join(xs)+'\n')
psd.flush()    
psd.close()
sys.stdout.write("\rDone Sucessfully")
print '\n\n+++++++++++++++++++++++++ Process Report +++++++++++++++++++++++++++++++++++++\n'
print '\t [+] Process Started                      :   ', time1
end=time.time()
print '\t [+] Process Completed                    :   ', time.asctime()
totaltime=end-start
print '\t [+] Total Time Consumed                  :   ', totaltime, 'second'
rate=tline/totaltime
print '\t [+] Rate Of Words Generating Per Seconds :   ', rate 

print '\n+++++++++++++++++++++++++ Please Wait ++++++++++++++++++++++++++++++++++++++++'

print '''
\t***************************************************
\t*       Successfully created thanks for using     *
\t***************************************************

'''
print ""
raw_input("[*] Press Enter For Exit")

Now, if you like my example and wants to download this example codes.
Then,
You Can Download From My Github Repository.
For Any Type Of Suggestion , Post Comment
or contact me
SSB
Email: surajsinghbisht054@gmail.com

Share this

Related Posts

Previous
Next Post »