Author Topic: [Python] Sniffy - A Simple Network Sniffer  (Read 1245 times)

0 Members and 1 Guest are viewing this topic.

Offline ZeroBoy

  • /dev/null
  • *
  • Posts: 14
  • Cookies: 0
    • View Profile
    • Python for Pentesting @OffensivePython
[Python] Sniffy - A Simple Network Sniffer
« on: April 02, 2014, 10:02:21 pm »
This is a simple network sniffer that sniffs packets at the Network Layer (IP Layer), parse it and displays the IP Header informations. It also do a hex and ASCII dump of the data sniffed.

The "ip" class has two methods:
[1] extract(): this method extracts the IP header elements and stores them in a list
[2] parse(): used to parse the IP header elements through an sqlite database that contains descriptions of the IP Header elements (e.g: protocol, precedence, ...)

Screenshot of a DNS response captured by Sniffy.py:


Source code is found here: Sniffy.py
The database can be downloaded from here: ip.sqlite