python requests 怎麼解決 url 中../ 自動跳目錄的問題?

maybe-why-not發表於2021-01-01
import requests

burp0_url = "http://127.0.0.1:80/../../../../a"
burp0_headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36", "Accept-Encoding": "gzip, deflate", "Accept": "*/*", "Connection": "close", "Accept-Language": "en"}
requests.get(burp0_url, headers=burp0_headers, proxies={'http':'http://127.0.0.1:8080'})


圖中可見../自動跳了目錄,../在請求中不見了。

別給建議說編碼、curl什麼的,煩請能實現了再回答,能用python解決就行,謝了。

相關文章