2017-02-04 52 views
1

畸形如果我尝试使用Scapy的发送UDP分组与Python发送带有Scapy的一个UDP示出的Wireshark

from scapy.all import * 
    data= "hello" 
    a = IP(dst="192.168.192.145")/UDP(dport=1194)/Raw(load=data) 
    send(a) 
    a.show() 

它显示既畸形和如Wireshark的

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

DNS协议

我哪里错了?

回答

1

我想通了这一点通过我的源端口设置为50000

+0

然后标记自己的答案(给自己自己的绿色对勾)。 –

+0

直到两天过去,我无法做到这一点。 – Giovanni