Created
January 28, 2014 03:15
-
-
Save anonymous/8661737 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
host = "23.23.190.204" | |
port = 2002 | |
s.connect((host, port)) | |
print s.recv(1024) | |
s.send("hawaii\r\n") | |
print s.recv(1024) | |
s.send("spam\r\n") | |
print("Sent spam") | |
print s.recv(1024) | |
s.send("bid\r\n") | |
print("Sent bid") | |
print s.recv(1024) | |
s.send("dip\r\n") | |
print("Sent dip") | |
print s.recv(1024) | |
s.send("fin\r\n") | |
print("Sent fin") | |
print s.recv(1024) | |
s.send("bake\r\n") | |
print("Sent bake") | |
print s.recv(1024) | |
s.send("hall\r\n") | |
print("Sent hall") | |
print s.recv(1024) | |
s.send("beak\r\n") | |
print("Sent beak") | |
print s.recv(1024) | |
s.send("bass\r\n") | |
print("Sent bass") | |
print s.recv(1024) | |
s.send("bill\r\n") | |
print("Sent bill") | |
print s.recv(1024) | |
s.send("cere\r\n") | |
print("Sent cere") | |
print s.recv(1024) | |
s.send("corm\r\n") | |
print("Sent corm") | |
print s.recv(1024) | |
s.send("crag\r\n") | |
print("Sent crag") | |
print s.recv(1024) | |
s.send("cree\r\n") | |
print("Sent cree") | |
print s.recv(1024) | |
s.send("dice\r\n") | |
print("Sent dice") | |
print s.recv(1024) | |
s.send("doff\r\n") | |
print("Sent doff") | |
print s.recv(1024) | |
s.send("east\r\n") | |
print("Sent east") | |
print s.recv(1024) | |
s.send("eats\r\n") | |
print("Sent eats") | |
print s.recv(1024) | |
s.send("flax\r\n") | |
print("Sent flax") | |
print s.recv(1024) | |
s.send("seat\r\n") | |
print("Sent seat") | |
print s.recv(1024) | |
s.send("honey\r\n") | |
print("Sent honey") | |
print s.recv(1024) | |
s.close |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment