rhama

Simple MD5 Cracker

Feb 11th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.67 KB | None | 0 0
  1. import urllib, urllib2, re
  2.  
  3. print ''' Simple Md5 Cracker
  4.     //Indonesian Backtrack team
  5.     //aiden_
  6. '''
  7. print "=" * 40
  8. regex = '<p>(.*?)</p>'
  9. pola = re.compile(regex)
  10. url = 'http://www.md5.net/md5-cracker/'
  11. #generator[hash]=098f6bcd4621d373cade4e832627b4f6&generator[submit]=
  12. hash = open('hash.txt','r')
  13. hash = hash.readlines()
  14. for i in hash:
  15.     #print i
  16.     i = i.replace("\n","")
  17.     data = {'generator[hash]' : i,'generator[submit]' : ''}
  18.     post_data = urllib.urlencode(data)
  19.     crack = urllib2.urlopen(url, post_data)
  20.     hasil = crack.read()
  21.     hasil = re.findall(pola, hasil)
  22.     print hasil[0]+' : '+i
  23.     saveres = open('resultcrack.txt','a')
  24.     saveres.write(hasil[0]+' : '+i+"\n")
Add Comment
Please, Sign In to add comment