This article mainly introduced the Wireshark to crawl the local loop data packet and the method which takes out the data, needs the friend may refer to under
One: The NPF driver isn ' t running this error is caused by not opening the NPF service. NPF, the network packet filter (Netgroup Packet FILTER,NPF), is the core part of WinPcap, which is the component of WinPcap to complete the difficult work. It handles packets transmitted over the network and provides a capture, send (injection) and analytical performance (analysis capabilities) to the user level. It not only provides basic features (such as grasping packages), but also has more advanced features (such as programmable filter system). The former can be used to constrain a grab session to only a subset of network traffic, which provides a powerful and simple mechanism for statistical network traffic. The solution is as follows: (1) Ensure that you have installed the WinPcap (this will be prompted to install Wireshark) can also be downloaded from the official website: Address: http://www.winpcap.org/(2) at the command prompt, enter: net start NPF Prompts to open the drive service successfully. As shown in the following figure: If you want to turn off the service, enter: net stop NPF. Second: Crawl The local loop data under Windows, enter the following statement on the command line: The code is as follows: Route add 192.168.1.106 Mask 255.255.255.255 192.168.1.1metric 1 of which, 192.168.1 .106 is a native IP, 192.168.1.1 is a routing gateway. Nothing else will change. Note: The connection requires the use of native 192.168.1.106 IP, can not use 127.0.0.1, such as: The Code is as follows: socket. Connect ("192.168.1.106", 4530);