2024-06-09 21:21:45 +01:00
|
|
|
from scapy.all import sendp, Ether, IP, UDP
|
2024-06-01 06:43:10 +01:00
|
|
|
|
2024-06-02 01:29:42 +01:00
|
|
|
destination_ip = '255.255.255.255'
|
2024-06-20 06:27:17 +01:00
|
|
|
source_ip = '192.168.1.1'
|
|
|
|
source_mac = '52:54:00:ac:05:8c'
|
2024-08-29 04:45:13 +01:00
|
|
|
destination_mac = '52:54:00:ac:05:8c'
|
2024-06-02 01:29:42 +01:00
|
|
|
source_port = 14236
|
|
|
|
destination_port = 14235
|
2024-06-01 06:43:10 +01:00
|
|
|
|
2024-06-09 21:21:45 +01:00
|
|
|
packet = Ether(src=source_mac, dst=destination_mac) / IP(src=source_ip, dst=destination_ip) / UDP(sport=source_port, dport=destination_port)
|
2024-06-01 06:43:10 +01:00
|
|
|
|
2024-06-09 21:21:45 +01:00
|
|
|
sendp(packet)
|