I am trying to generate STP packet and to capture it with wireshark.Basically what I do is >>> send(STP()) from Scapy and the result from wireshark is: 53918 2671.938356000 00.00.00 00.00.00 FC 49 [Malformed Packet] My question is how to configure the STP packet, the result from wireshark to be STP packet not FC.Please help :)
相关问题
- Hide Scapy Warning Message IPv6
- Scapy: How to insert a new layer (802.1q) into exi
- How to send UDP packet to specific UDP dst port in
- Python ARP spoofer using scapy module
- How to decode data from scapy Dot11 Packet
相关文章
- Decompressing a gzipped payload of a packet with P
- Send packet and change its source IP
- Scapy packet sent cannot be received
- Accessing 802.11 Wireless Management Frames from P
- Adding payload in packet
- Scapy and Python 3.2
- suppress scapy warning message when importing the
- ImportError: No module named scapy.all
The
send
function is used to send packets in layer 3, whileSTP
is a layer 2 protocol:Therefore, you should use the
sendp
function.See
scapy
's docs for further information:The official API documentation states this as well:
You need to use the sendp() function instead of send(), and you also need to add the Ether() and LLC() layers before STP(). For instance: