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

[INC] Md5 Security Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-25-2012 , 12:12   Re: [INC] Md5 Security Plugin
Reply With Quote #21

Quote:
Originally Posted by Xalus View Post
Its not allowed to sell Amxx.
You can only sell open source, if you made it by ur self.
You are right. However, protecting a plugin is also from theft and leaks.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
SpliN
Junior Member
Join Date: Jun 2020
Location: Egypt
Old 02-06-2021 , 21:04   Re: [INC] Md5 Security Plugin
Reply With Quote #22

PHP Code:
#define IP "ip_here"

stock protection()
{
    new 
svip[25]
    
get_user_ip(0,svip,sizeof(svip)-1,0)
    if(!
equali(IP,svip))
    {
        
set_fail_state("This Plugin Licensed")
    }

SpliN is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-06-2021 , 21:33   Re: [INC] Md5 Security Plugin
Reply With Quote #23

Quote:
Originally Posted by SpliN View Post
PHP Code:
#define IP "ip_here"

stock protection()
{
    new 
svip[25]
    
get_user_ip(0,svip,sizeof(svip)-1,0)
    if(!
equali(IP,svip))
    {
        
set_fail_state("This Plugin Licensed")
    }

amx_cvar ip "ip_here"
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 02-07-2021 , 21:15   Re: [INC] Md5 Security Plugin
Reply With Quote #24

Why suddenly dig up a 9 years old thread?
The stock proved to be useless since it is too easy to bypass
__________________
My plugin:
Celena Luna is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 02-11-2021 , 11:56   Re: [INC] Md5 Security Plugin
Reply With Quote #25

Quote:
Originally Posted by SpliN View Post
PHP Code:
#define IP "ip_here"

stock protection()
{
    new 
svip[25]
    
get_user_ip(0,svip,sizeof(svip)-1,0)
    if(!
equali(IP,svip))
    {
        
set_fail_state("This Plugin Licensed")
    }

You do know anyone can recompile amxx and nullify set_fail_state or hook& block it with orpheu/okapi, right??
No matter how complex your protection checks are(and here they are not, cause it can be bypassed by changing a cvar), if you use pause/set_fail_state anyone can remove your protection with 5 lines of code.

For anyone wondering, here is set_fail_state's windows signature for 1.8.2:
Code:
{
    "name"        : "set_fail_state",
    "library"     : "amxmodx_mm",
	 "arguments" :
    [
        {
            "type" : "pointer"
        },
		{
			"type" : "pointer"
		}
    ],
    "return" :
    {
        "type" : "int"
    },
    "identifiers" :
    [
        {
            "os"    : "windows",
            "mod"   : "cstrike",
            "value" : [0x55,0x8B,"*",0x83,"*","*",0x6A,"*",0xB9,"*","*","*","*",0xE8,"*","*","*","*",0xB8]
        },    
        {
            "os"    : "linux",
            "mod"   : "cstrike",
            "value" : "to_be_determined"
        }
    ]
}
The linux signature can be determined too, but this is just an example. Now, just do OrpheuRegisterHook(OrpheuGetFunction("set_fai l_state"), ...) and return OrpheuSupercede. Boom, no need to worry about "protections" anymore.
__________________

Last edited by HamletEagle; 02-11-2021 at 12:01.
HamletEagle is offline
Reply


Thread Tools
Display Modes

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 04:30.


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