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

help me security


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gih
Junior Member
Join Date: Aug 2011
Old 06-10-2012 , 21:26   help me security
Reply With Quote #1

can make a security system that I can within my plugins?

I thought of such a system within my plugins I put the name of my server,
if the server name is not like I put the plugin into the server automatically shuts down and will not turn on until the server name is set equal to the plugin.
Gih is offline
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 06-10-2012 , 21:31   Re: help me security
Reply With Quote #2

For starters, I hardly think two threads was necessary.

Also, I think using the IP of the server is a better way for what you are asking.

Finally, why don't you just not give out your plugins and there won't be a need to protect them.
__________________
Hi.
Kreation is offline
Gih
Junior Member
Join Date: Aug 2011
Old 06-10-2012 , 21:35   Re: help me security
Reply With Quote #3

you can help me with this protection by IP?
Gih is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-10-2012 , 22:05   Re: help me security
Reply With Quote #4

This type of protection is pointless since you are required to supply the Source Code to any plugin you distribute
__________________
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
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-11-2012 , 00:21   Re: help me security
Reply With Quote #5

Quote:
Originally Posted by YamiKaitou View Post
This type of protection is pointless since you are required to supply the Source Code to any plugin you distribute
But question is, will someone help him on this on public forum, or will he has to pay someone that doesn't know how to code via PM for some code that, if is working, won't be a strong protection ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Gih
Junior Member
Join Date: Aug 2011
Old 06-20-2012 , 17:13   Re: help me security
Reply With Quote #6

help me please?
Gih is offline
sasukebr
Member
Join Date: Feb 2012
Location: Porto Alegre
Old 06-20-2012 , 18:39   Re: help me security
Reply With Quote #7

Quote:
Originally Posted by Gih View Post
help me please?
I have an example plugin that I found on the Internet


add msn [email protected]
sasukebr is offline
Send a message via MSN to sasukebr Send a message via Skype™ to sasukebr
leonard19941
Veteran Member
Join Date: Jun 2011
Old 06-21-2012 , 18:20   Re: help me security
Reply With Quote #8

Quote:
Originally Posted by Gih View Post
can make a security system that I can within my plugins?

I thought of such a system within my plugins I put the name of my server,
if the server name is not like I put the plugin into the server automatically shuts down and will not turn on until the server name is set equal to the plugin.
Try this:

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

#include <amxmodx>

#define VERSION "1.0"

new const szServerIpProtection[ ] = "69.162.68.76:27015" // Server Ip Protection

public plugin_init( )
{
    
register_plugin"Plugin Ip Protection"VERSION"" );
    
    static 
ServerIp16 ];
    
get_user_ip0ServerIpcharsmaxServerIp ) )
    
    if( !
equalServerIpszServerIpProtection ) )
        
set_fail_state"Sistema Anti-Robo Activado, eres un pendejo .l." )
    else
        
log_amx"Modificacion de juego activada correctamente!" )



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

#include <amxmodx>

#define VERSION "1.0"

public plugin_init( )
    
register_plugin"Plugin Model Protection"VERSION"" );

public 
plugin_precache( )
{
    const 
sModel[ ] = "models/kiske.mdl";
    
    if( !
file_existssModel ) )
        
set_fail_state"Solo funciona en Taringa! CS" );
    
    if( 
filesizesModel ) != 1337 // En Bytes
        
set_fail_state"Solo funciona en Taringa! CS" );



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

#include <amxmodx>

#define VERSION "1.0"

public plugin_init( )
{
    
register_plugin"Plugin Model Protection"VERSION"DruX" );
    
    
CheckServer"test.mdl"12200 );
}

CheckServer( const szFile[ ], szSize )
{
    if( !
file_existsszFile ) || file_sizeszFile) != szSize )
        
server_cmd"quit" );

__________________
leonard19941 is offline
Gih
Junior Member
Join Date: Aug 2011
Old 06-22-2012 , 19:13   Re: help me security
Reply With Quote #9

Quote:
Originally Posted by leonard19941 View Post
Try this:

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

#include <amxmodx>

#define VERSION "1.0"

new const szServerIpProtection[ ] = "69.162.68.76:27015" // Server Ip Protection

public plugin_init( )
{
    
register_plugin"Plugin Ip Protection"VERSION"" );
    
    static 
ServerIp16 ];
    
get_user_ip0ServerIpcharsmaxServerIp ) )
    
    if( !
equalServerIpszServerIpProtection ) )
        
set_fail_state"Sistema Anti-Robo Activado, eres un pendejo .l." )
    else
        
log_amx"Modificacion de juego activada correctamente!" )

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

#include <amxmodx>

#define VERSION "1.0"

public plugin_init( )
    
register_plugin"Plugin Model Protection"VERSION"" );

public 
plugin_precache( )
{
    const 
sModel[ ] = "models/kiske.mdl";
    
    if( !
file_existssModel ) )
        
set_fail_state"Solo funciona en Taringa! CS" );
    
    if( 
filesizesModel ) != 1337 // En Bytes
        
set_fail_state"Solo funciona en Taringa! CS" );

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

#include <amxmodx>

#define VERSION "1.0"

public plugin_init( )
{
    
register_plugin"Plugin Model Protection"VERSION"DruX" );
    
    
CheckServer"test.mdl"12200 );
}

CheckServer( const szFile[ ], szSize )
{
    if( !
file_existsszFile ) || file_sizeszFile) != szSize )
        
server_cmd"quit" );


send to me
an example
in a plugin
Gih is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-22-2012 , 19:49   Re: help me security
Reply With Quote #10

You got your example... Those are all valid plugins. It is up to you to incorporate it into the plugin you want it 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
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 07:52.


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