13 lines
278 B
Python
Executable File
13 lines
278 B
Python
Executable File
#!/usr/bin/env python3
|
|
import socket
|
|
import sys
|
|
|
|
|
|
# UDP_SIZE = int(sys.argv[1])
|
|
|
|
UDP_IP = "127.0.0.1"
|
|
UDP_PORT = 13337
|
|
MESSAGE = b"\xff\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00"
|
|
|
|
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
|
sock.sendto(MESSAGE, (UDP_IP, UDP_PORT)) |