SA-MP Forums Archive
BAD RCON ATTEMPT BY: 127.0.0.1 (using RCON API) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: BAD RCON ATTEMPT BY: 127.0.0.1 (using RCON API) (/showthread.php?tid=550684)



BAD RCON ATTEMPT BY: 127.0.0.1 (using RCON API) - Stuneris - 14.12.2014

I'm tying use
PHP код:
$query->setWeather(2); 
but samp console say
Код:
BAD RCON ATTEMPT BY: 127.0.0.1
Any ideas?

I'm using [PHP] Query and RCON API: https://sampforum.blast.hk/showthread.php?tid=355574


Re: BAD RCON ATTEMPT BY: 127.0.0.1 (using RCON API) - zT KiNgKoNg - 14.12.2014

Can you show us the PHP, it'll help us help you. (The Entire thing, feel free to remove the RCON password)


Re: BAD RCON ATTEMPT BY: 127.0.0.1 (using RCON API) - Stuneris - 14.12.2014

PHP код:
$query = new SampRcon($_GET['ip'], strval($_GET['port']), md5($_GET['hash']));
if(
$query->connect())
{
     
$query->setWeather(2);
}
else die(
'Can\'t connect...'); 
It's connected successfuly, I can get server info etc. I just can't set any info like:
Код:
setWeather
setGravity
say
setGameModeText
etc.


Re: BAD RCON ATTEMPT BY: 127.0.0.1 (using RCON API) - zT KiNgKoNg - 14.12.2014

To start off, why are you hashing the password? The password in the settings file is plaintext unless you've created the has beforehand and used that as a password.


Re: BAD RCON ATTEMPT BY: 127.0.0.1 (using RCON API) - Stuneris - 14.12.2014

Quote:
Originally Posted by zT KiNgKoNg
Посмотреть сообщение
To start off, why are you hashing the password? The password in the settings file is plaintext unless you've created the has beforehand and used that as a password.
Because, to this PHP file can get any website user and it have all typing logs. If someone type correct password another person see it in log. Its only for security.


Re: BAD RCON ATTEMPT BY: 127.0.0.1 (using RCON API) - Stuneris - 14.12.2014

Any more?