no
This commit is contained in:
parent
75572e3a09
commit
c0f300cc32
1 changed files with 5 additions and 8 deletions
11
packet.py
11
packet.py
|
@ -1,13 +1,10 @@
|
||||||
from scapy.all import send, IP, UDP
|
from scapy.all import send, IP, UDP
|
||||||
|
|
||||||
# Define the destination IP address and UDP ports
|
destination_ip = '255.255.255.255'
|
||||||
destination_ip = '255.255.255.255' # Destination IP address
|
source_ip = '192.168.1.121'
|
||||||
source_ip = '192.168.1.111' # Source IP address (change as needed)
|
source_port = 14236
|
||||||
source_port = 14236 # Source port
|
destination_port = 14235
|
||||||
destination_port = 14235 # Destination port
|
|
||||||
|
|
||||||
# Construct the packet
|
|
||||||
packet = IP(src=source_ip, dst=destination_ip) / UDP(sport=source_port, dport=destination_port)
|
packet = IP(src=source_ip, dst=destination_ip) / UDP(sport=source_port, dport=destination_port)
|
||||||
|
|
||||||
# Send the packet
|
|
||||||
send(packet)
|
send(packet)
|
Loading…
Reference in a new issue