AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How To Protect a Private Plugin!! (https://forums.alliedmods.net/showthread.php?t=246492)

cHeesY. 08-18-2014 07:42

How To Protect a Private Plugin!!
 
Hello Guys :P
I want to protect a plugin and I have Script

#define IP_SERVER_LICENTIAT "IPSERVER:PORT"

but i do not know where to write this below SCRIPT ??

new IP_LICENTIAT[20];
get_user_ip(0, IP_LICENTIAT, 21, 1);

if(!equal(IP_LICENTIAT, IP_SERVER_LICENTIAT))
{

Help??

YamiKaitou 08-18-2014 08:30

Re: How To Protect a Private Plugin!!
 
As discussed many times, it is impossible to protect your plugin, there will always be a way around whatever kind of block you put in.

cHeesY. 08-18-2014 10:09

Re: How To Protect a Private Plugin!!
 
you tell me, how can I do it, that I posted earlier??

Estland 08-18-2014 10:10

Re: How To Protect a Private Plugin!!
 
Use something like:

Code:

#include <amxmodx>

new const g_szServerIP[] = "IP:PORT";

public plugin_init()
{
    new szIP[20];
    get_user_ip(0, szIP, charsmax(szIP), false);
   
    if( !equal(szIP, g_szServerIP) )
    {
        set_fail_state("This plugin is protected!");
    }
}


mottzi 08-18-2014 10:48

Re: How To Protect a Private Plugin!!
 
For gods sake, please admins, close such topics before it all starts again...

Fuck For Fun 08-18-2014 13:16

Re: How To Protect a Private Plugin!!
 
1:
Code:

    static szIP[ 22 ]; get_user_ip( 0, szIP, charsmax( szIP ), 0 );
   
    if ( !( equali( szIP, "ip" ) ) )
        set_fail_state( "Error: Fail state wrong IP Address." );


HamletEagle 08-18-2014 13:20

Re: How To Protect a Private Plugin!!
 
This can be easy hacked with net_adress cvar.

Fuck For Fun 08-18-2014 13:34

Re: How To Protect a Private Plugin!!
 
Quote:

Originally Posted by HamletEagle (Post 2185836)
This can be easy hacked with net_adress cvar.

Mine?

HamletEagle 08-18-2014 13:37

Re: How To Protect a Private Plugin!!
 
Any method that use get_user_ip with index 0.

Fuck For Fun 08-18-2014 13:45

Re: How To Protect a Private Plugin!!
 
Quote:

Originally Posted by HamletEagle (Post 2185850)
Any method that use get_user_ip with index 0.

Then come tell me your method can not be defeated?


All times are GMT -4. The time now is 13:01.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.