Hey Sebastian, thanks for the information. After messing with it some
more, it isn't making much sense. It seems if I set the Packet Size on
the SERVERDATA_AUTH_RESPONSE packet to any value smaller than what it
should be, it authenticates.
writer.Write((int)12);
writer.Write(RequestID);
writer.Write((int)RCONPacket.RCONDATA_sent.SERVERDATA_AUTH_RESPONSE);
writer.Write("\0");
writer.Write("\0");
When I send that, it fails, but if I change the first Byte to 10, 8, or
anything smaller it seems to work. I am printing out the length of the
full packet, and it is 16 bytes, so without the 4 for the Packet Size
byte, it should be 12. This has left me very confused.
@Ronny - According to the RCON documentation, in the
SERVERDATA_AUTH_RESPONSE packet both strings should be null I think.
Same case seems to apply. Adding the password to String1 in the response
packet makes it 20 bytes. When I set the Packet Size (first byte of the
packet) to 16 (full packet size - 4) it fails. Anything smaller than 16
and it says it authenticated.
On 3/13/2011 2:36 PM, Sebastian Staudt wrote:
> The Wiki page is not outdated. I have three working implementations (Ruby,
> Java and PHP) for my Steam Condenser project
> (http://koraktor.de/steam-condenser) based on the VDC docs.
>
> There are some tripwires though, especially when it comes to long server
> responses.
>
> There's also a fork of Steam Condenser
> (http://github.com/txdv/steam-condenser) trying to implement it for C#. So
> you might want to take a look at that too.
>
> Best regards,
> Sebastian
>
> Am 13.03.2011 um 19:21 schrieb Brett Powell <[email protected]>:
>
>> The protocol listed on
>> http://developer.valvesoftware.com/wiki/Source_RCON_Protocol seems to be
>> a little bit outdated.
>>
>> I am trying to replicate the protocol in a C# NET application (will run
>> along side srcds.exe to allow me to reroute my server's RCON for security).
>>
>> When I reply to an Authorization request, I write the packet as
>>
>> Packet Size (4 bytes - Doesn't Including itself)
>> Request ID (4 bytes)
>> Auth Response : Value is 2 (4 bytes)
>>
>> then the two NULL terminated strings. I have tried both excluding and
>> including the Packet Size inside of the Packet Size (so I have tried
>> with the first value being 10 and 14) and neither works.
>>
>> So is the RCON Protocol on the Wiki outdated or am I doing something wrong?
>>
>>
>> _______________________________________________
>> To unsubscribe, edit your list preferences, or view the list archives,
>> please visit:
>> http://list.valvesoftware.com/mailman/listinfo/hlds
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlds
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds