Gits 2012 #11 Packet (300)

Question: Noughts and crosses
300 Points
Solve the puzzle! tictactoe.final2012.ghostintheshellcode.com:9797

After connecting to the given port, we see a tictactoe game:

1. turn

Enter your move (1, 2, 3, 4, 5, 6, 7, 8, 9):

But any input follows to disconnect. Strangely, it only accepts a digit, preceeded by 9 bytes.
Also, it’s totally stupid, so this strategy most probably works:

f = sock("tictactoe.final2012.ghostintheshellcode.com", 9797)
print f.recv(4096)
print f.recv(4096)
f.sendall("1"*10)
print f.recv(4096)
f.sendall("5"*10)
print f.recv(4096)
f.sendall("9"*10)
print f.recv(4096)
print f.recv(4096)
1. turn

     
     
     

Enter your move (1, 2, 3, 4, 5, 6, 7, 8, 9): 
o    

     
     
Computer done moving
2. turn
o    
     
x    

Enter your move (2, 3, 4, 5, 6, 8, 9): 
o    
  o  
x    
Computer done moving
3. turn
o    
  o x
x    

Enter your move (2, 3, 4, 8, 9): 
o    
  o x
x   o
Player "o" wins
Your key is  WhyDoesTebowHaveToSuck?

The flag: WhyDoesTebowHaveToSuck?

Leave a Reply

Your email address will not be published.