HEX
Server: Apache
System: Linux cloud.webdesigntm.online 4.18.0-477.10.1.el8_8.x86_64 #1 SMP Tue May 16 07:35:04 EDT 2023 x86_64
User: imperoro (1004)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib64/python2.7/Demo/sockets/unicast.py
# Send UDP broadcast packets

MYPORT = 50000

import sys, time
from socket import *

s = socket(AF_INET, SOCK_DGRAM)
s.bind(('', 0))

while 1:
    data = repr(time.time()) + '\n'
    s.sendto(data, ('', MYPORT))
    time.sleep(2)