Skip to content

PyHTTP Sniffer – A Python tool that intercepts and logs all HTTP/HTTPS traffic (requests & responses) from any running Python app, including requests, aiohttp, http.client, and raw sockets. Perfect for debugging, security testing, and API analysis.

Notifications You must be signed in to change notification settings

professor-lolz/PyHTTP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

PyHTTP Sniffer

Tool for intercepting HTTP/HTTPS requests from Python applications

Python

example work

🔍 Description

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.

⚙️ Installing

  1. Clone the repository:
git clone https://github.com/professor-lolz/PyHTTP.git
cd PyHTTP
  1. Make sure you have Python 3.7+ installed

🚀 Using

To inject code into a running Python process, use PyInjector:

📊 Example output

 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"}

⚠️ Warning

This tool is intended only for:

  1. Testing the security of your own applications
  2. Debugging network communications
  3. Educational purposes

About

PyHTTP Sniffer – A Python tool that intercepts and logs all HTTP/HTTPS traffic (requests & responses) from any running Python app, including requests, aiohttp, http.client, and raw sockets. Perfect for debugging, security testing, and API analysis.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages