ComputerScienceWorld

How To make Password List by using Python.




Hey Python user,
I going to show you a project.
It's very easy and interesting Project.
if you are coming form How to Hack any User Account.
here, you see a dictionary list want for the attack.


For using this project:

  1. First, You need to download Python (upper than 3.6).
  2. Install Random module using any terminal (CMD, PowerShell or any other).
  3. Type pip install random2 or Random Module.


How to use this Project.

* Enter minimum length :  (Default is value is 8 for all user account like FB, IG and more) after the Process, you can see the passwdlist.txt is ready.

* Enter maximum length :  as your wish (greater than 20 will take many Time and Storage)


from random import *
# import string

# You known user password length that's good
# if you don't known min length, type="8"
minlen = int(input("Enter min amount of word length : "))
# if you don't known max length, type="25"
maxlen = int(input("Enter max amount of word length : "))
# range of 8 to 25 will take much Time.

# passwdlist.txt will make automatically and Add words
adding = open("passwdlist.txt", 'a')

# you can replace value of listword = string.printable or string.letter+string.digits+string.punctuation
listword = "abcdeghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ`!@#$%^&*()_+|=\-[{]};:'"",><./?"

listdigit = list(listword)
# list(listword) helps all digits, symbols, words into string list

while True:
    for i in range(minlen,maxlen+1):
        words = choices(listdigit,k=i) # K is length of word btw minlen to maxlen given by i
        joining = "".join(words) # join all letters and make a word
        adding.write(joining) # add all words in passwdlist.txt file
        adding.write("\n")
        print(joining) # here you can see output of word




If you have any doubt or query:

Visit to my Page:
Facebook : https://www.facebook.com/piyush.baghel.7583/
Link In : https://www.linkedin.com/in/piyush-baghel-4127aa220/





Python