Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """made by cyborgs.txt
- 26.10.2014(updated later)
- python 2.7
- description:random bruteforcer
- long passwords that are made of random characters(let's say: "3a7\@ssdm4%)ScfgdsgzfdR/DDSiaf")
- are often impossible to crack in reasonable amount of time
- so I made this random bruteforcer that tries random combinations
- and compares it with value of the hash.
- ADVICE:use this as your last option AFTER you try searching
- online databases,wordlist attack,and bruteforce up to 8
- characters.
- IMPORTANT:WHAT EVER YOU DO WITH THIS IS YOUR OWN RESPONSIBILITY(I know I'm boring with that but I want to
- be sure that if you do something illegal it's NOT my fault)
- NOTE:I think I'll update this,maybe add some support for other algorithams
- I used range of characters from ascii table in range 32(space) to 126(~) however you can change it by changing values
- at line i putted comment on.Alternatievly you can change code and use list of characters remember that for some
- characters you'll need to put escape characters(like:' or " character)
- STOP SCRIPT AND MAKE WORDLIST WITH CTRL+C
- """
- import hashlib
- import random
- def hashCracker():
- yourHash=raw_input("Enter your hash here:")
- minimum=raw_input("Minimum lenght of password:")
- maximum=raw_input("Maximum length of password:")
- minimum=int(minimum)
- maximum=int(maximum)
- hashLen=len(yourHash)
- if hashLen !=32:
- print "error: your hash is invalid please submit valid MD5 hash"
- hashCracker()
- try:
- checkHash=int(yourHash,16)
- except ValueError:
- print "error: your hash is invalid please submit valid MD5 hash"
- hashCracker()
- yourHash=yourHash.lower()
- password=""
- listOfTriedPasswords=[]#append tried passwords here
- loop=True
- subloop=True
- passwordsTried=0
- try:
- while loop:
- while subloop:
- passLenght=random.randint(minimum,maximum)
- for i in range(passLenght):
- x=random.randint(97,122) #change this values to change charset(characters) used just look at ascii-table and change it
- password+=chr(x)
- break
- #check if password is already tried if yes try again
- checkPassword=password in listOfTriedPasswords
- if checkPassword==False:
- hashedPassword=hashlib.md5(password.encode())
- if yourHash==hashedPassword.hexdigest():
- print "hash cracked password is: "
- print password
- break
- print "not cracked yet" #you may remove this
- print "current password:",password#,this
- listOfTriedPasswords.append(password)
- ListLen=len(listOfTriedPasswords)
- strListLen=str(ListLen)
- print "currently tried",strListLen
- password=""
- except KeyboardInterrupt:
- wordlist=open("wordlist.txt","w")
- for i in listOfTriedPasswords:
- wordlist.write(i)
- wordlist.write("\n")
- hashCracker()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement