Breaking rcon - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Breaking rcon (
/showthread.php?tid=486380)
Breaking rcon -
BossArturKA - 08.01.2014
Hello dear users of sa-mp.com!
Today the unknown became authorized in RCON though it in general is disconnected. (rcon 0 in server.cfg)
Further it replaced the name, a pier we moved, new IP.
I ban users at authorization in RCON, here part of a code from pawn.
PHP Code:
public OnRconLoginAttempt(ip[], password[], success)
{
new stringer[32];
format(stringer,sizeof(stringer),"banip %d",ip);
SendRconCommand(stringer);
SendRconCommand("reloadbans");
printf("Entrance attempt in Rcon IP: %d.",ip);
return true;
}
Here lines from the ravine. (server_log.txt)
PHP Code:
[21:20:14] Entrance attempt in Rcon IP: 52.
[21:20:14] RCON (In-Game): Player #25 (Name_Bbbb) failed login.
[21:20:23] Entrance attempt in Rcon IP: 52.
[21:20:23] RCON (In-Game): Player #25 (Name_Bbbb) failed login.
[18:20:03] Entrance attempt in Rcon IP: 49.
[18:20:03] RCON (In-Game): Player #32 (Name_Aasaaa) has logged in.
[18:23:31] Entrance attempt in Rcon IP: 49.
[18:23:31] RCON (In-Game): Player #0 (Name_Aasaaa) has logged in.
[18:31:54] RCON (In-Game): Player [Name_Aasaaa sent command: hostname new IP 123.345.678.901:2345
I lost considerable online! I ask for help in a solution!
Re: Breaking rcon -
ikey07 - 08.01.2014
format(stringer,sizeof(stringer),"banip %d",ip);
change to
format(stringer,sizeof(stringer),"banip %s",ip);
Re: Breaking rcon -
AustinWeerdGuy - 08.01.2014
Strange error.. I had the same. Thanks for the solution ikey07! I give you +rep!