Reputation: 3648
I have been experimenting a bit with wireshark and have read that I should be able to see game data being sent back and forth. I thought that since my connection with the game server is unencrypted and that game packets are sent using the UDP (user datagram protocol) I should be able to see the information the server is sending me. I got some rather interesting results below.
My ultimate goal is to get the coordinates of the pellets (the small circles) and later names on the "Leaderboard" (that is perhaps easier since names on there seem to change less frequently) in agar.io
which is a browser-based game.
I have noticed that the packets are of different lengths (I suppose that is what "Len=" stands for) 101, 117, 133, 149, 165, 181, 197, 229, 439, 469, 565, 1445.
The server is sending mostly sending packages of Len=117(most of these) and 101.
So the question is: where do I find the information(coordinates of pellets or/and names on the leaderboard) that I am looking for?
Upvotes: 2
Views: 494
Reputation: 6264
There is a github project that attempts to document the Agar.io Protocol via reverse-engineering which you might want to take a look at. The meaning of the data depends on the version of the protocol in use, apparently.
For more details, see: https://github.com/forairan/Agar.io-Protocol/blob/master/Protocol.md.
If you want Wireshark to dissect the protocol for you, you can write a custom dissector for it. To more quickly accomplish this, you might want to consider a Lua-based dissector, which doesn't require that you recompile Wireshark, but if you want to contribute the dissector to be included with Wireshark, then you should consider writing it in C. The Wireshark site has a lot of helpful information in this regard, but perhaps a look at the Wireshark developer's guide would be a good place to start. The Wireshark wiki also contains a lot of helpful information, particularly for Lua (sample scripts are available, for example), should you decide to attempt to write a Lua-based dissector.
Upvotes: 1