sniffing

Unknown pypcap network interface 'eth0' error with python2 scapy on windows 10 machine

有些话、适合烂在心里 提交于 2021-02-11 13:50:12
问题 I am trying to create a simple web monitoring app with scapy(2.4.3), python 2.7 on a windows 10 machine. I also have winpcap(5.0.9983.830) installed. This is the code I am trying to run: def http_header(packet): print packet sniff(iface='eth0', prn=http_header) And this is the error it throws: raise ValueError("Unknown pypcap network interface %r" % pcap_name) ValueError: Unknown pypcap network interface 'eth0' I also installed .Microsoft Visual C++ Compiler for Python 2.7 just to be safe, as

Sniffing Android app's HTTPS traffic from Fiddler fails with only 'Tunnel To' entries in Fiddler

我与影子孤独终老i 提交于 2021-02-06 02:31:56
问题 I am trying to capture HTTPS traffic from my rooted Android device (4.4.4) to analyze an undocumented protocol of an app. I've set up my Fiddler as a proxy and enabled HTTPS sniffing. I've installed the Fiddler's generated root certificate on my device. I've set up my proxy for my Wifi on my Android device. When I run my browser and navigate to any HTTP or HTTPS site, Fiddler can capture traffic successfully. When I run some apps (e.g. my own app which uses Parse as its backend), I can see

Scapy sniff() doesn't accept the iface strings

倾然丶 夕夏残阳落幕 提交于 2020-06-29 04:58:20
问题 After a new installation of Python2.7.14 and scapy(Version git-archive.dev254ab6d5a) i cant define my LAN-card as interface. As long iface=None the sniff function works fine. If i assign iface to a string, i get the following Error. For this Error i didn't found any posts on google:/. Code: #Import all necessary scapy functionality from ethernet Api from Lib.IHR_EthApi import * from Lib.IHR_GeneralApi import GeneralApi as SYS from scapy.all import * FullTrafficList = [] #show_interfaces()

Printing all destination IP addresses using C++

允我心安 提交于 2020-04-18 12:38:24
问题 Is there any way to print all of the IP addresses that I'm sending packets to using C++ on Windows? I've tried to sniff my traffic with WinSock2 but I had to run my code with administrator permissions. Is there any way to do it with user permissions too? 来源: https://stackoverflow.com/questions/60677807/printing-all-destination-ip-addresses-using-c

SerialPort Sniffing

和自甴很熟 提交于 2020-01-23 02:57:26
问题 I have a device that connects to pc via USB, which gets mapped to virtual serial port by driver and a software, that connects to that serial port and allows me to manage the device. I don't know what protocol software uses to connect with the device. I could figure out the protocol by looking at communication between device and software, but the thing with serial ports is that once software connects to serial port, there is not way other software could connect to that port too (which makes

Sniffing and displaying TCP packets in UTF-8

柔情痞子 提交于 2020-01-01 03:17:07
问题 I am trying to use tcpdump to display the content of tcp packets flowing on my network. I have something like: tcpdump -i wlan0 -l -A The -A option displays the content as ASCII text, but my text seems to be UTF-8. Is there a way to display UTF-8 properly using tcpdump? Do you know any other tools which could help? Many thanks 回答1: Make sure your terminal supports outputting UTF-8 and pipe the output to something which replaces non printable characters: tcpdump -lnpi lo tcp port 80 -s 16000