Anti DeAMX - Stop any script from being decompiled - 10 lines!
#1

I've tested this on several scripts (using DeAMX v0.3), including the GodFarther. It took me about an hour of annoying cutting, compiling and decompileing, so be happy.

No more worrying about untrusted hosts being able to steal your source codes :P.

Any script with this protection will decompile as:
Quote:

#include <a_samp>
#include <core>
#include <float>
Nothing else.

To install...
Paste this anywhere in your script, as long as it's not in another callback:
pawn Code:
AntiDeAMX()
{
    new a[][] =
    {
        "Unarmed (Fist)",
        "Brass K"
    };
    #pragma unused a
}
Now, in a default public function (Ex: OnPlayerSpawn) paste this:
pawn Code:
AntiDeAMX();
That's it!

Example: http://pastebin.com/f4cdb7933

_________________________________________________

Want to make your script real safe? Read this:
Quote:
Originally Posted by ssǝן‾ʎ
The question is who has ownership of the script? If you write a script for a community and give them it, do you have any right to take it back? If you gave someone a Christmas present then fell out with them, would you claim the present back? The other question is who owns the server? If it's their server locking the script to an IP will do nothing as they'll still have that IP.

Anyway, I did write a thing for this a while ago by using bind in server.cfg and reading the value in the script using GetServerVarAsString:

pawn Code:
public OnGameModeInit()
{
    new
        ip[16];
    GetServerVarAsString("bind", ip, sizeof (ip));
    if (!ip[0] || strcmp(ip, "192.168.0.127"))
    {
        for (;;)
        {
            printf("Don't steal my script!");
        }
    }
}
If the bind variable is set then the server MUST be running on that server so you can compare it to the required IP. However this was editable before through hacking the amx, and is even easier now with deAMX.
The combination of the two are lethal !

Fell free to modify it in anyway you want. That was the smallest I could cut it down to. Even changing "Brass K" to "Bras K" stops it from working.
Reply


Messages In This Thread
Anti DeAMX - Stop any script from being decompiled - 10 lines! - by Zezombia - 16.01.2009, 01:14
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by Nimphious - 16.01.2009, 02:08
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by Backwardsman97 - 16.01.2009, 02:16
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by LightFight™ - 16.01.2009, 02:19
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by Joe Staff - 16.01.2009, 02:36
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by Nimphious - 16.01.2009, 02:51
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by pen_theGun - 16.01.2009, 09:56
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by Zezombia - 16.01.2009, 18:58
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by Flo_White - 16.01.2009, 19:16
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by yom - 16.01.2009, 19:22
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by ICECOLDKILLAK8 - 16.01.2009, 19:52
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by Kieren - 17.01.2009, 16:42
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by FUNExtreme - 17.01.2009, 21:13
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by Rimeau - 18.01.2009, 00:47
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by Manny165 - 18.01.2009, 01:31
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by Celson - 18.01.2009, 05:17
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by [M]deLux - 18.01.2009, 18:07
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by Zezombia - 19.01.2009, 14:00
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by LibertyWorld - 19.01.2009, 15:36
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by [M]deLux - 19.01.2009, 19:57
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by mave_man - 20.01.2009, 11:19
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by Ghett0 - 27.01.2009, 20:30
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by yom - 27.01.2009, 20:41
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by Danut - 12.02.2009, 20:42
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by Jefff - 12.02.2009, 20:45
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by Lazarus - 12.02.2009, 20:46
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by Danut - 12.02.2009, 20:55
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by Grove - 12.02.2009, 22:24
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by ICECOLDKILLAK8 - 13.02.2009, 01:13
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by SpiderPork - 13.02.2009, 05:58
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by SkizzoTrick - 04.12.2010, 17:29
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by RSX - 04.12.2010, 19:49
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by XePloiT - 05.12.2010, 00:21
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by pojefauzan - 05.12.2010, 01:44
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by Jochemd - 28.12.2010, 19:54
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by IllidanS46 - 03.08.2011, 15:33
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by alpha500delta - 03.08.2011, 17:44
AW: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by Forbidden - 03.08.2011, 17:58
Re: AW: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by iggy1 - 03.08.2011, 18:15
Re: AW: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by alpha500delta - 03.08.2011, 18:16
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by IllidanS46 - 03.08.2011, 18:18
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by DrTeDDyBeAr - 27.01.2012, 02:15
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by iggy1 - 27.01.2012, 05:24
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by Buzzbomb - 27.01.2012, 06:10
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by -CaRRoT - 27.01.2012, 06:34
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by Babul - 27.01.2012, 08:12
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by henry jiggy - 27.01.2012, 09:33
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by AndreiWow - 02.01.2017, 13:56
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by Sew_Sumi - 02.01.2017, 14:58
Re: Anti DeAMX - Stop any script from being decompiled - 10 lines! - by BiosMarcel - 02.01.2017, 15:02

Forum Jump:


Users browsing this thread: 1 Guest(s)