r00t-3xp10it

[ under develop ] md5 online cracker

Nov 27th, 2014
445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.47 KB | None | 0 0
  1. #!/usr/bin/env python
  2. ####
  3. # File_name: md5 hash cracker
  4. # coded by: pedro ubuntu {r00t-3xp10it}
  5. # [ UNDER DEVELOP -NOT STABLE ]
  6. #
  7. ####
  8.  
  9.  
  10.  
  11. import sys
  12. import time
  13. import urllib2
  14. import urllib
  15. import re
  16. import hashlib
  17.  
  18. if len(sys.argv) < 2:
  19.   sys.exit(1)
  20.  
  21. def banner():
  22.   print '''
  23.      _                _       _            
  24.     | |              (_)     | |          
  25.   __| | ___  ___ _ __ _ _ __ | |_ ___ _ __
  26.  / _` |/ _ \/ __| '__| | '_ \| __/ _ \ '__|
  27. | (_| |  __/ (__| |  | | |_) | ||  __/ |  
  28.  \__,_|\___|\___|_|  |_| .__/ \__\___|_|  
  29.                        | |                
  30.                        |_|                
  31.  
  32.  
  33. '''
  34. # variable declarations
  35. option   = sys.argv[1]
  36. passwd   = sys.argv[2]
  37.  
  38. if option == '--online':
  39.   if len(passwd) != 32:
  40.     print '\n[*] Error: "%s" doesn\'t seem to be a valid MD5 hash "32 bit hexadecimal"' % passwd
  41.   else:
  42.     try:
  43.       banner()
  44.       def myaddr():
  45.         site = 'http://md5.my-addr.com/'
  46.         rest = 'md5_decrypt-md5_cracker_online/md5_decoder_tool.php'
  47.         para = urllib.urlencode({'md5':passwd})
  48.         req  = urllib2.Request(site+rest)
  49.         try:
  50.           fd   = urllib2.urlopen(req, para)
  51.           data = fd.read()
  52.           match= re.search('(Hashed string</span>: )(\w+.\w+)', data)
  53.           if match: print '[-] site: %s\t\t\tPassword: %s' % (site, match.group(2))
  54.           else: print '[-] site: %s\t\t\tPassword: Not found' % site
  55.         except urllib2.URLError:  print '[+] site: %s \t\t\t[+] Error: seems to be down' % site
  56.       myaddr()
  57.  
  58.       def victorov():
  59.         try:
  60.           site = 'http://www.victorov.su/'
  61.           para = 'md5/?md5e=&md5d=%s' % passwd
  62.           req  = urllib2.Request(site+para)
  63.           req.add_header
  64.           opener = urllib2.urlopen(req)
  65.           data = opener.read()
  66.           match = re.search('(<b>)(.+[^>])(</b>)', data)
  67.           if match: print '[-] site: %s\t\t\tPassword: %s' % (site, match.group(2))
  68.           else: print '[-] site: %s\t\t\tPassword: Not found' % site
  69.         except urllib2.URLError:  print '[+] site: %s \t\t\t[+] Error: seems to be down' % site
  70.       victorov()
  71.      
  72.       def md5crack():
  73.         site = 'http://www.md5online.org/'
  74.         rest = 'index.php'
  75.         para = urllib.urlencode({'term':passwd})
  76.         req = urllib2.Request(site+rest)
  77.         try:
  78.           fd = urllib2.urlopen(req, para)
  79.           data = fd.read()
  80.           match = re.search('(Found: md5)(..)(\w+.\w+)', data)
  81.           if match: print '[-] site: %s\t\t\tPassword: %s' % (site, match.group(3))
  82.           else: print '[-] site: %s\t\t\tPassword: Not found' % site
  83.         except urllib2.URLError: print '[+] site: %s \t\t\t[+] Error seems to be down' % site
  84.       md5crack()
  85.  
  86.       def rednoize():
  87.         site = 'http://md5.rednoize.com/'
  88.         para = 'p&s=md5&q=%s&_=' % passwd
  89.         try:
  90.           req = urllib2.urlopen(site+'?'+para)
  91.           data = req.read()
  92.           if not len(data): print '[-] site: %s\t\t\tPassword: Not found' %site
  93.           else: print '[-] site: %s\t\t\tPassword: %s' % (site, data)
  94.         except urllib2.URLError: print '[+] site: %s \t\t\t[+] Error: seems to be down' % site
  95.       rednoize()
  96.  
  97.       def md5pass():
  98.         site = 'http://www.md5pass.info/'
  99.         para = urllib.urlencode({'hash':passwd, 'get_pass':'Get+Pass'})
  100.         req = urllib2.Request(site)
  101.         try:
  102.           fd = urllib2.urlopen(req, para)
  103.           data = fd.read()
  104.           match = re.search('(Password - <b>)(\w+)', data)
  105.           if match: print '[-] site: %s\t\t\tPassword: %s' % (site, match.group(2))
  106.           else: print '[-] site: %s\t\t\tPassword: Not found' % site
  107.         except urllib2.URLError: print '[+] site: %s \t\t\t[+] Error: seems to be down' % site
  108.       md5pass()
  109.  
  110.       def md5decryption():
  111.         site = 'http://md5decryption.com/'
  112.         para = urllib.urlencode({'hash':passwd,'submit':'Decrypt+It!'})
  113.         req = urllib2.Request(site)
  114.         try:
  115.           fd = urllib2.urlopen(req, para)
  116.           data = fd.read()
  117.           match = re.search(r'(Decrypted Text: </b>)(.+[^>])(</font><br/><center>)', data)
  118.           if match: print '[-] site: %s\t\t\tPassword: %s' % (site, match.group(2))
  119.           else: print '[-] site: %s\t\t\tPassword: Not found' % site
  120.         except urllib2.URLError: print '[+] site: %s \t\t\t[+] Error: seems to be down' % site
  121.       md5decryption()
  122.     except KeyboardInterrupt: print '\nTerminated by user ...'
  123.      
  124. else: pass
Add Comment
Please, Sign In to add comment