Doddy

MD5 Cracker 0.2

Jan 1st, 2015
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.91 KB | None | 0 0
  1. #!usr/bin/ruby
  2. #MD5 Cracker 0.2
  3. #(C) Doddy Hackman 2015
  4.  
  5. require "open-uri"
  6. require "net/http"  
  7.  
  8. # Functions
  9.  
  10. def toma(web)
  11.     begin
  12.         return open(web, "User-Agent" => "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.0) Gecko/20100101 Firefox/25.0").read
  13.     rescue
  14.         return "Error"
  15.     end
  16. end
  17.  
  18. def response_code(web)
  19.     begin
  20.         return Net::HTTP.get_response(URI(web)) .code
  21.     rescue
  22.         return "404"
  23.     end
  24. end
  25.  
  26. def tomar(web,arg)
  27.     begin
  28.         headers = {"User-Agent" => "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.0) Gecko/20100101 Firefox/25.0"}
  29.         uri = URI(web)
  30.         http = Net::HTTP.new(uri.host, uri.port)
  31.         return http.post(uri.path,arg, headers).body
  32.     rescue
  33.         return "Error"
  34.     end
  35. end
  36.  
  37. def crack(md5)
  38.  
  39.     print "\n[+] Cracking ...\n\n"
  40.  
  41.     code = tomar("http://md5online.net/index.php","pass="+md5+"&option=hash2text&send=Submit")
  42.  
  43.     if code=~/pass : <b>(.*?)<\/b>/
  44.         password = $1
  45.         print "[+] md5online.net -> "+password+"\n"
  46.     else
  47.         print "[-] md5online.net -> Not Found" + "\n"
  48.     end
  49.    
  50.     code = tomar("http://md5.my-addr.com/md5_decrypt-md5_cracker_online/md5_decoder_tool.php","md5="+md5)
  51.  
  52.     if code=~/<span class='middle_title'>Hashed string<\/span>: (.*?)<\/div>/
  53.         password = $1
  54.         print "[+] md5.my-addr.co -> "+password+"\n"
  55.     else
  56.         print "[-] md5.my-addr.co -> Not Found" +"\n"
  57.     end
  58.  
  59.     code = tomar("http://md5decryption.com/index.php","hash="+md5+"&submit=Decrypt It!")
  60.  
  61.     if code=~/Decrypted Text: <\/b>(.*?)<\/font>/
  62.         password = $1
  63.         print "[+] md5decryption.com -> "+password+"\n"
  64.     else
  65.         print "[-] md5decryption.com -> Not Found"+"\n"
  66.     end
  67.    
  68.     print "\n[+] Finished"
  69.  
  70. end
  71.  
  72. def uso
  73.     print "\n[+] Sintax : ruby md5cracker.rb <md5>\n"
  74. end
  75.  
  76. def  head
  77.     print "\n\n-- == MD5 Cracker 0.2 == --\n\n"
  78. end
  79.  
  80. def copyright
  81.     print "\n\n-- == (C) Doddy Hackman 2015 == --\n\n"
  82. end
  83.  
  84. #
  85.  
  86. md5 = ARGV[0]
  87.  
  88. head()
  89.  
  90. if !md5
  91.     uso()
  92. else
  93.     crack(md5)
  94. end
  95.  
  96. copyright()
  97.  
  98. #The End ?
Add Comment
Please, Sign In to add comment