11 lines
185 B
Python
11 lines
185 B
Python
#!/usr/bin/env python3
|
|
from scapy.all import *
|
|
|
|
print("Spoofing ICMP echo request from 1.2.3.4 to 10.9.0.5...")
|
|
a = IP()
|
|
a.src = '1.2.3.4'
|
|
a.dst = '10.9.0.5'
|
|
b = ICMP()
|
|
p = a/b
|
|
send(p)
|