Rating: 4.0

The challenge name and description and the servers’ response ,

i use this script :

#!/usr/bin/python
import socket
plist = [88, 156, 983, 1287, 8743, 5622, 9123]
host = '34.249.81.124'
data = ""
for p in plist:
print("Attempting to connect to %s on port %s" % (host, p))
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.settimeout(1.0)
s.connect((host, p))
data += s.recv(1024)
data += s.recv(1024)
data += s.recv(1024)
s.close()
except Exception as e:
continue
print data

Attempting to connect to 34.249.81.124 on port 88

Attempting to connect to 34.249.81.124 on port 156

Attempting to connect to 34.249.81.124 on port 983

Attempting to connect to 34.249.81.124 on port 1287

Attempting to connect to 34.249.81.124 on port 8743

Attempting to connect to 34.249.81.124 on port 5622

Attempting to connect to 34.249.81.124 on port 9123

flag{6283a3856ce4766d88c475668837184b}