Raised This Month: $ Target: $400
 0% 

How to obfuscate code ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vikvik
Junior Member
Join Date: Apr 2014
Old 07-01-2014 , 09:32   How to obfuscate code ?
Reply With Quote #1

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

Last edited by vikvik; 07-01-2014 at 09:33.
vikvik is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 07-01-2014 , 12:28   Re: How to obfuscate code ?
Reply With Quote #2

Explain more what you want to do. And maybe say it in other words (like 'obfuscated' makes no sense).
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 07-01-2014 , 12:46   Re: How to obfuscate code ?
Reply With Quote #3

I think he wishes to decompile amxx.
.Dare Devil. is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 07-01-2014 , 13:24   Re: How to obfuscate code ?
Reply With Quote #4

Well, this is far impossible for now, right? Because I've searched the same thing some time ago, but couldn't find such information.
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 07-01-2014 , 13:31   Re: How to obfuscate code ?
Reply With Quote #5

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

It was hint where to look for.

Last edited by .Dare Devil.; 07-01-2014 at 13:32.
.Dare Devil. is offline
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 07-01-2014 , 13:41   Re: How to obfuscate code ?
Reply With Quote #6

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.
Backstabnoob is offline
vlad_slick
Member
Join Date: Jul 2009
Old 07-01-2014 , 14:09   Re: How to obfuscate code ?
Reply With Quote #7

Quote:
Originally Posted by vikvik View Post
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.
vlad_slick is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 07-01-2014 , 15:32   Re: How to obfuscate code ?
Reply With Quote #8

You can restore every obfuscated code with enough effort and knowledge.
mottzi is offline
Send a message via MSN to mottzi
vikvik
Junior Member
Join Date: Apr 2014
Old 07-01-2014 , 19:23   Re: How to obfuscate code ?
Reply With Quote #9

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?

Last edited by vikvik; 07-01-2014 at 19:27.
vikvik is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-01-2014 , 19:27   Re: How to obfuscate code ?
Reply With Quote #10

Quote:
Originally Posted by vikvik View Post
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 also asking myself how he obfuscated?
I'd love to see this obfuscated code. I've never heard of the concept (other than really bad coding and the occasionally purposeful misleading in code).
__________________

Last edited by fysiks; 07-01-2014 at 19:28.
fysiks 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 21:05.


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