发送带有 scapy 的 UDP 显示在 wireshark 中格式错误
Sending a UDP with scapy shows malformed in wireshark
如果我尝试使用 scapy
发送带有 python 的 UDP 数据包
from scapy.all import *
data= "hello"
a = IP(dst="192.168.192.145")/UDP(dport=1194)/Raw(load=data)
send(a)
a.show()
它在 wireshark 中显示为格式错误和 DNS 协议
我哪里错了?
我通过将源端口设置为 50000 解决了这个问题
如果我尝试使用 scapy
发送带有 python 的 UDP 数据包from scapy.all import *
data= "hello"
a = IP(dst="192.168.192.145")/UDP(dport=1194)/Raw(load=data)
send(a)
a.show()
它在 wireshark 中显示为格式错误和 DNS 协议
我哪里错了?
我通过将源端口设置为 50000 解决了这个问题