gpt4 book ai didi

Scapy 生成 STP(生成树协议(protocol))数据包

转载 作者:行者123 更新时间:2023-12-01 22:51:31 24 4
gpt4 key购买 nike

我正在尝试生成 STP 数据包并使用 wireshark 捕获它。基本上我所做的是从 Scapy >>> send(STP()) 和来自 wireshark 的结果是:
53918 2671.938356000 00.00.00 00.00.00 FC 49 [格式错误的数据包]
我的问题是如何配置 STP 数据包,wireshark 的结果是 STP 数据包而不是 FC。请帮助 :)

最佳答案

您需要使用 sendp() 函数而不是 send(),并且还需要在 STP() 之前添加 Ether() 和 LLC() 层。例如:

sendp(Ether(dst="01:80:c2:00:00:00")/LLC()/STP(), iface=“eth0”)

关于Scapy 生成 STP(生成树协议(protocol))数据包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26827727/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com