FAQ Database Discussion Community


Reading packet header with jpcap

java,packet-sniffers,jpcap
I'm trying to read packet headers using jpcap. TCPPacket tcpPacket = (TCPPacket) captor.getPacket(); System.out.println(new String(tcpPacket.header)); and the output is (something like): What am I missing? (When reading the data part, it looks OK)...

How to detect the presence of mobile devices in an area using WiFi router

networking,wifi,osx-yosemite,packet-sniffers,wificonfiguration
I have a requirement to detect the presence of mobile devices inside an area using my WiFi router,without connecting to them , So I did some research on it and found some interesting things like WiFi sniffing, but for testing purpose I want to use my Mac machine (Yosemite) as...

Python stop sniffing upon specific condition

python,object,scapy,packet-sniffers
I found some questions regarding an object deleting itself. But nowhere mentioned a suitable example where such action is required. But take the below example. from scapy.all import * class x(): def me(self): self.i=0 sniff(iface="em1", filter='tcp', prn=self.my_callback) def my_callback(self, pkt): print pkt.summary() self.i+=1 if self.i>10: self.__del__() def __del__(self): print self...

Change Response from HTTP Request sent by a program

networking,http-headers,xmlhttprequest,fiddler,packet-sniffers
I have a program that activate an chip for racing results. (Its just a piece of hardware). I watch with Fiddler (Sniffing program) the in and outgoing traffic from my pc when I connect the chip with my computer. The program sends the following HTTP Request: POST http://example.com/index.php HTTP/1.1 Accept:...

Sniffing packets on localhost with Scapy

scapy,packet-sniffers
I'm learning how to use scapy to sniff packets. I have set up a simple echo server running on localhost on port 50420. I then enter the following line in my terminal to sniff for packets on that port when I send traffic over it: p = sniff(filter = 'port...

Connect to internet using wlan0 and channel hopping mon0 as Monitor

packet-sniffers,aircrack-ng
I was given a project to count the number of Wifi devices in a room and my research led me to getting an TL-MR3020 and installing OpenWRT on it. I can set up mon0 in Monitor Mode just fine airmon-ng start wlan0 Interface Chipset Driver wlan0 Atheros ath9k - [phy0]...

Scapy packet sniffer triggering an action up on each sniffed packet

python,networking,scapy,packet-sniffers
I'm using scapy with python to sniff live traffic. capture=sniff(iface="<My Interface>", filter="tcp") But this sniffs each packet and adds it to the list capture which can be processed later. I want to process a packet and display few fields of the packet, as soon as it's sniffed. i.e. upon sniffing...

Ettercap TCP packets type

sockets,tcp,raspbian,packet-sniffers,man-in-the-middle
Sorry if my question looks dumb, but I would like to understand the meaning of the letters written next to the packet transaction details of Ettercap when sniffing TCP packets, for example: Thu Apr 16 04:07:30 2015 TCP 192.168.1.100:1000 --> 192.168.1.101:1000 | A Message here. what's the meaning of the...