Raised This Month: $ Target: $400
 0% 

[Help] IP-s


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 07-22-2014 , 10:15   Re: [Help] IP-s
Reply With Quote #1

What's the point to protect some plugins?
If you run a server hosted at a company just upload AMXX files to /addons/amxmodx/plugins/ and the hosting company won't be able to take anything.

If you are about to sell them, you have to provide their sources.
Since you get your payment, spreading the source code it's alright. It doesn't matter if the buyer is going to sell more. That's only custom server content and shouldn't be that important as you think.

PHP Code:
#define IpRootToMatch "89.22.22"

static svIp[32], itVar;
get_cvar_string("net_address"svIpcharsmax(svIp)); // now, svIp = "89.22.22.22"

for (itVar strlen(svIp) - 1itVar >= 0itVar--)
{
  if (
svIp[itVar] == '.')
  {
    
svIp[itVar] = '^0';

    break; 
// now, svIp = "89.22.22"
  
}
}

if (
equal(IpRootToMatchsvIp)) { /* OK */ }
else { 
/* not OK */ 
__________________

Last edited by claudiuhks; 07-22-2014 at 10:21.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
wickedd
Veteran Member
Join Date: Nov 2009
Old 07-22-2014 , 19:34   Re: [Help] IP-s
Reply With Quote #2

Quote:
Originally Posted by claudiuhks View Post
What's the point to protect some plugins?
If you run a server hosted at a company just upload AMXX files to /addons/amxmodx/plugins/ and the hosting company won't be able to take anything.
I would get another GSP.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 07-22-2014 , 20:01   Re: [Help] IP-s
Reply With Quote #3

Quote:
Originally Posted by claudiuhks View Post
What's the point to protect some plugins?
If you run a server hosted at a company just upload AMXX files to /addons/amxmodx/plugins/ and the hosting company won't be able to take anything.
How can you be sure they did not take a plugin?
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 07-24-2014 , 03:54   Re: [Help] IP-s
Reply With Quote #4

Quote:
Originally Posted by Neeeeeeeeeel.- View Post
How can you be sure they did not take a plugin?
How can the host company take AMX Mod X scripts from the server while only AMXX files are uploaded?
Have you really read what I said?
I didn't explain a method that can't be skipped, I've just explained how to secure a script for more IP addresses simultaneously.

Quote:
Originally Posted by Mario AR. View Post
With your method, simply changing the net_address cvar will break that 'protection'. As I said before, IP 'protection' will not protect anything.
Read above.
__________________

Last edited by claudiuhks; 07-24-2014 at 03:57.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Mario AR.
Senior Member
Join Date: May 2011
Location: Lima, Perú
Old 07-23-2014 , 03:15   Re: [Help] IP-s
Reply With Quote #5

Quote:
Originally Posted by claudiuhks View Post
What's the point to protect some plugins?
If you run a server hosted at a company just upload AMXX files to /addons/amxmodx/plugins/ and the hosting company won't be able to take anything.

If you are about to sell them, you have to provide their sources.
Since you get your payment, spreading the source code it's alright. It doesn't matter if the buyer is going to sell more. That's only custom server content and shouldn't be that important as you think.

PHP Code:
#define IpRootToMatch "89.22.22"

static svIp[32], itVar;
get_cvar_string("net_address"svIpcharsmax(svIp)); // now, svIp = "89.22.22.22"

for (itVar strlen(svIp) - 1itVar >= 0itVar--)
{
  if (
svIp[itVar] == '.')
  {
    
svIp[itVar] = '^0';

    break; 
// now, svIp = "89.22.22"
  
}
}

if (
equal(IpRootToMatchsvIp)) { /* OK */ }
else { 
/* not OK */ 
With your method, simply changing the net_address cvar will break that 'protection'. As I said before, IP 'protection' will not protect anything.
A nice method is to send a socket to a http server or a mysql host, to check 'on time' if the plugin should be loade or not. Another method could be to check if an specific file exists in an FTP server. But, those methods do checkings outside the server where the plugin is running, where the host does not take the control over all. Another idea, check the current timestamp and disable if 1 month has passed since the plugin was compiled; but this method would require to be updated every month. At least, if the host throws you and sell your server with your files, then you must wait only a short period of time to get your plugin disabled.
Mario AR. is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 07-23-2014 , 12:05   Re: [Help] IP-s
Reply With Quote #6

Quote:
Originally Posted by Mario AR. View Post
With your method, simply changing the net_address cvar will break that 'protection'. As I said before, IP 'protection' will not protect anything.
A nice method is to send a socket to a http server or a mysql host, to check 'on time' if the plugin should be loade or not. Another method could be to check if an specific file exists in an FTP server. But, those methods do checkings outside the server where the plugin is running, where the host does not take the control over all. Another idea, check the current timestamp and disable if 1 month has passed since the plugin was compiled; but this method would require to be updated every month. At least, if the host throws you and sell your server with your files, then you must wait only a short period of time to get your plugin disabled.
Your method can be easily bypassed by spoofing the DNS where you are sending the packets. Btw, it's harder to bypass than claudiuhks method.
__________________

Last edited by Neeeeeeeeeel.-; 07-23-2014 at 12:05.
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
plazma
Senior Member
Join Date: Oct 2013
Old 07-23-2014 , 18:42   Re: [Help] IP-s
Reply With Quote #7

Quote:
Originally Posted by Neeeeeeeeeel.- View Post
Your method can be easily bypassed by spoofing the DNS where you are sending the packets. Btw, it's harder to bypass than claudiuhks method.
What is you method ?
__________________
Free Palestine ♥
plazma is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-23-2014 , 19:25   Re: [Help] IP-s
Reply With Quote #8

Quote:
Originally Posted by plazma View Post
What is you method ?
All methods can be bypassed, some are harder than others though.
__________________
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
Mario AR.
Senior Member
Join Date: May 2011
Location: Lima, Perú
Old 07-23-2014 , 22:53   Re: [Help] IP-s
Reply With Quote #9

Quote:
Originally Posted by Neeeeeeeeeel.- View Post
Your method can be easily bypassed by spoofing the DNS where you are sending the packets. Btw, it's harder to bypass than claudiuhks method.
DNS? IP rules!
Mario AR. 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 13:11.


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