Raised This Month: $ Target: $400
 0% 

Is there a way to go past set_fail_state?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yan1255
Senior Member
Join Date: Jul 2011
Old 08-07-2013 , 08:46   Is there a way to go past set_fail_state?
Reply With Quote #1

*TITLE*
__________________
yan1255 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-07-2013 , 08:49   Re: Is there a way to go past set_fail_state?
Reply With Quote #2

No, once a plugin has been marked as Failed, it halts
__________________
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
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 08-07-2013 , 09:26   Re: Is there a way to go past set_fail_state?
Reply With Quote #3

A question for you, Yan. Why, if I can ask?
__________________

Last edited by claudiuhks; 08-07-2013 at 09:26.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
yan1255
Senior Member
Join Date: Jul 2011
Old 08-07-2013 , 21:36   Re: Is there a way to go past set_fail_state?
Reply With Quote #4

Quote:
Originally Posted by claudiuhks View Post
A question for you, Yan. Why, if I can ask?
Because I know of a plugin that if the server ip address isn't the ip address of the plugin it make set_fail_state and people told me that someone has managed going through this defense and I just want to make sure my plugins are safe.
__________________
yan1255 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-07-2013 , 21:47   Re: Is there a way to go past set_fail_state?
Reply With Quote #5

Quote:
Originally Posted by yan1255 View Post
Because I know of a plugin that if the server ip address isn't the ip address of the plugin it make set_fail_state and people told me that someone has managed going through this defense and I just want to make sure my plugins are safe.
Well, it's not by re-enabling the plugin after a failed state is set. There are other ways.
__________________
fysiks is offline
yan1255
Senior Member
Join Date: Jul 2011
Old 08-07-2013 , 22:40   Re: Is there a way to go past set_fail_state?
Reply With Quote #6

Quote:
Originally Posted by fysiks View Post
Well, it's not by re-enabling the plugin after a failed state is set. There are other ways.
if the plugin is failing do to the ip address is there a way to re-enable the plugin ?
__________________
yan1255 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-08-2013 , 00:30   Re: Is there a way to go past set_fail_state?
Reply With Quote #7

You have just been said no.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
red_bull2oo6
Senior Member
Join Date: Mar 2012
Location: Braila, Romania
Old 08-08-2013 , 06:33   Re: Is there a way to go past set_fail_state?
Reply With Quote #8

if the guy who has your plugin.. knows the ip that the plugin is licensed to, he can bypass it by setting that ip to "net_address" cvar in server.cfg

i tried that and worked.. ( it works only of you get server's ip like this: get_user_ip( 0, etc , etc, etc );

after that i started to get server's ip from: http://checkip.dyndns.com/ using sockets.
( http://forums.alliedmods.net/showpos...06&postcount=4 or http://forums.alliedmods.net/showthr...96#post1157296)


EDIT: i`m talking about this method.

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>

#define PLUGIN "New Plugin"
#define VERSION "1.0"

new g_szLicensedIp[ ] = "123.456.789.012:27015";    // Example

public plugin_init( )
{
    
register_pluginPLUGINVERSION"Askhanar" );
    
    new 
szIp25 ];
    
get_user_ip0szIpsizeofszIp ) -1);
    
    if( !
equalg_szLicensedIpszIp ) )
        
set_fail_state"Wrong License!" );
        
    
// Add your code here...

the ip can easily be found by decompilling .amxx with wraith decompiler. because it shows every string directly put in it like = "My String" ( and also format & formatex ).

to fix the bug from above, i did something like this:

PHP Code:
g_szLicensedIp] = '9';
    
g_szLicensedIp] = '2';
    
g_szLicensedIp] = '.';
    
g_szLicensedIp] = '8';
    
g_szLicensedIp] = '0';
    
g_szLicensedIp] = '.';
    
g_szLicensedIp] = '1';
    
g_szLicensedIp] = '6';
    
g_szLicensedIp] = '4';
    
g_szLicensedIp] = '.';
    
g_szLicensedIp10 ] = '1';
    
g_szLicensedIp11 ] = '2';
    
g_szLicensedIp12 ] = '1';
    
g_szLicensedIp13 ] = EOS
hope i helped you, and i hope nobody gets mad on me for explaining this.

Last edited by red_bull2oo6; 08-08-2013 at 06:55.
red_bull2oo6 is offline
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 08-08-2013 , 08:56  
Reply With Quote #9

That info is valuable
Quote:
PHP Code:
g_szLicensedIp] = '9';
    
g_szLicensedIp] = '2';
    
g_szLicensedIp] = '.';
    
g_szLicensedIp] = '8';
    
g_szLicensedIp] = '0';
    
g_szLicensedIp] = '.';
    
g_szLicensedIp] = '1';
    
g_szLicensedIp] = '6';
    
g_szLicensedIp] = '4';
    
g_szLicensedIp] = '.';
    
g_szLicensedIp10 ] = '1';
    
g_szLicensedIp11 ] = '2';
    
g_szLicensedIp12 ] = '1';
    
g_szLicensedIp13 ] = EOS
Can you give a sample code or how you implemented this ?
Sorry i am a learner !!
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then

Last edited by YamiKaitou; 08-08-2013 at 08:58.
devilicioux is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-08-2013 , 08:58   Re: Is there a way to go past set_fail_state?
Reply With Quote #10

Note: This type of protection is pointless since the SMA must always be distributed if you plan on distributing the AMXX file as well
__________________
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
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 15:44.


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