Raised This Month: $51 Target: $400
 12% 

How To Protect a Private Plugin!!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cHeesY.
Member
Join Date: Nov 2013
Old 08-18-2014 , 07:42   How To Protect a Private Plugin!!
Reply With Quote #1

Hello Guys
I want to protect a plugin and I have Script

#define IP_SERVER_LICENTIAT "IPSERVERORT"

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??
__________________
cHeesY. is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-18-2014 , 08:30   Re: How To Protect a Private Plugin!!
Reply With Quote #2

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.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
cHeesY.
Member
Join Date: Nov 2013
Old 08-18-2014 , 10:09   Re: How To Protect a Private Plugin!!
Reply With Quote #3

you tell me, how can I do it, that I posted earlier??
__________________
cHeesY. is offline
Estland
Member
Join Date: Nov 2012
Old 08-18-2014 , 10:10   Re: How To Protect a Private Plugin!!
Reply With Quote #4

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!");
    }
}
Estland is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 08-18-2014 , 10:48   Re: How To Protect a Private Plugin!!
Reply With Quote #5

For gods sake, please admins, close such topics before it all starts again...
mottzi is offline
Send a message via MSN to mottzi
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 08-18-2014 , 13:16   Re: How To Protect a Private Plugin!!
Reply With Quote #6

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." );
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-18-2014 , 13:20   Re: How To Protect a Private Plugin!!
Reply With Quote #7

This can be easy hacked with net_adress cvar.
__________________
HamletEagle is offline
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 08-18-2014 , 13:34   Re: How To Protect a Private Plugin!!
Reply With Quote #8

Quote:
Originally Posted by HamletEagle View Post
This can be easy hacked with net_adress cvar.
Mine?
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-18-2014 , 13:37   Re: How To Protect a Private Plugin!!
Reply With Quote #9

Any method that use get_user_ip with index 0.
__________________

Last edited by HamletEagle; 08-18-2014 at 13:37.
HamletEagle is offline
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 08-18-2014 , 13:45   Re: How To Protect a Private Plugin!!
Reply With Quote #10

Quote:
Originally Posted by HamletEagle View Post
Any method that use get_user_ip with index 0.
Then come tell me your method can not be defeated?
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:25.


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