Skip to content

A simple packet sniffer written in Summer 2015 using Qt for the gui and Pcap to sniff ethernet packets. Written to learn a little about the networking stack and various protocols.

Notifications You must be signed in to change notification settings

zm1060/PacketSniffer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PacketSniffer

A simple packet sniffer written in summer 2015 using Qt for the gui and Pcap to sniff ethernet packets. Originally written in pure C as a command line application, then adapted into a GUI application. Can save, pause, resume, open, and delete captures.

Demonstrates knowledge of networking layers and protocols.

Has support for following Protocols:

  • Layer 2 - Data Link Layer:

    • Ethernet
    • ARP
  • Layer 3 - Network Layer:

    • ICMP
    • IPv4 and IPv6
  • Layer 4 - Transport Layer:

    • TCP
    • UDP
  • Layer 7 - Application Layer:

    • DNS
    • HTTP
    • HTTPS

Dependencies:

Depends upon the following packages:

  • libpcap-dev
  • qt5

Compiling:

Please compile by importing the PacketSniffer.pro file into QtCreator, building it,then navigating to the build directory and running the executable using:

sudo ./PacketSniffer

If there is an error in the status bar at the bottom of the window when starting capture, please edit the ETHERNET_DEVICE string in shared.h (use the command "ifconfig" to view your ethernet controller names) and recompile (sorry for how crude this method is, cut me some slack I made it years ago).

Sample Captures:

Sample Capture Image

About

A simple packet sniffer written in Summer 2015 using Qt for the gui and Pcap to sniff ethernet packets. Written to learn a little about the networking stack and various protocols.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 85.6%
  • C 13.6%
  • QMake 0.8%