PDA

View Full Version : Hidden commands server


bimax999
09/07/2015, 05:32 PM
How to find and remove hidden commands from the server since I bought a gamemode and former owner can receive an admin command without my consent .

iTakelot
09/07/2015, 05:37 PM
type 'CTRL + F' look ...

bimax999
09/07/2015, 05:39 PM
use 'CTRL + F' look ...



I mean how can you be out commands that the server administrator , those that are hidden
For gamemode add skype: darky.rebel1999

Michael B
09/07/2015, 05:40 PM
Well, first of all, if you have any clue about what the command is, open your gamemode, hit CTRL+F and search for it, then remove it.
If you don't know what the command is, you'll have to scroll from the top to bottom your gamemode and seek hidden commands.
As a tip, commands are usually placed under OnPlayerCommandText callback, unless your gamemode is using a commands processor, such as ZCMD.

SpikeSpigel
09/07/2015, 05:45 PM
omg.. if you think that there are any commands that can make any player admin just search for the your admin system. Like mine, mine is like that [pAdministratpr].. Just CTRL+F and type your admin system informations :p . Like , if yours is [pAdmin] you can do CTRL+F and type [pAdmin] ..

bimax999
09/07/2015, 05:49 PM
omg.. if you think that there are any commands that can make any player admin just search for the your admin system. Like mine, mine is like that [pAdministratpr].. Just CTRL+F and type your admin system informations :p . Like , if yours is [pAdmin] you can do CTRL+F and type [pAdmin] ..


I do not understand phase order because we say that this command : CMD:managearea(playerid, params[])
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi mai intai.");
if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid,COLOR_WHITE,AdminOnly);
new x_nr[10];
if(sscanf(params, "s[10]",x_nr)) SCM(playerid, COLOR_WHITE, "{B8DBFF}Synthax: /managearea <Close/Open>");
if(strcmp(x_nr,"open",true) == 0)
{
Update3DTextLabelText(areap, 0xFFFFFFFF, "Event Area is open\nApasa enter pentru a intra");
areape = 1;
}
if(strcmp(x_nr,"close",true) == 0)
{
Update3DTextLabelText(areap, 0xFFFFFFFF, "Event Area is closed\nPlease wait...");
areape = 0;
}
return 1;
}

How do I know if it has hidden thing that you can provide the server administrator ?

SpikeSpigel
09/07/2015, 06:10 PM
There's no hidden commands, I have say'd you one time. You need to do CTRL+F and search for EVERY [pAdmin] . But-.. of course, if you don't know nothing about pawno is all lost.

Abagail
09/07/2015, 06:13 PM
Try searching for:

PlayerInfo[playerid][pAdmin] =


using "search from carrot"

This should show you all the results of the pAdmin variable being set.

Crystallize
09/07/2015, 06:23 PM
lol guys his "former owner" can set himself admin without being level 1,2,3 bla bla bla why searching for variables whilst you can just search the commands
Start searching in pawn for "CMD:" then go till they finish if you find anything suspicious where it gives the level then delete it

bimax999
09/07/2015, 06:42 PM
I looked in command but have not found anything my suspect.Question is how to make a single administrator player ? there is no sql injection ? or be protection for that?
And how delete/remove vulnerability mysql sql ..on gamemode?

Crystallize
09/07/2015, 11:43 PM
lmfao do you even have any idea what are you talking about? SQLi isn't possible in samp gamemodes haha lol(I mighe be wrong but never heard of sqli in gms)

Vince
09/07/2015, 11:49 PM
Someone who intentionally puts a backdoor in their script will also make sure to hide it from simple searches like "pAdmin". Those people are asshats, though. If you don't want someone else to use your script, don't release it, simple.