使用scapy发送UDP显示在wireshark中格式错误

时间:2017-02-04 02:54:57

标签: python scapy

如果我尝试使用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协议

Screen Shot 2017-02-03 at 8.31.52 PM.png

我哪里错了?

1 个答案:

答案 0 :(得分:1)

我通过将源端口设置为50000

来解决这个问题