diff options
author | Ryan Schanzenbacher <ryan@rschanz.org> | 2023-02-16 23:33:46 -0500 |
---|---|---|
committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2023-02-16 23:33:46 -0500 |
commit | 89f3e2612b11b62c6e235084bae8d14e82a98683 (patch) | |
tree | 38a0b838666c6f1e119997c1348f0c4cd2c969e8 | |
parent | 6c4c5f16b1beb599ba897956499469eeca86cfc8 (diff) |
added example packet sender
-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) | ||