我正在构建ARP数据包,当我调用构造函数时,我发现scapy正在发送DNS查询和ARP请求。可以禁用这种行为吗?
谢谢
用于构建ARP数据包的源代码:
from scapy.all import *
eth = scapy.layers.l2.Ether(src="1e:fb:be:26:54:24",
dst="ff:ff:ff:ff:ff:ff")
arp = scapy.layers.l2.ARP(pdst="217.70.176.7",
psrc="217.70.176.6",
hwsrc="1e:fb:be:26:54:24")
发送的帧的Wireshk捕获: