diff --git a/sendether.py b/sendether.py index bbebef075f2ca8af2c5989b8190132f87fe84107..85aaf2d8e20a1dbb8432ebcbefe97b29ea68a9a4 100644 --- a/sendether.py +++ b/sendether.py @@ -2,7 +2,7 @@ import sys import argparse -from scapy.all import sendp, sendpfast, Ether, IP, RandIP, RandMAC, TCP +from scapy.all import sendp, sendpfast, Ether, IP, RandIP, RandMAC, ICMP def macsender(iface): smac_rand = str(RandMAC('00:*:*:*:*:*')) @@ -16,8 +16,7 @@ def macsender(iface): pkts=[] pkts.append(Ether(src=smac_rand, dst=str(RandMAC(dmac_rand)))/ IP(src=str(RandIP('0.0.0.0/0')), dst=str(RandIP('0.0.0.0/0')))/ - TCP(sport=None, dport=None, flags='R', - options=[('Timestamp', (0, 0))])) + ICMP()) print(pkts) sendp(pkts, iface=iface, loop=False, verbose=True)