Guest User

Untitled

a guest
Feb 23rd, 2017
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. import socket
  2.  
  3. target_host = "127.0.0.1"
  4. target_port = 8089
  5.  
  6. client = socket.socket()
  7.  
  8. client.connect((target_host, target_port))
  9.  
  10. client.send(b"test")
  11.  
  12. response = client.recv(4096).decode()
  13.  
  14. print(response)
Advertisement
Add Comment
Please, Sign In to add comment