Tool for intercepting HTTP/HTTPS requests from Python applications
This tool injects itself into a Python process and intercepts all outgoing HTTP/HTTPS requests, including:
- Standard requests via
requests
- Asynchronous requests via
aiohttp
- Low-level TCP connections via
socket
- Requests via
http.client
All intercepted data is saved to a timestamped logging.txt
file.
- Clone the repository:
git clone https://github.com/professor-lolz/PyHTTP.git
cd PyHTTP
- Make sure you have Python 3.7+ installed
To inject code into a running Python process, use PyInjector:
Method: POST
URL: https://api.example.com/login
Headers:
Content-Type: application/json
User-Agent: python-requests/2.28.1
Body: {"username": "test", "password": "qwerty"}
[!] Server response:
Status: 200
Size: 125 bytes
Response headers:
Content-Type: application/json
Server: nginx
Full response body:
{"status": "success", "token": "abc123"}
This tool is intended only for:
- Testing the security of your own applications
- Debugging network communications
- Educational purposes