Welcome to Soldier of Fortune Community Forums
17 Oct 2019, 20:59


View unanswered postsView active topics



Reply to topic  [ 2 posts ] 
Safe RCon usage 
Author Message
Netherlands

User avatar

Joined:
Mon Nov 21st, 2011
Posts: 949
Reply with quote
When u have a rcon password in ur autoexec or any other cfg file and you should hit a rcon command binded key like the Pause function in another server the serverlog will save your rcon password and everyone with acces to that log can read and copy that rcon password .

To avoid this from happening you can use this method .


Make a cfg file named:
safe_rcon.cfg

Copy this into it :
zero rcon_password
sp_sc_flow_if T val #_sp_cl_info_server == val "94.23.144.236:28910" "set rcon_password openhouse"
Note: edit the correct ip and password


Then add this to autoexec :
Note: edit the correct ip and password


Then add this to autoexec :
set _sp_cl_on_connect "sp_sc_exec_file safe_rcon.cfg"

If u should have rcon passwords from different servers u just add another line to
safe_rcon.cfg with the correct IP and password :
sp_sc_flow_if T val #_sp_cl_info_server == val "94.23.144.236:28910" "set rcon_password openhouse"


Now when u enter server 94.23.144.236:28910 your rcon password will be automaticly set as “openhouse”
In any other server u will show zero password when u accidently hit a rcon command binded key .


Quote:
Credits: Yump


24 Nov 2011, 23:03
Profile WWW
Netherlands

User avatar

Joined:
Wed Nov 23rd, 2011
Location: Netherlands
Posts: 4064

Evilan
evilan
Reply with quote
Doesn't work ?

Edit: Updated and working - Sorted by Evilan.


Last edited by ShocK on 09 Apr 2012, 12:00, edited 2 times in total.

Code corrected



08 Apr 2012, 18:04
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 
Topic Views: 475


Who is online

Users browsing this forum: No registered users and 1 guest


Top
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group
www.sof1.org