You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
379 B
20 lines
379 B
#!/usr/bin/python3 |
|
|
|
import sys |
|
from scapy.all import * |
|
|
|
if __name__ == '__main__': |
|
iface = sys.argv[1] |
|
|
|
e = Ether(src="02:53:55:42:45:01", |
|
dst='ff:ff:ff:ff:ff:ff') |
|
|
|
i = IP(src = "192.168.2.1", dst = "192.168.2.4") |
|
|
|
t = TCP(dport=80, sport=random.randint(49152,65535)) |
|
|
|
d = "A" |
|
|
|
pkg = e / i / t / d |
|
|
|
sendp(pkg, iface=iface, verbose=True)
|
|
|