話不多說我們直接上代碼
from scapy.all import *
ans, unans = srp(Ether(dst="ff:ff:ff:ff:ff:ff")/ARP(pdst="192.168.43.0/24")/"test",timeout=2)
for s,r in ans:
print("存活主機 -> "+r[ARP].psrc)
推薦使用arp協議來掃描內網主機存活。
話不多說我們直接上代碼
from scapy.all import *
ans, unans = srp(Ether(dst="ff:ff:ff:ff:ff:ff")/ARP(pdst="192.168.43.0/24")/"test",timeout=2)
for s,r in ans:
print("存活主機 -> "+r[ARP].psrc)
推薦使用arp協議來掃描內網主機存活。
繼續運行 ?* 回憶上次內容 上次使用shell環境中的命令 命令 作用 c