Click here to Skip to main content
Click here to Skip to main content

Simple Packet Sniffer in VC++ .NET

, 26 Jan 2005
Rate this:
Please Sign up or sign in to vote.
This is my first program. I hope it will be useful for someone who wants to write sniffer using WinPcap library.
Sample Image - Sznyfer.jpg

Introduction

This is my first big program in Visual C++. You can download a packet sniffer which grabs packets from local interface and analyses headers. It also writes headers into the log file.

Background

You must have WinPcap library and .NET installed on your machine. You can download it from here.

Points of Interest

I'm a beginner in Visual, interested in C/C++ programming and digital signal processing. Please write to me if you have any suggestions. My email is maszup@o2.pl.

History

  • 27.01.2005: I put in order using operators "new" and "delete" and uploaded code again.
    I changed Polish comments to English.

Enjoy!

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

maszup

Poland Poland
No Biography provided

Comments and Discussions

 
Questionpacket sniffer Pinmembernamrata248813-Sep-09 22:13 
QuestionHow to calculate Bit rate? PinmemberTaran912-Mar-08 0:12 
GeneralRe: How to calculate Bit rate? PinmemberTaran912-Mar-08 1:34 
GeneralCompiling Errors Pinmembernwongfeiying22-Jan-08 17:50 
I'm using Visual Studio 2005 and get a compiling error when I'm compiling the project.
 
The errors are mostly saying that I have missing header files: windows, and winsock2.
 
Solutions?
GeneralRe: Compiling Errors Pinmemberbunhead13-Mar-08 5:07 
General"fatal error C1021: invalid preprocessor command 'using' Pinmemberghassan24117-Aug-07 5:12 
Question"fatal error C1021: invalid preprocessor command 'using' Pinmemberghassan24117-Aug-07 5:11 
Questionfatal error C1021: invalid preprocessor command 'using' Pinmemberghassan24117-Aug-07 5:10 
Questionwhy not use netmon API? PinsussAnonymous16-Apr-05 1:07 
AnswerRe: why not use netmon API? PinmemberVertilka The Blue27-Nov-07 2:21 
GeneralDeleted Message [modified] PinmemberJames_12326-Jan-05 17:49 
GeneralRe: Works Well, One question though.. Pinmemberdefenestration26-Jan-05 19:58 
GeneralRe: Works Well, One question though.. Pinmembermaszup27-Jan-05 8:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web01 | 2.8.140827.1 | Last Updated 26 Jan 2005
Article Copyright 2005 by maszup
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid