Jump to content
Zelly

Python 3 ET GetserversResponse

Recommended Posts

It is a response to getservers to a sv_master server

 

So I am trying to figure out what I gotta do to interpret this: 71538cf3b4d638449b35f376e57df5db.png

 

Right now the only way I can even read that much is to just open a file and 'wb' to the file.

I have looked at the code in C that parses it but I don't see anywhere where it decodes it, it just seems to know that they are addresses. First time I have worked with this sort of problem, normally the responses for ET just come over as plain text.

 

Any help appreciated.

Share this post


Link to post
Share on other sites

a hex dump + ascii would have been more useful :)

 

edit: what do you mean by 'decode'?

Edited by SunLight
  • Like 1

Share this post


Link to post
Share on other sites

As SunLight already said try using a hexdump such as

 

0x5C seems to be the delimiter, after that 4 bytes for the ip, 2 bytes for the port and another delimiter

 

Convert 5C 08 09 04 E3 6D 39 5C without delimiter to decimal and you are done

0x08 8

0x09 9

0x04 4

0xE3 227

0x6D39 27961

 

 

Does anybody know a good description about the protocol?

  • Like 1

Share this post


Link to post
Share on other sites

yes I think it's just IP addresses+port, you need to send a getinfo to them if you want to get server name, etc. and parse the server response

  • Like 1

Share this post


Link to post
Share on other sites

Sorry late reply, was out, then was too tired/lazy to work on this again.

 

I just meant I didn't see anywhere where it did anything special to the response in the C code. I don't know C though so that is probably why :D

 

Is this what you need? http://pastebin.com/Dgke5FnV

 

@cubbie I think I understand will see if I can totally grasp it with some trial and error.

Share this post


Link to post
Share on other sites

Sorry late reply, was out, then was too tired/lazy to work on this again.

 

I just meant I didn't see anywhere where it did anything special to the response in the C code. I don't know C though so that is probably why :D

 

Is this what you need? http://pastebin.com/Dgke5FnV

 

@cubbie I think I understand will see if I can totally grasp it with some trial and error.

Yes that was easier to read :D, as cubbie said '\' is the delimiter and then you have an ip address, 4 bytes and the port in 2 bytes.

 

You don't see anything special in the C code because the ips are just stored, and the server info is taken in other places (by sending a getinfo)

  • Like 4

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

About Us

We are glad you decided to stop by our website and servers. At Fearless Assassins Gaming Community (=F|A=) we strive to bring you the best gaming experience possible. With helpful admins, custom maps and good server regulars your gaming experience should be grand! We love to have fun by playing online games especially W:ET, Call of Duty Series, Counter Strike: Series, Minecraft, Insurgency, DOI, TF2 & Battlefield Series and if you like to do same then join us! Here, you can make worldwide friends while enjoying the game. Anyone from any race and country speaking any language can join our Discord and gaming servers. We have clan members from US, Canada, Europe, Sri Lanka, India, Japan, Australia, Brazil, UK, Austria, Poland, Finland and many other countries. It doesn't matter how much good you are in the game or how much good English you speak. We believe in making new friends from all over the world. If you want to have fun and want to make new friends join up our gaming servers and our VoIP servers any day and at any time. .

×

Important Information

By using this site, you agree to our Terms of Use.