17 lines
321 B
Python
Executable File
17 lines
321 B
Python
Executable File
#! /usr/bin/env python3
|
|
import socket
|
|
|
|
target_host = "127.0.0.1"
|
|
target_port = 9998
|
|
|
|
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
|
|
|
|
|
client.connect((target_host, target_port))
|
|
|
|
client.sendto(b'print("Hello")', (target_host, target_port))
|
|
|
|
response = client.recv(4096)
|
|
|
|
print(response.decode())
|
|
client.close() |