This Python script is designed to capture and analyze raw IP packets using a raw socket. It extracts various details from the IP header, such as version, header length, type of service, length, identification, flags, fragment offset, time to live, protocol, checksum, source address, and destination address.
Before running the script, ensure you have the following:
- Python installed on your system.
- Admin or root privileges may be required to run the script (especially on Windows).
-
Clone the repository:
git clone LiteSniff
cd LiteSniff
-
Run the script:
python sniffer.py Make sure to use Python 3.
- This script uses raw sockets and may require elevated privileges.
- The script is currently configured to capture all IP packets on the network interface.
- Ensure that you have the necessary permissions to run raw socket operations.