【问题标题】:Sending a UDP with scapy shows malformed in wireshark在wireshark中发送带有scapy的UDP显示格式错误
【发布时间】:2017-02-04 02:54:56
【问题描述】:

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

我哪里错了?

【问题讨论】:

    标签: python scapy


    【解决方案1】:

    我通过将源端口设置为 50000 来解决这个问题

    【讨论】:

    • 然后标记你自己的答案(给你自己的绿色复选标记)。
    • 两天后我才能做到这一点。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-07-03
    • 2020-11-03
    • 1970-01-01
    • 1970-01-01
    • 2020-03-17
    • 1970-01-01
    • 2020-03-08
    相关资源
    最近更新 更多