Description: As a network sniffer communication program, but also through the card network communications programming to achieve,
Programming on the network card is the usual socket (socket) mode to carry out. However, the usual
Socket program can only respond with its own hardware address that matches the given form, or to broadcast data
Frame, the frame for other forms of data such as network interface has been reached but not the data sent to this address
Frame, verify the delivery address of the network interface is not in itself will not lead to response after the address, that should be
With the program can not receive incoming data packets. The purpose of the network sniffer is just received from the card
Has been its data packets, the packets that can be sent to it can also be sent elsewhere. Was
However, to achieve this card can not let the work of the usual normal mode, but must be set
To promiscuous mode.
To Search:
File list (Check if you may need any files):
网络编程大作业_070420116王商堂.doc
网络编程大作业_SampleSniffer
............................\Debug
............................\.....\SampleSniffer.exe
............................\.....\SampleSniffer.ilk
............................\.....\SampleSniffer.pdb
............................\ipch
............................\....\samplesniffer-b385d147
............................\....\......................\samplesniffer-832ddcfb.ipch
............................\SampleSniffer
............................\SampleSniffer.sdf
............................\SampleSniffer.sln
............................\SampleSniffer.suo
............................\.............\Debug
............................\.............\.....\CL.read.1.tlog
............................\.............\.....\CL.write.1.tlog
............................\.............\.....\link-cvtres.read.1.tlog
............................\.............\.....\link-cvtres.write.1.tlog
............................\.............\.....\link.4844-cvtres.read.1.tlog
............................\.............\.....\link.4844-cvtres.write.1.tlog
............................\.............\.....\link.4844.read.1.tlog
............................\.............\.....\link.4844.write.1.tlog
............................\.............\.....\link.read.1.tlog
............................\.............\.....\link.write.1.tlog
............................\.............\.....\mt.read.1.tlog
............................\.............\.....\mt.write.1.tlog
............................\.............\.....\rc.read.1.tlog
............................\.............\.....\rc.write.1.tlog
............................\.............\.....\SampleSniffer.exe.embed.manifest
............................\.............\.....\SampleSniffer.exe.embed.manifest.res
............................\.............\.....\SampleSniffer.exe.intermediate.manifest
............................\.............\.....\SampleSniffer.lastbuildstate
............................\.............\.....\SampleSniffer.log
............................\.............\.....\SampleSniffer.obj
............................\.............\.....\SampleSniffer.pch
............................\.............\.....\SampleSniffer_manifest.rc
............................\.............\.....\stdafx.obj
............................\.............\.....\vc100.idb
............................\.............\.....\vc100.pdb
............................\.............\ReadMe.txt
............................\.............\SampleSniffer.cpp
............................\.............\SampleSniffer.vcxproj
............................\.............\SampleSniffer.vcxproj.filters
............................\.............\SampleSniffer.vcxproj.user
............................\.............\stdafx.cpp
............................\.............\stdafx.h
............................\.............\targetver.h