added a packet i use for testing

This commit is contained in:
Tristan Smith 2024-06-01 01:43:10 -04:00
parent c2f4655053
commit 75572e3a09

13
packet.py Normal file
View file

@ -0,0 +1,13 @@
from scapy.all import send, IP, UDP
# Define the destination IP address and UDP ports
destination_ip = '255.255.255.255' # Destination IP address
source_ip = '192.168.1.111' # Source IP address (change as needed)
source_port = 14236 # Source port
destination_port = 14235 # Destination port
# Construct the packet
packet = IP(src=source_ip, dst=destination_ip) / UDP(sport=source_port, dport=destination_port)
# Send the packet
send(packet)