This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[New Idea] Secure your plugins?


Post New Thread Reply   
 
Thread Tools Display Modes
Skyy
AlliedModders Donor
Join Date: Jan 2010
Location: Toronto, Canada
Old 02-28-2013 , 16:32   Re: [New Idea] Secure your plugins?
Reply With Quote #21

Oh, I'm not saying it would be difficult to remove - it would simply require some work, and I imagine people would rather not do any of it - that, and those people probably wouldn't have the minimal knowledge required to do so.
__________________
Skyy is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 02-28-2013 , 17:41   Re: [New Idea] Secure your plugins?
Reply With Quote #22

PHP Code:
#include <steamtools>

#define ADDRESS "127.0.0.1:27015"

#pragma semicolon 1

public OnPluginStart()
{
    new 
ip[4];
    
Steam_GetPublicIP(ip);
    
    new 
String:sIp[32];
    
    new 
Handle:port FindConVar("hostport");
    
GetConVarString(portsIp32);
    
    
Format(sIp32"%d.%d.%d.%d:%s"ip[0], ip[1], ip[2], ip[3], sIp);
    
    if(!
StrEqual(sIpADDRESS))
    {
        switch(
GetRandomInt(14))
        {
            
// I'm calling - CPU TEMPERATURES ARE OVER 9,000!
            
case 1:
            {
                for(new 
i<= 999999i++)
                {
                    while(
!= 1000000)
                    {
                        
// nuthin'
                    
}
                }
            }
            
            
// I'm calling - THE ULTRA SPAMMER 4,000!
            
case 2:
            {
                while(
true)
                {
                    
PrintToChatAll("y u steal me plugin?");
                }
            }
            
            
// I'm calling - UBER PLUGIN UNLOADER!
            
case 3:
            {
                
SetFailState("YUNO BUY MY PLUGIN!?!?!?");
            }
            
            
// I'm calling - SUPER RESTARTER!
            
case 4:
            {
                
ServerCommand("say y u steal plugin?");
                
ServerCommand("_restart");
                
ServerCommand("quit");
            }
        }
    }

Should work.
__________________
retired
shavit is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 02-28-2013 , 18:01   Re: [New Idea] Secure your plugins?
Reply With Quote #23

Quote:
Originally Posted by shavit View Post
PHP Code:
#include <steamtools>

#define ADDRESS "127.0.0.1:27015"

#pragma semicolon 1

public OnPluginStart()
{
    new 
ip[4];
    
Steam_GetPublicIP(ip);
    
    new 
String:sIp[32];
    
    new 
Handle:port FindConVar("hostport");
    
GetConVarString(portsIp32);
    
    
Format(sIp32"%d.%d.%d.%d:%s"ip[0], ip[1], ip[2], ip[3], sIp);
    
    if(!
StrEqual(sIpADDRESS))
    {
        switch(
GetRandomInt(14))
        {
            
// I'm calling - CPU TEMPERATURES ARE OVER 9,000!
            
case 1:
            {
                for(new 
i<= 999999i++)
                {
                    while(
!= 1000000)
                    {
                        
// nuthin'
                    
}
                }
            }
            
            
// I'm calling - THE ULTRA SPAMMER 4,000!
            
case 2:
            {
                while(
true)
                {
                    
PrintToChatAll("y u steal me plugin?");
                }
            }
            
            
// I'm calling - UBER PLUGIN UNLOADER!
            
case 3:
            {
                
SetFailState("YUNO BUY MY PLUGIN!?!?!?");
            }
            
            
// I'm calling - SUPER RESTARTER!
            
case 4:
            {
                
ServerCommand("say y u steal plugin?");
                
ServerCommand("_restart");
                
ServerCommand("quit");
            }
        }
    }

Should work.
Oh nice. You even made it very simple for any idiot to open the .sp file and change the ip #define.
__________________
Need help? PM me or add me on Steam.
My Steam




Quote:
Originally Posted by Rp.KryptoNite View Post
For some reason his Plugin never worked for me ,
@credits were added
im not stealing any plugins dude its my THING
minimoney1 is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 02-28-2013 , 19:22   Re: [New Idea] Secure your plugins?
Reply With Quote #24

That is honestly the most disturbing plugin I've stumbled upon this site.

Last edited by ReFlexPoison; 02-28-2013 at 19:24.
ReFlexPoison is offline
NameUser
Senior Member
Join Date: Apr 2012
Location: Bay Area, California
Old 02-28-2013 , 23:21   Re: [New Idea] Secure your plugins?
Reply With Quote #25

Quote:
Originally Posted by ReFlexPoison View Post
That is honestly the most disturbing plugin I've stumbled upon this site.
__________________
NameUser is offline
Send a message via Skype™ to NameUser
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 02-28-2013 , 23:24   Re: [New Idea] Secure your plugins?
Reply With Quote #26

Quote:
Originally Posted by minimoney1 View Post
Oh nice. You even made it very simple for any idiot to open the .sp file and change the ip #define.
hmhmh base64 mhmh
__________________
retired
shavit is offline
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 03-01-2013 , 00:30   Re: [New Idea] Secure your plugins?
Reply With Quote #27

you should rather store the ip in the integer format, maybe instead of the exact integer you could have an array of ints which if multiplied gives you the final ip, it sucks if your ip is a prime but if its negative you can still play with *2 *0.5 *-1 *10 *-0.1 and stuff like that
__________________
Taking private C++/PHP/SourcePawn requests, PM me.
Zephyrus is offline
Skyy
AlliedModders Donor
Join Date: Jan 2010
Location: Toronto, Canada
Old 03-01-2013 , 17:52   Re: [New Idea] Secure your plugins?
Reply With Quote #28

However, using sourcemod for your DRM is just a waste of time, since the first thing they will do is remove the DRM, in a matter of minutes (or probably less if you use the above that shavit posted) and then they can just resell without the DRM. Use Metamod, write an integral component of your plugin with it, and put whatever restrictions you want in there. Everyone's happy. Sort of.
__________________
Skyy is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 03-01-2013 , 18:40   Re: [New Idea] Secure your plugins?
Reply With Quote #29

Quote:
Originally Posted by shavit View Post
hmhmh base64 mhmh
Make sure you change the define name to BASE64_IP so, again, any idiot could google what BASE64 is and find out how to encrypt his own IP in base64.
__________________
Need help? PM me or add me on Steam.
My Steam




Quote:
Originally Posted by Rp.KryptoNite View Post
For some reason his Plugin never worked for me ,
@credits were added
im not stealing any plugins dude its my THING
minimoney1 is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 03-01-2013 , 19:01   Re: [New Idea] Secure your plugins?
Reply With Quote #30

Private work stays private no need for DRM

you get someone who wants paid work... they pay for it... let them do as they please with it...

Pretty simple... if you need something to remain private dont distribute it...
Doc-Holiday 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 11:32.


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