Hello,

I'm running an L4D server with 4 forks on Debian 7 (64-bit), installed
yesterday via SteamCMD.  I think there's a bug in the code for the RCON
password, because I just discovered that it doesn't handle the "%"
character correctly.  It apparently gets doubled, so a literal "%" becomes
"%%", a literal "%%" becomes "%%%%", etc.

Passwords without "%" work fine, even if they have other special
characters.  I even tried backslash-escaping the "%" but it didn't make a
difference.  Here are some examples pasted from the console:

    rcon_password mySecretPassword
    rcon_password
    "rcon_password" = "mySecretPassword" ( def. "" )
     - remote console password.

    rcon_password my$Secret#Password!
    rcon_password
    "rcon_password" = "my$Secret#Password!" ( def. "" )
     - remote console password.

    rcon_password my%Secret#Password!"
    rcon_password
    "rcon_password" = "my%%Secret#Password!"" ( def. "" )
     - remote console password.

    rcon_password my%Secret%%Password!
    rcon_password
    "rcon_password" = "my%%Secret%%%%Password!" ( def. "" )
     - remote console password.

    rcon_password my\%Secret#Password!
    rcon_password
    "rcon_password" = "my\%%Secret#Password!" ( def. "" )
     - remote console password.

When I enter the "rcon_password" commands on the forked server's
netconsole, I get the output above.  However, on the real console of the
main server, I see the correct values:

    #01:"rcon_password" = "mySecretPassword"
    #01: ( def. "" )

    #01:"rcon_password" = "my$Secret#Password!"
    #01: ( def. "" )

    #01:"rcon_password" = "my%Secret#Password!""
    #01: ( def. "" )

    #01:"rcon_password" = "my%Secret%%Password!"
    #01: ( def. "" )

    #01:"rcon_password" = "my\%Secret#Password!"
    #01: ( def. "" )

Regardless of password I use (with or without the doubled "%"), I can't
connect to the server via RCON if the password contains this character.
I'm pretty sure this is a recent change, because my old RCON password had
the "%" in it and it worked fine.  Also, this doesn't seem to happen on any
of my servers for other games.

    - Dave
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux

Reply via email to