tools/packet.py

10 lines
255 B
Python
Raw Normal View History

2024-06-01 06:43:10 +01:00
from scapy.all import send, IP, UDP
2024-06-02 01:29:42 +01:00
destination_ip = '255.255.255.255'
source_ip = '192.168.1.121'
source_port = 14236
destination_port = 14235
2024-06-01 06:43:10 +01:00
packet = IP(src=source_ip, dst=destination_ip) / UDP(sport=source_port, dport=destination_port)
2024-06-02 01:29:42 +01:00
send(packet)