RodentSniffer is a sniffer developed in C using libpcap with the main goal to give an in-depth understanding of the classical network protocols you are using everyday.
- Download the repository:
git clone git://github.com/sljrobin/RodentSniffer - Clean the project with the makefile:
make clean - Compile using the makefile:
make all
- Usage:
rosn <option> - Options
-f <"filter">: add a filter with the pcap-filter syntax-h: print the help-l: list the available devices-s <device>: indicate the device to open
- Exemples
rosn -s eth0rosn -p -f "arp" -s eth0rosn -hrosn -l
- Note: the order of the options matters
-p-f "<filter>"-s <device>
The folder rosnlib/ contains:
boot/: boot checks as options management, getting the link-layer header type, etc.process/: the main loop function used for sniffingprots/: files which are handling the different protocols (Ethernet, ARP, IPv4, IPv6, TCP, etc.)utils/: miscellaneous elements as help or color printers
RodentSniffer is distributed under the same terms as libpcap itself. See libpcap license for more information.