scapy基本操作


scapy基本操作

首先通过pip安装scapy

pip3 install scapy

然后就可以在窗口打开scapy

image-20220413132828510

ip=IP(dst ="目标ip")

image-20220413133255339

构建广播数据包

Ether(dst="FF:FF:FF:FF:FF:FF")

构建一个ping包并且发送

send(IP(dst="目标ip")/ICMP())  //只发不收

image-20220413133749079

随意填写数据

IP(dst='目标ip')/fuzz(TCP())

image-20220413144755270

可以接收 sr sr1 srp

sr(IP(dst='目标ip')/ICMP())

image-20220413160606495

p=sr1(IP(dst='目标ip')/ICMP())
p

image-20220413160819073

syn半开放扫描

sr1(IP(dst='目标ip')/TCP(dport=80,flags='S'))

image-20220413161253476


文章作者: Broken-year
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 Broken-year !
  目录