title: Deciphering MMORPG Protocol Encoding
body: <p>I plan on writing an automated bot for a game.</p>
  
  <p>The tricky part is figuring out how they encoded their protocol... To make the bot run around is easy, simply make the character run and record what it does in wireshark. However, interpreting the environment is more difficult... It recieves about 5 packets each second if you are idle, hence lots of garbarge.</p>
  
  <p>My plan: Because the game runs under TCP, I will use freecap (<a href="http://www.freecap.ru/eng" rel="noreferrer">http://www.freecap.ru/eng</a>) to force the game to connect to a proxy running on my machine. I will need this proxy to be capable of packet injection, or perhaps a server that is capable of resending captured packets. This way I can recreate and tinker around with what the server sends, and understand their protocol encoding.</p>
  
  <ol>
  <li>Does anyone know where I can get a proxy that allows packet injection or where I can perform packet injection (not via hardware, as is the case with wireless or anything!)</li>
  <li>Where of if I can find a server/proxy that resends captured packets (ie: replays a connection).</li>
  <li>Any better tools or methodologies for pattern matching? Something which can highlight patterns from mutliple messages would be GREAT.</li>
  </ol>
  
  <p><strong>OR</strong>, is there a better way to decipher this here? Possibly a dissasembly strategy (via hooking a winsock function and starting the dissassembly from there) ? I have not done this before so I am not sure. <strong>OR</strong> , any other ideas?</p>