Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scapy generating STP(Spanning Tree Protocol) packets

Tags:

scapy

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

like image 826
user3674680 Avatar asked Sep 30 '22 10:09

user3674680


1 Answers

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”)
like image 164
Anthony DeRosa Avatar answered Dec 04 '22 14:12

Anthony DeRosa