scapy

Scapy - Function 'sr1()' doesn't Return Response-Packet

梦想的初衷 提交于 2020-07-23 07:26:21
问题 Hello guys I have a problem with Scapy in Python 3 on Windows 10. I tried to send a Ping (ICMP) request to my default-gateway. This is the packet command: p = IP(dst='10.0.0.138')/ICMP(type='echo-request')/Raw('Hello') But after I write r = sr1(ping) the program is stuck on this output: Begin emission: Finished sending 1 packets. I used Wireshark to check the packets and I saw the both packets: Request and response. What do I do wrong? This has been working for me for whole life until now.

Scapy - Function 'sr1()' doesn't Return Response-Packet

怎甘沉沦 提交于 2020-07-23 07:25:48
问题 Hello guys I have a problem with Scapy in Python 3 on Windows 10. I tried to send a Ping (ICMP) request to my default-gateway. This is the packet command: p = IP(dst='10.0.0.138')/ICMP(type='echo-request')/Raw('Hello') But after I write r = sr1(ping) the program is stuck on this output: Begin emission: Finished sending 1 packets. I used Wireshark to check the packets and I saw the both packets: Request and response. What do I do wrong? This has been working for me for whole life until now.

Scapy - Function 'sr1()' doesn't Return Response-Packet

て烟熏妆下的殇ゞ 提交于 2020-07-23 07:24:25
问题 Hello guys I have a problem with Scapy in Python 3 on Windows 10. I tried to send a Ping (ICMP) request to my default-gateway. This is the packet command: p = IP(dst='10.0.0.138')/ICMP(type='echo-request')/Raw('Hello') But after I write r = sr1(ping) the program is stuck on this output: Begin emission: Finished sending 1 packets. I used Wireshark to check the packets and I saw the both packets: Request and response. What do I do wrong? This has been working for me for whole life until now.

Python EXE to request sudo access

岁酱吖の 提交于 2020-07-23 06:32:08
问题 I am working on a script to monitor my outgoing website connections. As an example, if I connect to reddit, I'd like the IP address of Reddit to be logged. I have this functionality down just fine, but in the future, I'd like someone else to be able to run my Python code as an EXE file. However, my script currently requires you to run as Sudo since it is sniffing the IP addresses. I'd like non-technical users to be able to use my app by simply clicking an EXE or entering their password if

Python EXE to request sudo access

老子叫甜甜 提交于 2020-07-23 06:31:25
问题 I am working on a script to monitor my outgoing website connections. As an example, if I connect to reddit, I'd like the IP address of Reddit to be logged. I have this functionality down just fine, but in the future, I'd like someone else to be able to run my Python code as an EXE file. However, my script currently requires you to run as Sudo since it is sniffing the IP addresses. I'd like non-technical users to be able to use my app by simply clicking an EXE or entering their password if

Python EXE to request sudo access

只谈情不闲聊 提交于 2020-07-23 06:30:08
问题 I am working on a script to monitor my outgoing website connections. As an example, if I connect to reddit, I'd like the IP address of Reddit to be logged. I have this functionality down just fine, but in the future, I'd like someone else to be able to run my Python code as an EXE file. However, my script currently requires you to run as Sudo since it is sniffing the IP addresses. I'd like non-technical users to be able to use my app by simply clicking an EXE or entering their password if

Convert RTP Payload (payload type 107, AMR-WB 16khz 1Channel) to .wav

点点圈 提交于 2020-07-10 10:29:40
问题 I'm working in Python 3.6 under Linux Ubuntu and I used the Scapy lib to extract data from a bin file which contained the following stack: IP/UDP/RTP. The RTP-PAYLOAD TYPE is 107 (dynamic), a=rtpmap:107 AMR-WB/16000/1. I put it into a file in raw format and I called it src.aud , but it also wouldn't be a problem to put write it in hex. Now what do I have to do exactly to transform it into audio data format like .wav or .mp3 for example, which is on every computer? I've already made an' effort

Convert RTP Payload (payload type 107, AMR-WB 16khz 1Channel) to .wav

99封情书 提交于 2020-07-10 10:29:10
问题 I'm working in Python 3.6 under Linux Ubuntu and I used the Scapy lib to extract data from a bin file which contained the following stack: IP/UDP/RTP. The RTP-PAYLOAD TYPE is 107 (dynamic), a=rtpmap:107 AMR-WB/16000/1. I put it into a file in raw format and I called it src.aud , but it also wouldn't be a problem to put write it in hex. Now what do I have to do exactly to transform it into audio data format like .wav or .mp3 for example, which is on every computer? I've already made an' effort

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()

How to read a packet TLS meta-data with scapy python

China☆狼群 提交于 2020-05-30 07:55:14
问题 How can I read TLS information (record length, record type...) from a packet using scapy. I have used load_layer('tls') and I'm able to read some information when there is a single TLS record in a packet but when there is multiple TLS record in a packet I'm only able to read the first TLS record. For exemple this packet contain 3 TLS record and when I want to read the records length with scapy I only get the first record length 回答1: Total TLS decoding As you've found, scapy doesn't decode the