Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- ####
- # File_name: md5 hash cracker
- # coded by: pedro ubuntu {r00t-3xp10it}
- # [ UNDER DEVELOP -NOT STABLE ]
- #
- ####
- import sys
- import time
- import urllib2
- import urllib
- import re
- import hashlib
- if len(sys.argv) < 2:
- sys.exit(1)
- def banner():
- print '''
- _ _ _
- | | (_) | |
- __| | ___ ___ _ __ _ _ __ | |_ ___ _ __
- / _` |/ _ \/ __| '__| | '_ \| __/ _ \ '__|
- | (_| | __/ (__| | | | |_) | || __/ |
- \__,_|\___|\___|_| |_| .__/ \__\___|_|
- | |
- |_|
- '''
- # variable declarations
- option = sys.argv[1]
- passwd = sys.argv[2]
- if option == '--online':
- if len(passwd) != 32:
- print '\n[*] Error: "%s" doesn\'t seem to be a valid MD5 hash "32 bit hexadecimal"' % passwd
- else:
- try:
- banner()
- def myaddr():
- site = 'http://md5.my-addr.com/'
- rest = 'md5_decrypt-md5_cracker_online/md5_decoder_tool.php'
- para = urllib.urlencode({'md5':passwd})
- req = urllib2.Request(site+rest)
- try:
- fd = urllib2.urlopen(req, para)
- data = fd.read()
- match= re.search('(Hashed string</span>: )(\w+.\w+)', data)
- if match: print '[-] site: %s\t\t\tPassword: %s' % (site, match.group(2))
- else: print '[-] site: %s\t\t\tPassword: Not found' % site
- except urllib2.URLError: print '[+] site: %s \t\t\t[+] Error: seems to be down' % site
- myaddr()
- def victorov():
- try:
- site = 'http://www.victorov.su/'
- para = 'md5/?md5e=&md5d=%s' % passwd
- req = urllib2.Request(site+para)
- req.add_header
- opener = urllib2.urlopen(req)
- data = opener.read()
- match = re.search('(<b>)(.+[^>])(</b>)', data)
- if match: print '[-] site: %s\t\t\tPassword: %s' % (site, match.group(2))
- else: print '[-] site: %s\t\t\tPassword: Not found' % site
- except urllib2.URLError: print '[+] site: %s \t\t\t[+] Error: seems to be down' % site
- victorov()
- def md5crack():
- site = 'http://www.md5online.org/'
- rest = 'index.php'
- para = urllib.urlencode({'term':passwd})
- req = urllib2.Request(site+rest)
- try:
- fd = urllib2.urlopen(req, para)
- data = fd.read()
- match = re.search('(Found: md5)(..)(\w+.\w+)', data)
- if match: print '[-] site: %s\t\t\tPassword: %s' % (site, match.group(3))
- else: print '[-] site: %s\t\t\tPassword: Not found' % site
- except urllib2.URLError: print '[+] site: %s \t\t\t[+] Error seems to be down' % site
- md5crack()
- def rednoize():
- site = 'http://md5.rednoize.com/'
- para = 'p&s=md5&q=%s&_=' % passwd
- try:
- req = urllib2.urlopen(site+'?'+para)
- data = req.read()
- if not len(data): print '[-] site: %s\t\t\tPassword: Not found' %site
- else: print '[-] site: %s\t\t\tPassword: %s' % (site, data)
- except urllib2.URLError: print '[+] site: %s \t\t\t[+] Error: seems to be down' % site
- rednoize()
- def md5pass():
- site = 'http://www.md5pass.info/'
- para = urllib.urlencode({'hash':passwd, 'get_pass':'Get+Pass'})
- req = urllib2.Request(site)
- try:
- fd = urllib2.urlopen(req, para)
- data = fd.read()
- match = re.search('(Password - <b>)(\w+)', data)
- if match: print '[-] site: %s\t\t\tPassword: %s' % (site, match.group(2))
- else: print '[-] site: %s\t\t\tPassword: Not found' % site
- except urllib2.URLError: print '[+] site: %s \t\t\t[+] Error: seems to be down' % site
- md5pass()
- def md5decryption():
- site = 'http://md5decryption.com/'
- para = urllib.urlencode({'hash':passwd,'submit':'Decrypt+It!'})
- req = urllib2.Request(site)
- try:
- fd = urllib2.urlopen(req, para)
- data = fd.read()
- match = re.search(r'(Decrypted Text: </b>)(.+[^>])(</font><br/><center>)', data)
- if match: print '[-] site: %s\t\t\tPassword: %s' % (site, match.group(2))
- else: print '[-] site: %s\t\t\tPassword: Not found' % site
- except urllib2.URLError: print '[+] site: %s \t\t\t[+] Error: seems to be down' % site
- md5decryption()
- except KeyboardInterrupt: print '\nTerminated by user ...'
- else: pass
Add Comment
Please, Sign In to add comment