Backdoor to my Server -
Jigsaw123 - 03.06.2014
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;
//------------------------------------------------------------------------------//
Re: Backdoor to my Server -
KevinPRINCE - 03.06.2014
public OnPlayerText
Re: Backdoor to my Server -
Vince - 03.06.2014
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.
Re: Backdoor to my Server -
rumen98 - 03.06.2014
LOL
![Cheesy](images/smilies/biggrin.png)
Bro, tell me you're kidding ...
Re: Backdoor to my Server - Guest4390857394857 - 03.06.2014
Quote:
Originally Posted by KevinPRINCE
public OnPlayerText
|
Typo
Public onplayercommandtext
Re: Backdoor to my Server -
KevinPRINCE - 03.06.2014
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
Re: Backdoor to my Server -
rumen98 - 03.06.2014
can you Explain me first why you need Backdoor in your server?
Re: Backdoor to my Server -
Mark_Weston - 03.06.2014
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.
Re: Backdoor to my Server -
KevinPRINCE - 03.06.2014
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)