Decompiling

Ask for help, how to use AHK_H, etc.
samardac
Posts: 212
Joined: 30 Nov 2014, 13:36

Decompiling

19 Jan 2015, 09:50

How to prevent compiled AHK .exe from decompiling?
User avatar
Blackholyman
Posts: 1293
Joined: 29 Sep 2013, 22:57
Location: Denmark
Contact:

Re: Decompiling

19 Jan 2015, 10:40

Can't really be done easily and only to some degre as autohotkey is open source, there are som ways to make it header but no way to stop someone who know's what they are doing...
Also check out:
Courses on AutoHotkey

My Autohotkey Blog
:dance:
samardac
Posts: 212
Joined: 30 Nov 2014, 13:36

Re: Decompiling

19 Jan 2015, 10:52

Is it worth to try?
User avatar
Blackholyman
Posts: 1293
Joined: 29 Sep 2013, 22:57
Location: Denmark
Contact:

Re: Decompiling

19 Jan 2015, 10:57

Depends on who you are trying to keep from reading your source :)

Maybe using Reshacker to remove the plain text from the exe and some packing software may also make it less easy
Also check out:
Courses on AutoHotkey

My Autohotkey Blog
:dance:
samardac
Posts: 212
Joined: 30 Nov 2014, 13:36

Re: Decompiling

19 Jan 2015, 11:04

I think just general precaution.
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: Decompiling

19 Jan 2015, 11:54

Recently I have implemented compression and encryption for resources in AHK_H compiler, included in download :)
Default password is 'AutoHotkey' and you would need to recompile AutoHotkey_H to change that, you can also compile with compression but without encryption/password.
samardac
Posts: 212
Joined: 30 Nov 2014, 13:36

Re: Decompiling

19 Jan 2015, 11:57

I just working on some plugin for 3D Apps and want to release it but do not want somebody to decompile it.
What to do?
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: Decompiling

19 Jan 2015, 12:19

If you want to encrypt you need to recompile AutoHotkey.exe from source and change the password, search for g_default_pwd.
If you want to compress only, download and compile using included compiler.
kapastratos
Posts: 3
Joined: 08 Jan 2015, 19:17

Re: Decompiling

28 Jan 2015, 19:31

HotKeyIt wrote:Recently I have implemented compression and encryption for resources in AHK_H compiler, included in download :)
Default password is 'AutoHotkey' and you would need to recompile AutoHotkey_H to change that, you can also compile with compression but without encryption/password.
Hello,

I did it but I got an error (see picture).

Any help on that please?
Attachments
Untitled.png
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: Decompiling

29 Jan 2015, 01:41

@samardac
Why not OpenSource on GitHub (with or w/o License)?
So everyone can see your code and change/edit things or do some bugfixes or can help to grow?!
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
samardac
Posts: 212
Joined: 30 Nov 2014, 13:36

Re: Decompiling

13 Feb 2015, 03:44

HotKeyIt, how to run it? I also have the same error.
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: Decompiling

13 Feb 2015, 05:20

You need to download and use AutoHotkey.exe from AutoHotkey_H pack.
Simply extract zip and copy AutoHotkey.exe to Compiler, than rename it to Ahk2Exe.exe and run it.
User avatar
Soft
Posts: 174
Joined: 07 Jan 2015, 13:18
Location: Seoul
Contact:

Re: Decompiling

13 Feb 2015, 10:59

@HotKeyIt / how can I compile Ahk2Exe itself? it throws an error

"invalid directive; IgnoreBegin"

btw AHK_H has so much potentials!! thank you for making this version :D
AutoHotkey & AutoHotkey_H v1.1.22.07
samardac
Posts: 212
Joined: 30 Nov 2014, 13:36

Re: Decompiling

14 Feb 2015, 03:34

HotKeyIt,
I made as you write but nothing works, can you pleas make detail instruction by steps pleas.
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: Decompiling

14 Feb 2015, 08:42

Sorry, I should have mentioned that you need to use compiler included in download pack.
1. Download
2. Extract ahkdll-v1-release-master.zip
3. Copy ahkdll-v1-release-master\Win32w\AutoHotkey.exe to ahkdll-v1-release-master\Compiler\Ahk2Exe.exe
4. Double click Ahk2Exe.exe
5. Select correct Base File (.bin)
6. Use compression or/and encryption checkboxes.
7. Press > Compile Executable <
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: Decompiling

14 Feb 2015, 11:00

Soft wrote:@HotKeyIt / how can I compile Ahk2Exe itself? it throws an error
Fixed now, thanks for reporting ;)
guest3456
Posts: 3453
Joined: 09 Oct 2013, 10:31

Re: Decompiling

14 Feb 2015, 11:05

HotKeyIt wrote:Sorry, I should have mentioned that you need to use compiler included in download pack.
1. Download
2. Extract ahkdll-v1-release-master.zip
3. Copy ahkdll-v1-release-master\Win32w\AutoHotkey.exe to ahkdll-v1-release-master\Compiler\Ahk2Exe.exe
4. Double click Ahk2Exe.exe and use compression or/and encryption checkboxes.
HotKeyIt, a couple of questions

1. i dont fully understand your previous posts. there is a password box in the compiler script. earlier you said that we need to re-compile AHK_H from c++ source to change the password. can you clarify?

2. have you implemented the same protection for your v2 build of AHK_H?

3. also, small bug i think:

in the master.zip, there is \Compiler\Lib\ folder, but there is also a \Compiler\lib\ shortcut folder, which is trying to point to "C:\Scratch\Program Files\AutoHotkey\AutoHotkey 1\lib" but obviously fails. i'm guessing that shortcut shouldn't be included

HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: Decompiling

14 Feb 2015, 11:20

1. Correct, currently the password AutoHotkey is hardcoded in source.
2. yes
3. thanks, corrected.
guest3456
Posts: 3453
Joined: 09 Oct 2013, 10:31

Re: Decompiling

14 Feb 2015, 11:23

HotKeyIt wrote:1. Correct, currently the password AutoHotkey is hardcoded in source.
so then, the password box in the compiler script is non-functional?


Return to “Ask for Help”

Who is online

Users browsing this forum: No registered users and 24 guests