Python requests 构造畸形 HTTP 请求
正文
import requests
s = requests.session()
req = requests.Request('PUT',"http://127.0.0.1:54321")
req.url = "http://127.0.0.1:54321/../../../../etc/passwd"
prepared = req.prepare()
prepared.url = "http://127.0.0.1:54321/../../../../etc/passwd"
s.send(prepared)
Leave a Reply