SHARE
TWEET

Untitled

a guest Apr 13th, 2019 24 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. host = get_shell.host_computer
  2. passwords = host.File("/home/"+active_user+"/Cracking/passwords").content.split("\n")
  3. hashes = host.File("/home/"+active_user+"/Cracking/hashes").content.split("\n")
  4. cryptools = include_lib("crypto")
  5. uncracked = []
  6. for hash in hashes
  7.     columnindex = hash.indexOf(":")
  8.     before = hash[:columnindex]
  9.     after = hash[columnindex+1:]
  10.     i=0
  11.     for password in passwords
  12.         if md5(password) == after then
  13.             print(before + ":" + password)
  14.             i=1
  15.         else
  16.             continue
  17.         end if
  18.     end for
  19.     if i == 0 then
  20.         uncracked.push(hash)
  21.     end if
  22. end for
  23. a=0
  24. for uncrack in uncracked
  25.     a=a+1
  26.     f=""+a
  27.     host.touch("/home/"+active_user+"/Cracking", "ignoreme"+f)
  28.     myfile = host.File("/home/"+active_user+"/Cracking/"+"ignoreme"+f)
  29.     myfile.set_content(uncrack)
  30.     password = cryptools.decipher(myfile.path)
  31.     if not password then print("Invalid hash: " + uncrack)
  32.     print(uncrack[:uncrack.indexOf(":")]+":"+password)
  33. end for
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top