summaryrefslogtreecommitdiff
path: root/packet_sender.py
diff options
context:
space:
mode:
Diffstat (limited to 'packet_sender.py')
-rw-r--r--packet_sender.py7
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 @@
1from scapy.all import Ether, IP, UDP, sendp
2
3input_ip = input("Enter destination IP: ")
4
5p = Ether()/IP(dst=input_ip, src='223.255.254.115')/UDP(b"A Payload")
6
7sendp(p)