sendp(pkt, inter=1, count=5, iface="enp7s0f1") pkt = Ether(dst="ff:ff:ff:ff:ff:ff")/IP(src='1.1.1.200', dst='255.255.255.255')/UDP(sport=68, dport=67)
sendp(pkt, inter=1, count=5, iface="enp7s0f1") data = 'data'
pkt = Ether(dst="22:33:44:55:66:77:88")/IP(src='1.1.1.200', dst='2.2.2.200')/UDP(sport=100, dport=200)/data
sendp(pkt, inter=1, count=5, iface="enp7s0f1")

安装 scapy 地址:

https://pypi.org/project/scapy/

上一篇:Django REST framework 第三章 CBV


下一篇:js 弹层 提示