tools/packet.py
Tristan Smith c0f300cc32 no
2024-06-01 20:29:42 -04:00

10 lines
No EOL
255 B
Python

from scapy.all import send, IP, UDP
destination_ip = '255.255.255.255'
source_ip = '192.168.1.121'
source_port = 14236
destination_port = 14235
packet = IP(src=source_ip, dst=destination_ip) / UDP(sport=source_port, dport=destination_port)
send(packet)