mirror of
https://github.com/autistic-symposium/sec-pentesting-toolkit.git
synced 2025-05-02 14:56:10 -04:00
22 lines
387 B
Python
Executable file
22 lines
387 B
Python
Executable file
#!/usr/bin/env python
|
|
|
|
__author__ = "bt3gl"
|
|
|
|
import socket
|
|
|
|
BIND_IP = '0.0.0.0'
|
|
BIND_PORT = 9000
|
|
|
|
def udp_server():
|
|
|
|
|
|
server = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
|
server.bind(( BIND_IP, BIND_PORT))
|
|
print "Waiting on port: " + str(BIND_PORT)
|
|
|
|
while 1:
|
|
data, addr = server.recvfrom(1024)
|
|
print data
|
|
|
|
if __name__ == '__main__':
|
|
udp_server()
|