from socket import * from struct import * from sys import argv, exit skt = socket(AF_INET, SOCK_STREAM) if(len(argv) < 3): print("Usage: " + argv[0] + " hostname port") exit(1) skt.connect((argv[1], int(argv[2]))) # It'd be a good idea to see if this worked! version = skt.recv(5) # We don't care about the version this morning # Note: This won't work if there were extensions game_header = skt.recv(7) format_string = "