Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

📦 HTTP PacketListener (Python)

This project is a simple network packet listener built with Python and Scapy that listens to HTTP requests and prints potential username and password data in real time.

✨ Features

  • Live HTTP request sniffing on a specified network interface (e.g., eth0, wlan0).
  • Detects fields like username, email, and password in HTTP packets.
  • Displays real-time, readable output to the terminal.
  • Simple and clean Python code.

⚙️ Installation

Requires Python 3 and Scapy. Install Scapy with:

pip install scapy

⚠️ Note: You need root privileges (sudo) to capture packets.

🚀 Usage

Run the script from your terminal with:

sudo python3 PacketListener.py -i <interface>

Example:

sudo python3 PacketListener.py -i wlan0

🧠 How It Works

  • Uses scapy.sniff() to listen for HTTP packets on the chosen interface.
  • Analyzes packets containing both an HTTP request (HTTPRequest) and raw data (Raw layer).
  • Searches for keywords like "username", "user", "login", "email", "password", "pass", "pwd" to detect potential credential data.
  • Prints the source IP, destination IP, and detected data to the terminal.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages