Skip to content

Course: Computer networking workshop - a simple network Sniffer for Windows OS

Notifications You must be signed in to change notification settings

tomwolfgang/university-sniffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

university-sniffer

Course: Computer networking workshop.
Project: A network Sniffer

The assignment was to build a network Sniffer supporting common protocols. I decided it would be a good opportunity to try out WinPcap. To make things simple - I decided to "copy" the UI from Wireshark and I used http://frhed.sourceforge.net/en/ for the hex viewer.

I think this is a good sample for understanding how to work with WinPcap and the basics of writing a network sniffer. Some optimizations could be made, specifically where with the conversion of the packets to UI components.

I used VS2010 and the UI was written in MFC (not too popular these days, but it made the development go faster). The sniffer and network code itself aren't based on MFC and so the code can be used in any C++ project (console/lib/qt etc...)

When reviewing the code - a good starting point would be: MainFrm.h/MainFrm.cpp

Screenshots

Protocols DNS and ICMP in action

About

Course: Computer networking workshop - a simple network Sniffer for Windows OS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published