Click here to Skip to main content
Licence CPOL
First Posted 26 Jan 2005
Views 62,685
Downloads 1,941
Bookmarked 18 times

Simple Packet Sniffer in VC++ .NET

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

About the Author

maszup



Poland Poland

Member



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

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
Questionpacket sniffer Pinmembernamrata248822:13 13 Sep '09  
QuestionHow to calculate Bit rate? PinmemberTaran90:12 12 Mar '08  
GeneralRe: How to calculate Bit rate? PinmemberTaran91:34 12 Mar '08  
GeneralCompiling Errors Pinmembernwongfeiying17:50 22 Jan '08  
GeneralRe: Compiling Errors Pinmemberbunhead5:07 13 Mar '08  
General"fatal error C1021: invalid preprocessor command 'using' Pinmemberghassan2415:12 17 Aug '07  
Question"fatal error C1021: invalid preprocessor command 'using' Pinmemberghassan2415:11 17 Aug '07  
Questionfatal error C1021: invalid preprocessor command 'using' Pinmemberghassan2415:10 17 Aug '07  
Questionwhy not use netmon API? PinsussAnonymous1:07 16 Apr '05  
AnswerRe: why not use netmon API? PinmemberVertilka The Blue2:21 27 Nov '07  
GeneralWorks Well, One question though.. PinmemberPhil Tregellas17:49 26 Jan '05  
GeneralRe: Works Well, One question though.. Pinmemberdefenestration19:58 26 Jan '05  
GeneralRe: Works Well, One question though.. Pinmembermaszup8:49 27 Jan '05  

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.

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