AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to obfuscate code ? (https://forums.alliedmods.net/showthread.php?t=243215)

vikvik 07-01-2014 09:32

How to obfuscate code ?
 
How to obfuscate the code of a plugin ? if I have the sma with obfuscated code can I de-obfuscate it ? if yes how ?
talking about amxx coding

Flick3rR 07-01-2014 12:28

Re: How to obfuscate code ?
 
Explain more what you want to do. And maybe say it in other words (like 'obfuscated' makes no sense).

.Dare Devil. 07-01-2014 12:46

Re: How to obfuscate code ?
 
I think he wishes to decompile amxx.

Flick3rR 07-01-2014 13:24

Re: How to obfuscate code ?
 
Well, this is far impossible for now, right? Because I've searched the same thing some time ago, but couldn't find such information.

.Dare Devil. 07-01-2014 13:31

Re: How to obfuscate code ?
 
Hmm, the compile seems to do it to .amxx and amxmodx is open source right? : )

It was hint where to look for.

Backstabnoob 07-01-2014 13:41

Re: How to obfuscate code ?
 
Compiled file is not obfuscated file, although I doubt the amxx compiler supports anything like this. Maybe through macros but that'd be incredibly easy to turn back into readable code.

Well, naming variables and functions with "a" or "b" would suck too.

vlad_slick 07-01-2014 14:09

Re: How to obfuscate code ?
 
Quote:

Originally Posted by vikvik (Post 2160241)
How to obfuscate the code of a plugin ? if I have the sma with obfuscated code can I de-obfuscate it ? if yes how ?
talking about amxx coding

I doubt there is anything that could deobfuscate obfuscated pawn code, but it depends on the obfuscation method, maybe you could use a deobfuscation tool designed for C-like languages IF you have the SMA file.

If you want an example how to obfuscate code in pawn you could have a look at this plugin:
Check Files by OSTR0G

BTW, obfuscated pawn plugins break GPL. So you shouldn't do it.

mottzi 07-01-2014 15:32

Re: How to obfuscate code ?
 
You can restore every obfuscated code with enough effort and knowledge.

vikvik 07-01-2014 19:23

Re: How to obfuscate code ?
 
Ok some guy made a plugin that does something every N rounds and I want to know the method he used to do this. He gave me the source code but it's obfuscated and I'm asking how he obfuscated?

Backstabnoob 07-01-2014 19:26

Re: How to obfuscate code ?
 
Then attach the code here.


All times are GMT -4. The time now is 21:05.

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