如何将 UDP 数据包发送到 scapy 中的特定 UDP dst 端口?
How to send UDP packet to specific UDP dst port in scapy?
我想将我的数据包发送到一个 UDP dst 端口号并通过 eth0 接口发送(如果 scapy 直接处理我的 layer2,那么 eth0 不需要作为参数给出)
使用scapy documentation,我们看到发送一个UDP数据包很简单:
send(IP(dst="127.0.0.1")/UDP(dport=123)/Raw(load="abc"))
我想将我的数据包发送到一个 UDP dst 端口号并通过 eth0 接口发送(如果 scapy 直接处理我的 layer2,那么 eth0 不需要作为参数给出)
使用scapy documentation,我们看到发送一个UDP数据包很简单:
send(IP(dst="127.0.0.1")/UDP(dport=123)/Raw(load="abc"))