diff options
Diffstat (limited to 'packet_sender.py')
| -rw-r--r-- | packet_sender.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packet_sender.py b/packet_sender.py new file mode 100644 index 0000000..7703a5f --- /dev/null +++ b/packet_sender.py | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | from scapy.all import Ether, IP, UDP, sendp | ||
| 2 | |||
| 3 | input_ip = input("Enter destination IP: ") | ||
| 4 | |||
| 5 | p = Ether()/IP(dst=input_ip, src='223.255.254.115')/UDP(b"A Payload") | ||
| 6 | |||
| 7 | sendp(p) | ||
