Doddy

MD5 Cracker 0.2 (Tk)

Jan 1st, 2015
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 2.67 KB | None | 0 0
  1. #!usr/bin/ruby
  2. #MD5 Cracker 0.2
  3. #(C) Doddy Hackman 2015
  4.  
  5. require "tk"
  6. require "open-uri"
  7. require "net/http"
  8.  
  9. #Functions
  10.  
  11. # Functions
  12.  
  13. def toma(web)
  14.     begin
  15.         return open(web, "User-Agent" => "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.0) Gecko/20100101 Firefox/25.0").read
  16.     rescue
  17.         return "Error"
  18.     end
  19. end
  20.  
  21. def response_code(web)
  22.     begin
  23.         return Net::HTTP.get_response(URI(web)) .code
  24.     rescue
  25.         return "404"
  26.     end
  27. end
  28.  
  29. def tomar(web,arg)
  30.     begin
  31.         headers = {"User-Agent" => "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.0) Gecko/20100101 Firefox/25.0"}
  32.         uri = URI(web)
  33.         http = Net::HTTP.new(uri.host, uri.port)
  34.         return http.post(uri.path,arg, headers).body
  35.     rescue
  36.         return "Error"
  37.     end
  38. end
  39.  
  40. #
  41.  
  42. window = TkRoot.new { title "MD5 Cracker 0.2 (C) Doddy Hackman 2015" ; background "black" }
  43. window['geometry'] = '300x300-20+10'
  44.  
  45. TkLabel.new(window) do
  46.     background "black"
  47.     foreground "green"
  48.     text "     MD5 : "
  49.     place('relx'=>"0.1",'rely'=>"0.1")
  50. end
  51.  
  52. md5 = TkEntry.new(window){
  53.     background "black"
  54.     foreground "green"
  55.     width 25
  56.     place('relx'=>0.3,'rely'=>0.1)
  57. }
  58.  
  59. TkLabel.new(window) do
  60.     background "black"
  61.     foreground "green"
  62.     text "Console"
  63.     place('relx'=>0.4,'rely'=>0.2)
  64. end
  65.  
  66. console =TkText.new(window) do
  67.     background "black"
  68.     foreground "green"
  69.     width 30
  70.     height 10
  71.     place('relx'=>0.1,'rely'=>0.3)
  72. end
  73.  
  74. TkButton.new(window) do
  75.     text "Crack It"
  76.         background "black"
  77.     foreground "green"
  78.     width 17
  79.     activebackground "green"
  80.     highlightbackground  "green"
  81.     command proc{
  82.         md5 = md5.value.to_s
  83.        
  84.         console.insert("end","[+] Cracking ...\n\n")
  85.        
  86.         code = tomar("http://md5online.net/index.php","pass="+md5+"&option=hash2text&send=Submit")
  87.         if code=~/pass : <b>(.*?)<\/b>/
  88.             password = $1
  89.             console.insert("end","[+] md5online.net -> "+password+"\n"  )
  90.         else
  91.             console.insert("end","[-] md5online.net -> Not Found" + "\n" )
  92.         end
  93.    
  94.         code = tomar("http://md5.my-addr.com/md5_decrypt-md5_cracker_online/md5_decoder_tool.php","md5="+md5)
  95.  
  96.         if code=~/<span class='middle_title'>Hashed string<\/span>: (.*?)<\/div>/
  97.             password = $1
  98.             console.insert("end","[+] md5.my-addr.co -> "+password+"\n")
  99.         else
  100.             console.insert("end","[-] md5.my-addr.co -> Not Found" +"\n")
  101.         end
  102.  
  103.         code = tomar("http://md5decryption.com/index.php","hash="+md5+"&submit=Decrypt It!")
  104.  
  105.         if code=~/Decrypted Text: <\/b>(.*?)<\/font>/
  106.             password = $1
  107.             console.insert("end","[+] md5decryption.com -> "+password+"\n")
  108.         else
  109.             console.insert("end","[-] md5decryption.com -> Not Found"+"\n")
  110.             end
  111.        
  112.         console.insert("end","\n[+] Finished\n" )
  113.  
  114.     }
  115.     place('relx'=>0.3,'rely'=>0.9)
  116. end
  117.  
  118. Tk.mainloop
  119.  
  120. #The End ?
Add Comment
Please, Sign In to add comment