Online/ofline md5 cracker Currently containes about 14 db for online cracking
here are two snips from the source code:
128 def bigtrapeze(): 129 site = 'http://www.bigtrapeze.com/' 130 rest = 'md5/index.php?query=%s' %passwd 131 req = urllib2.Request(site+rest) 132 req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.2)\ 133 Gecko/20100316 AskTbSPC2/3.9.1.14019 Firefox/3.6.2') 134 opener = urllib2.build_opener() 135 data = opener.open(req).read() 136 match = re.search('(=> <strong>)(\w+.\w+)', data) 137 if match: print '[-] site: %s\t\t\tPassword: %s' %(site, match.group(2)) 138 else: print '[-] site: %s\t\t\tPassword: Not found' %site 139 bigtrapeze()
211 def offline(): 212 print '[+] This opertaion will take some time, be patient ...' 213 dictionary = sys.argv[3] 214 dic = {} 215 shooter = 0 216 try: 217 f = open(dictionary, 'rb') 218 for line in f: 219 line = line.rstrip() 220 dic[line] = hashlib.md5(line).hexdigest() 221 for k in dic.keys(): 222 if passwd in dic[k]: 223 print '\n[-] Hash:', dic[k], ' \t\t\t', 'Data:', k 224 shooter += 1 225 if shooter == 0: print "\n[*]Password not found in [%s] try the online cracker\n" % dictionary 226 f.close() 227 except IOError: print '\n[*] Erorr: %s doesn\'t exsit \n' % dictionary 228 offline()
Tow shots for using both the flags in cracking:
to download it in plain text:
[원문] : http://lnxg33k.wordpress.com/2011/03/05/scripts-md5-hash-cracker-online-offline/
====================================
[필자 테스트]
Very good Job~ :D
'Hello_World! > 애플추가_파이썬' 카테고리의 다른 글
Gmail의 SMTP를 이용한 메일 발송 (0) | 2011.10.05 |
---|---|
Web Shell Detection Using NeoPI (0) | 2011.09.01 |
[자작쉘] http URL 긁어오기 (0) | 2011.08.08 |
[자작쉘]특정 디렉터리 찾기 (0) | 2011.08.08 |
파이썬으로 통신하기 (0) | 2010.10.27 |