added example packet sender

89f3e2612b11… · Ryan Schanzenbacher ·

parent 6c4c5f16b1be… diff

Changed files

FileChanges
packet_sender.py +7 −0 raw
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 @@
+from scapy.all import Ether, IP, UDP, sendp
+
+input_ip = input("Enter destination IP: ")
+
+p = Ether()/IP(dst=input_ip, src='223.255.254.115')/UDP(b"A Payload")
+
+sendp(p)