Click here to Skip to main content
11,414,234 members (73,246 online)
Click here to Skip to main content

Network Sniffer

, 19 Jul 2004 CPOL
Rate this:
Please Sign up or sign in to vote.
Network Sniffer

Sample Image - Sniffer.jpg


A "Packet Sniffer" is a utility that sniffs without modifying the network's packets in any way. By comparison, a firewall sees all of a computer's packet traffic as well, but it has the ability to block and drop any packets that its programming dictates. Packet sniffers merely watch, display, and log this traffic.

One disturbingly powerful aspect of packet sniffers is their ability to place the hosting machine's network adapter into "promiscuous mode." Network adapters running in promiscuous mode receive not only the data directed to the machine hosting the sniffing software, but also ALL of the traffic on the physically connected local network.

I hope that this piece of code will help you understand the network better.


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


About the Author

Eran Aharonovich
Software Developer
Australia Australia
Been a programmer since 1999.
Experience in:
.Net, C++, C#, VB, VB.NET, ASP, ASP.NET, DLLs, COM etc.

Comments and Discussions

QuestionNetwork Sniffer in another language Pin
Adamsonn, 14-Aug-14 1:43
memberAdamsonn14-Aug-14 1:43 
BugMemory leaking Pin
ruiwng, 4-Mar-13 1:34
memberruiwng4-Mar-13 1:34 
Questionaccess permissions Pin
yudaavni, 18-Feb-13 5:01
memberyudaavni18-Feb-13 5:01 
AnswerRe: access permissions Pin
ruiwng, 4-Mar-13 1:39
memberruiwng4-Mar-13 1:39 
QuestionNetwork problems Pin
AJMAL SHAHZAD, 10-Dec-12 19:48
memberAJMAL SHAHZAD10-Dec-12 19:48 
QuestionI've got problem with commpiling on VS 2008 Pin
1nbveh, 24-Apr-12 5:21
member1nbveh24-Apr-12 5:21 
AnswerRe: I've got problem with commpiling on VS 2008 Pin
lakshmanakumar_varada, 7-Nov-12 23:58
memberlakshmanakumar_varada7-Nov-12 23:58 
GeneralMy vote of 1 Pin
robmar, 8-Nov-11 13:08
memberrobmar8-Nov-11 13:08 
AnswerRe: My vote of 1 Pin
boris.pong, 18-Jun-12 22:23
memberboris.pong18-Jun-12 22:23 
Questioncan't build in visual 2010 + MS SDK 7.0 Pin
Yohanes Pradono, 23-Jul-11 20:11
memberYohanes Pradono23-Jul-11 20:11 
AnswerRe: can't build in visual 2010 + MS SDK 7.0 Pin
mla154, 27-Sep-11 7:26
membermla15427-Sep-11 7:26 
Questionhey how to run this project ............... Pin
silverkali, 13-Oct-10 3:53
membersilverkali13-Oct-10 3:53 
AnswerRe: hey how to run this project ............... Pin
Yohanes Pradono, 23-Jul-11 16:26
memberYohanes Pradono23-Jul-11 16:26 
GeneralMy vote of 1 Pin
dheeraj_jun2, 18-Dec-08 18:34
memberdheeraj_jun218-Dec-08 18:34 
Generalpacket sniffer Pin
satheesh.S, 28-Oct-08 20:39
membersatheesh.S28-Oct-08 20:39 
GeneralRe: packet sniffer Pin
priyanka,oberoi1, 10-Aug-09 2:33
memberpriyanka,oberoi110-Aug-09 2:33 
GeneralGood Project, what is the format to save? does it support Packetbone Pin
jerrysmith222, 2-Jul-08 18:50
memberjerrysmith2222-Jul-08 18:50 
GeneralWhich compiler? Visual C++ .NET? (=Version 7) Pin
gerspeece, 28-Mar-08 6:16
membergerspeece28-Mar-08 6:16 
GeneralRe: Which compiler? Visual C++ .NET? (=Version 7) Pin
Eran Aharonovich, 29-Mar-08 1:33
memberEran Aharonovich29-Mar-08 1:33 
Questionhelp me how to compile and execute the project.... Pin
rahul.csit, 28-Feb-08 18:36
memberrahul.csit28-Feb-08 18:36 
QuestionIt works in visual c++ 6.0?? Pin
uriel_slp, 24-Oct-07 11:23
memberuriel_slp24-Oct-07 11:23 
AnswerRe: It works in visual c++ 6.0?? Pin
uriel_slp, 24-Oct-07 11:27
memberuriel_slp24-Oct-07 11:27 
QuestionPlease I Need Help Pin
mustafa_kh_2007, 10-Sep-07 5:03
membermustafa_kh_200710-Sep-07 5:03 
QuestionWe can catch the TCP packet only? Pin
MD84, 14-May-07 22:57
memberMD8414-May-07 22:57 
AnswerRe: We can catch the TCP packet only? Pin
Eran Aharonovich, 14-May-07 23:03
memberEran Aharonovich14-May-07 23:03 

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 | Terms of Use | Mobile
Web01 | 2.8.150427.2 | Last Updated 20 Jul 2004
Article Copyright 2004 by Eran Aharonovich
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid