XQF / xqf

XQF game server browser
http://xqf.github.io
GNU General Public License v2.0
37 stars 12 forks source link

Half-Life (old): RCON Broken #146

Open Xylemon opened 9 years ago

Xylemon commented 9 years ago

Using RCON on Half-Life WON2 (old) servers just gives me the message "hallenge." However, it seems that Steam Half-Life servers are giving proper messages.

illwieckz commented 9 years ago

Hmm, too bad, I do not have any access to this kind of server to check that! I don't know how to reproduce myself. :confused:

Xylemon commented 9 years ago

I host a few. Perhaps I could run a temporary one and email you the rcon password for it?

illwieckz commented 9 years ago

It could be very nice! I've not many time right now, but perhaps in july/august I will have more free time, I would keep you informed. :wink:

Xylemon commented 9 years ago

Alright, just email me xylem2020[at]gmail.com or leave another comment here!

illwieckz commented 9 years ago

Do you know any other open source rcon tool for old Half Life servers that I can read some source code to see how it works?

Xylemon commented 9 years ago

Sadly the only tool I can think of is QStat, however https://github.com/alliedmodders/amxmodx is a great plugin for HL servers that lets you control rcon. Might be worth looking at.

illwieckz commented 9 years ago

Can you try multircon (web page, zip sources) to check if his claimed support of HL server is true ?

Xylemon commented 9 years ago

It did work for me with my WON2 servers.

illwieckz commented 9 years ago

Nice, so we have a reference implementation to compare :-)

illwieckz commented 9 years ago

What if here: src/rcon.c#L168

You do that:

-       char* mustresponse = "\377\377\377\377challenge rcon ";
+       char* mustresponse = "\377\377\377\377challenge rcon\n";

?

Xylemon commented 9 years ago

Same thing. Nothing different appears.