exe2ahk since 1.1.15.00

Discuss other useful utilities, general computing tips & tricks, Internet resources, etc.
User avatar
IRBaboon
Posts: 27
Joined: 11 Aug 2014, 07:48

exe2ahk since 1.1.15.00

11 Aug 2014, 08:12

hey there,

the same question as every year. is there existing an automatic way to decompress and decompile mpress'ed ahk Unicode32 PE files since version 1.1.15.00? Or do I have to disassemble it by hand? And no, I don't have the uncompiled script file that I could easy compile again, cause I made changes to it and don't have a backup but I want to compare my code to find the problem. And yes, you could PM me a link to decompiler since there may be people who think their code is protected by compressing it. :roll:

thank you!
User avatar
joedf
Posts: 5825
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
Contact:

Re: exe2ahk since 1.1.15.00

12 Aug 2014, 00:06

AHK Decompiler by IsNull using the "payload" method. I modified it a little bit since the GUI was broken.
It works perfectly. Here you go! :thumbup:
AHK_decompiler.zip
(14.47 KiB) Downloaded 3412 times

or http://ge.tt/8zMaRUW1/v/6
User avatar
empardopo
Posts: 335
Joined: 06 Oct 2013, 12:50
Location: Spain
Contact:

Re: exe2ahk since 1.1.15.00

12 Aug 2014, 00:37

Any file is possible to decompile? Is it possible to compile a protected exe?
I think in older versions of ahk2exe was an option to add a password to compile.
Thanks!
Everything is possible!
User avatar
joedf
Posts: 5825
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
Contact:

Re: exe2ahk since 1.1.15.00

12 Aug 2014, 00:43

Well "basically" the /nodecompile and /password options were "placebos".
AutoHotkey isn't technically "compiled" since it is an interpreted language. Scripts are essentially packed with AutoHotkey, and that's it.
The only "real" form of protection is code obfuscation. The simple answer is yes, all AutoHotkey executables can be decompiled.
User avatar
empardopo
Posts: 335
Joined: 06 Oct 2013, 12:50
Location: Spain
Contact:

Re: exe2ahk since 1.1.15.00

12 Aug 2014, 06:51

:D
But those options are active, at this moment?
Everything is possible!
User avatar
fincs
Posts: 500
Joined: 30 Sep 2013, 14:17
GitHub: fincs
Location: Seville, Spain
Contact:

Re: exe2ahk since 1.1.15.00

12 Aug 2014, 07:25

For reference: myAutToExe - decompiler for old AHK 1.0 scripts (just drop the executable to the program window). Bypasses passwords and /NoDecompile (and even HotkeyCamo IIRC). Those options have always been useless.
fincs
Windows 10 x64 Build 14393 / AutoHotkey v1.1.24.04
Get SciTE4AutoHotkey v3.0.06.01 - [My project list]
guest3456
Posts: 2024
Joined: 09 Oct 2013, 10:31

Re: exe2ahk since 1.1.15.00

12 Aug 2014, 07:29

i don't think its good practice to openly reference or link to that

User avatar
nnnik
Posts: 2194
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: exe2ahk since 1.1.15.00

12 Aug 2014, 08:15

I tend to disagree.
Recommends AHK Studio
User avatar
fincs
Posts: 500
Joined: 30 Sep 2013, 14:17
GitHub: fincs
Location: Seville, Spain
Contact:

Re: exe2ahk since 1.1.15.00

12 Aug 2014, 08:55

I also disagree (and replied to your PM).
fincs
Windows 10 x64 Build 14393 / AutoHotkey v1.1.24.04
Get SciTE4AutoHotkey v3.0.06.01 - [My project list]
User avatar
Blackholyman
Posts: 1222
Joined: 29 Sep 2013, 22:57
Facebook: socialjsz
Google: +Jszapp
Location: Denmark
Contact:

Re: exe2ahk since 1.1.15.00

12 Aug 2014, 09:14

I have known and used the payload method more then ones and I think that everyone needs to know with as little searching as possible becouse it needs to be known so peeple don't belive something thats just not true... Thats the only way peeple will know not to store/share compiled scripts with privat Info in them.
User avatar
joedf
Posts: 5825
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
Contact:

Re: exe2ahk since 1.1.15.00

12 Aug 2014, 12:26

How i see it. If you choose AutoHotkey, you're basically choosing open source. ;)
User avatar
IRBaboon
Posts: 27
Joined: 11 Aug 2014, 07:48

Re: exe2ahk since 1.1.15.00

16 Aug 2014, 10:33

Thank you very much joedf!
Meanwhile I disassambled it by hand since it is no big deal, but it is still good to have an actual unpacker.
As I said "And yes, you could PM me a link to decompiler since there may be people who think their code is protected by compressing it.",
I tried to prevent this security discussion.. ;) However, thanks for the file and fincs for the reference!

Greetings
User avatar
joedf
Posts: 5825
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
Contact:

Re: exe2ahk since 1.1.15.00

16 Aug 2014, 10:43

No problem.
Cheers!

PS: I respect people's opinion's about FOSS/Closed Source, but I am not going to censor information that has already been said. Again, If you want to protect your code, obfuscation is your best bet... for now.. i think... :P
MyDream
Posts: 3
Joined: 04 Sep 2014, 02:56

Re: exe2ahk since 1.1.15.00

04 Sep 2014, 03:11

joedf wrote:No problem.
Cheers!

PS: I respect people's opinion's about FOSS/Closed Source, but I am not going to censor information that has already been said. Again, If you want to protect your code, obfuscation is your best bet... for now.. i think... :P


To me, I only wanted a little protection over the script, so I take/find whatever available and addded some extra ingredient into it too. ;)
guest3456
Posts: 2024
Joined: 09 Oct 2013, 10:31

Re: exe2ahk since 1.1.15.00

10 Sep 2014, 11:50

empardopo wrote:I thought it was mandatory to provide the source code ...


You are misunderstanding

AHK itself is licensed under the GPL, so if you sell AHK, then you would need to provide the source code to your new version.
https://github.com/Lexikos/AutoHotkey_L

Your own source code that you write (whatever the language) can be licensed however you see fit

http://www.gnu.org/licenses/gpl-faq.html#IfInterpreterIsGPL wrote:If a programming language interpreter is released under the GPL, does that mean programs written to be interpreted by it must be under GPL-compatible licenses? (#IfInterpreterIsGPL)

When the interpreter just interprets a language, the answer is no. The interpreted program, to the interpreter, is just data; a free software license like the GPL, based on copyright law, cannot limit what data you use the interpreter on. You can run it on any data (interpreted program), any way you like, and there are no requirements about licensing that data to anyone.

User avatar
empardopo
Posts: 335
Joined: 06 Oct 2013, 12:50
Location: Spain
Contact:

Re: exe2ahk since 1.1.15.00

11 Sep 2014, 06:23

I'm sorry I was wrong.
Thanks!
Everything is possible!
dcruisu

Re: exe2ahk since 1.1.15.00

30 Aug 2017, 09:36

joedf wrote:AHK Decompiler by IsNull using the "payload" method. I modified it a little bit since the GUI was broken.
It works perfectly. Here you go! :thumbup:
AHK_decompiler.zip
or http://ge.tt/8zMaRUW1/v/6


Hi, I got an error at line 4, global debug:=false, there are some fix for that?
User avatar
joedf
Posts: 5825
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
Contact:

Re: exe2ahk since 1.1.15.00

09 Sep 2017, 14:06

What is the executable?

Return to “Other Utilities & Resources”

Who is online

Users browsing this forum: No registered users and 2 guests