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

Simple Packet Sniffer in VC++ .NET

By , 26 Jan 2005
 
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)

About the Author

maszup
Poland Poland
Member
No Biography provided

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
Questionpacket sniffermembernamrata248813 Sep '09 - 22:13 
could you tell me the steps to execute the packet sniffer,the requirements to run the code and can this work on a single laptop?
my email id is iamnam24@gmail.com
QuestionHow to calculate Bit rate?memberTaran912 Mar '08 - 0:12 
GeneralRe: How to calculate Bit rate?memberTaran912 Mar '08 - 1:34 
GeneralCompiling Errorsmembernwongfeiying22 Jan '08 - 17:50 
GeneralRe: Compiling Errorsmemberbunhead13 Mar '08 - 5:07 
General"fatal error C1021: invalid preprocessor command 'using'memberghassan24117 Aug '07 - 5:12 
Question"fatal error C1021: invalid preprocessor command 'using'memberghassan24117 Aug '07 - 5:11 
Questionfatal error C1021: invalid preprocessor command 'using'memberghassan24117 Aug '07 - 5:10 
Questionwhy not use netmon API?sussAnonymous16 Apr '05 - 1:07 
AnswerRe: why not use netmon API?memberVertilka The Blue27 Nov '07 - 2:21 
GeneralDeleted Message [modified]memberJames_12326 Jan '05 - 17:49 
GeneralRe: Works Well, One question though..memberdefenestration26 Jan '05 - 19:58 
GeneralRe: Works Well, One question though..membermaszup27 Jan '05 - 8:49 

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

Permalink | Advertise | Privacy | Mobile
Web04 | 2.6.130516.1 | Last Updated 26 Jan 2005
Article Copyright 2005 by maszup
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid