mirror of https://github.com/RainMark/cops.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
223 B
11 lines
223 B
#!/usr/bin/env python3
|
|
|
|
import sys
|
|
import socket
|
|
|
|
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
|
|
s.connect((sys.argv[1], int(sys.argv[2])))
|
|
s.sendall(b'hello')
|
|
data = s.recv(1024)
|
|
print(data)
|
|
|
|
|