Simple building block script for inspecting packets flying across an interface/pcap file. Concatenates fragmented packets. Prints a 1 line packet summary if the packet has a TCP layer and a load. Meant to be built out to find specific information from packets.
Auto-detect the interface to sniff
Choose eth0 as the interfaceCode:Select Allsudo python net-sniffer.py
Read from pcapCode:Select Allsudo python net-sniffer.py -i eth0
Code:Select Allsudo python net-sniffer.py -p pcapfile
net-sniffer 1.0
Sniffs an interface/pcap file and concatenates fragmented packet loads
- Watchers:
- This resource is being watched by 59 members.