Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- host = get_shell.host_computer
- passwords = host.File("/home/"+active_user+"/Cracking/passwords").content.split("\n")
- hashes = host.File("/home/"+active_user+"/Cracking/hashes").content.split("\n")
- cryptools = include_lib("crypto")
- uncracked = []
- for hash in hashes
- columnindex = hash.indexOf(":")
- before = hash[:columnindex]
- after = hash[columnindex+1:]
- i=0
- for password in passwords
- if md5(password) == after then
- print(before + ":" + password)
- i=1
- else
- continue
- end if
- end for
- if i == 0 then
- uncracked.push(hash)
- end if
- end for
- a=0
- for uncrack in uncracked
- a=a+1
- f=""+a
- host.touch("/home/"+active_user+"/Cracking", "ignoreme"+f)
- myfile = host.File("/home/"+active_user+"/Cracking/"+"ignoreme"+f)
- myfile.set_content(uncrack)
- password = cryptools.decipher(myfile.path)
- if not password then print("Invalid hash: " + uncrack)
- print(uncrack[:uncrack.indexOf(":")]+":"+password)
- end for
Add Comment
Please, Sign In to add comment