Protecting Your MySQL-Enhanced Script
#8

Define your server IP in your script and retrieve the IP using GetServerVarAsString() then compare it, and if it's incorrect then shut the server down. I think this is how I done it, I remember using it in all of the vxrp modes and the one time the server was hacked, they got away with nothing except an AMX that'd print 1,000 times and delete itself.

Try again with the GetServerVarAsString method?

I remember in 'project salad' (the carlitos version of vxrp) in 2009, I found some code on the forums by ****** and added it:

pawn Код:
new ip[16];
    GetServerVarAsString("bind", ip, sizeof(ip));
    if (!ip[0] || strcmp(ip, BIND))
    {
        for (;;)
        {
            print("[SERVER] Unable to continue, the server's bind doesn't match the defined one.");
        }
    }
BIND is a define at the top of the script.
Reply


Messages In This Thread
Protecting Your MySQL-Enhanced Script - by Scenario - 26.11.2011, 05:37
Re: Protecting Your MySQL-Enhanced Script - by iggy1 - 26.11.2011, 06:38
Re: Protecting Your MySQL-Enhanced Script - by Scenario - 26.11.2011, 14:24
Re: Protecting Your MySQL-Enhanced Script - by Calgon - 26.11.2011, 14:26
Re: Protecting Your MySQL-Enhanced Script - by Scenario - 26.11.2011, 14:29
Re: Protecting Your MySQL-Enhanced Script - by Calgon - 26.11.2011, 14:29
Re: Protecting Your MySQL-Enhanced Script - by Scenario - 26.11.2011, 14:32
Re: Protecting Your MySQL-Enhanced Script - by Calgon - 26.11.2011, 14:37
Re: Protecting Your MySQL-Enhanced Script - by serman - 26.11.2011, 14:42
Re: Protecting Your MySQL-Enhanced Script - by Scenario - 26.11.2011, 14:44

Forum Jump:


Users browsing this thread: 2 Guest(s)