G
Ryan's Git Repos
xdp-packet-dropper
files
log
graph
refs
Ref
main
added example packet sender
89f3e2612b11…
· Ryan Schanzenbacher ·
2023-02-16 23:33
parent 6c4c5f16b1be…
diff
Changed files
File
Changes
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)