scapy基本操作
首先通过pip安装scapy
pip3 install scapy
然后就可以在窗口打开scapy
ip=IP(dst ="目标ip")
构建广播数据包
Ether(dst="FF:FF:FF:FF:FF:FF")
构建一个ping包并且发送
send(IP(dst="目标ip")/ICMP()) //只发不收
随意填写数据
IP(dst='目标ip')/fuzz(TCP())
可以接收 sr sr1 srp
sr(IP(dst='目标ip')/ICMP())
p=sr1(IP(dst='目标ip')/ICMP())
p
syn半开放扫描
sr1(IP(dst='目标ip')/TCP(dport=80,flags='S'))