PHP-made port sniffer--you can specify the website and port
and return the sniff results.
function Http_request ($server, $port) {
$data = "";
$query = "head/http/1.0";
$fp = Fsockopen ($server, $port);
if ($fp) {
Fputs ($FP, $query. " Rnn ");
while (!feof ($fp)) {
$data. =
PHP-made port sniffer--you can specify the website and port
and return the sniff results.
function Http_request ($server, $port) {
$data = "";
$query = "head/http/1.0";
$fp = Fsockopen ($server, $port);
if ($fp) {
Fputs ($FP, $query. " Rnn ");
while (!feof ($fp)) {
$data. =
Lt ;? Php port sniffer-you can specify the website and port and return the sniffing result functionhttp_request ($ server, $ port) {$ data quot; $ query quot; HEADHTTP1.0 quot; $ fpfsockopen ($ serve
// Php port sniffer-you ca
// PHP port sniffer-you can specify the website and Port
// Returns the sniffing result
Function http_request ($ server, $ port ){
$ DATA = "";
$ Query = "head/HTTP/1.0 ";
$ Fp = fsockopen ($ server, $ port );
If ($ FP ){
Fputs ($ FP, $ query. "rnn ");
While (! Feof ($ FP ))
remembers the Mac of a port by receiving data from this port and remembering its source Mac, like a machine's IP corresponding to the MAC's ARP list, the switch maintains a physical port with a Mac table, so the switch can be spoofed. Can send a package to set the source Mac is the Mac you want to receive the machine, then the switch will put your machine's netw
; ip_protocol );/** // * Display the protocol type. 6 is TCP, and 17 is udp */TCP = (struct tcp *) (buffer + (4 * IP-> ip_iplength ));/** // * The above parameter needs to be explained in detail, because the size of the IP header in the received packet header is fixed to 4 bytes *//** // * So I multiply the IP length by 4 to point to the TCP Header */Printf ("Source Port: % d \ n", ntohs (TCP-> tcp_source_port);/** // * display
table of a Mac-to-port in its own machine. This table exists when the switch is started. The MAC address of the corresponding port is recorded during the first data transfer on each port. by sending fake mac address data packets to the vswitch, The vswitch can be spoofed to refresh its MAC address to the port data tab
Abandoned for one months, picked up again, rusty a lot. Found in the article "4.1 under" did not mention the Pcap library, it is not supposed to.In the Network data Analysis tool, Tcpdump is definitely the famous, tcpdump bottom is Libpcap library, written by C language. The Pcapy module is a libpcap-based Python interface. Pcapy's project address on GitHub is: Https://github.com/CoreSecurity/pcapy.Let's take a look at how to implement a packet capture using Pcapy.#!/usr/bin/pythonimport pcapyde
packets and NTNetBios name service broadcast. (Etherfind will only identify these packets as broadcast packets of Type 0000 .) This tool runs on MS Windows. It can even monitor network statistics and session information by MAC address (or host name. You can simply click a session to get the output of the tcpdump standard. You only need to click the host to be monitored in a dialog box.
Free Software sniffer
1 Sniffit is developed by Lawrence Berkeley
network. After the datagram arrives at the hub, the hub forwards the datagram to the port of each hub. In other words, each network node connected to the hub has the right to receive all data packets. after Sniffer is run, Sniffer sets the NIC to the hybrid mode. Once it is set to the hybrid mode, Sniffer can accept a
all the packets and frames on the network, if a machine is configured in this way, it (including its software) is a sniffer.
When a vswitch is usedUnder normal circumstances, data packets from other hosts will not appear on the local network interface, so data packets from other hosts cannot be sniffed. Of course, some special methods can be used for sniffing.
4. Sniffer Principle
After introducing the pre
Network, system management, or security technicians always encounter one or more problems during network management and maintenance. For example, why does the network transmission performance suddenly decrease? Why can't I open the webpage, but QQ can be launched? Why are some hosts suddenly disconnected? Such network problems need to be solved quickly and effectively, so as to minimize the impact of network problems on normal business of enterprises. Therefore, we need a tool to help us quickly
○ Collation
This article was written one year ago and was not completed for some reason. Today, I sorted out shadowstar's home and accidentally found this unfinished article. Although it was a year ago, it is still not out of date and should be helpful to anyone who wants to know sniffer. My father said that everything should start and end. Today is the Dragon Boat Festival. I would like to send a message to my loved ones who are far away from each ot
can see the Chinese menu of the sniffer software, the following are some commonly used tool buttons. In the day-to-day maintenance of the network, the use of these tool buttons can solve the problem.
1, Host list button: After saving the machine list, click this button, sniffer will display the information of all the machines in the network, in which, the HW address column is the client information in the
captured to pass through.
2. Sniffer defense
Although it is very difficult to find a Sniffer, we still have a way to defend against Sniffer sniffing attacks. Since Sniffer wants to capture our confidential information, we just want it to capture it, but we need to encrypt it in advance. Even if hackers have captured o
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.