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 :)
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:
sendp(Ether(dst="01:80:c2:00:00:00")/LLC()/STP(), iface=“eth0”)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With