AHK源代码加密器 v2.6

许多实用脚本和封装函数, 可以让您编写脚本更加便捷高效
feiyue
Posts: 109
Joined: 08 Aug 2014, 04:08

AHK源代码加密器 v2.6

06 Jan 2018, 17:33

在利用AHK解决实际问题时,有时想保护自己的劳动成果,不想直接给其他人看到。
但是当前的Ahk2Exe不能加密,源代码是明文附加在程序末尾的,起不到保护源代码的作用,
所以我制作了一个简单的AHK源代码加密器,可以防止小白,对高手没有什么作用。


Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

Last edited by feiyue on 14 Sep 2018, 04:36, edited 39 times in total.
User avatar
oldbrother
Posts: 149
Joined: 23 Oct 2013, 05:08

Re: AHK源代码加密器 v1.5

20 Jan 2018, 06:50

xiexie!!!!
guest3456
Posts: 2392
Joined: 09 Oct 2013, 10:31

Re: AHK源代码加密器 v1.5

06 Mar 2018, 12:38

nice

can you give an explanation in english? maybe you could post this in the "Scripts And Functions" forum

and can you provide the c++ source code for the machine codes?

garry
Posts: 1415
Joined: 22 Dec 2013, 12:50

Re: AHK源代码加密器 v1.5

06 Mar 2018, 17:37

謝謝
Last edited by garry on 07 Mar 2018, 17:07, edited 1 time in total.
feiyue
Posts: 109
Joined: 08 Aug 2014, 04:08

Re: AHK源代码加密器 v1.5

07 Mar 2018, 11:18

@guest3456, I've changed the script to English, but I don't want to repeat it to the "Scripts And Functions" forum.
If I provide the C source code for the machine code, the Encryptor is cracked. :beer:
User avatar
SpeedMaster
Posts: 211
Joined: 12 Nov 2016, 16:09

Re: AHK源代码加密器 v1.5

07 Mar 2018, 12:17

Hello,

I tried the compiled exe script but a get this error. :cry:

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

feiyue
Posts: 109
Joined: 08 Aug 2014, 04:08

Re: AHK源代码加密器 v1.5

07 Mar 2018, 12:33

@SpeedMaster,
Because it is calling the AHK master program to run dynamically,
There must be a AHK master program in the same directory.
User avatar
SpeedMaster
Posts: 211
Joined: 12 Nov 2016, 16:09

Re: AHK源代码加密器 v1.5

07 Mar 2018, 13:00

feiyue wrote:@SpeedMaster,
There must be a AHK master program in the same directory.


I do not see any AHK master program in the folder :?

03_07_18 @6_54_57.PNG
03_07_18 @6_54_57.PNG (9.91 KiB) Viewed 2893 times
feiyue
Posts: 109
Joined: 08 Aug 2014, 04:08

Re: AHK源代码加密器 v1.5

07 Mar 2018, 13:27

AHK master program is AutoHotkey.exe.
If AutoHotkey.exe is renamed abc.exe, Please modify Ahk=%A_ScriptDir%\abc.exe
User avatar
SpeedMaster
Posts: 211
Joined: 12 Nov 2016, 16:09

Re: AHK源代码加密器 v1.5

07 Mar 2018, 14:03

I got it now :idea: :lolno:
Thanks :thumbup:

ahk.png
ahk.png (7.06 KiB) Viewed 2873 times
guest3456
Posts: 2392
Joined: 09 Oct 2013, 10:31

Re: AHK源代码加密器 v1.6

08 Mar 2018, 21:08

can you explain what the new 'add' code does, with the Gui and getting the process Pid, and the Reload() func that is never called?

feiyue
Posts: 109
Joined: 08 Aug 2014, 04:08

Re: AHK源代码加密器 v1.6

08 Mar 2018, 22:40

Because the decoded code is not saved to the disk, it is sent directly to the AutoHotkey.exe to execute.
No source files lead to:
1. Only one is allowed to run at the same time (#SingleInstance force), is invalid.
Solution: Use a hidden GUI as the unique tag to prevent conflicts.
2, Reload is invalid. Solution: use the Reload() function instead. :beer:
User avatar
Cuadrix
Posts: 145
Joined: 07 May 2017, 08:26

Re: AHK源代码加密器 v1.6

08 Apr 2018, 07:24

Very nice!
Aɴᴅ ᴛᴏᴅᴀʏs ᴡɪɴɴᴇʀ ᴏꜰ ᴛʜᴇ ᴛɪᴛʟᴇ "Mᴀsᴛᴇʀ" ɪs...
feiyue
Posts: 109
Joined: 08 Aug 2014, 04:08

Re: AHK源代码加密器 v1.7

21 Apr 2018, 15:51

Updated to the V1.7 version, made some improvements to avoid being easily cracked.
Thank you very much for Helgef ! :bravo:
brutus_skywalker
Posts: 179
Joined: 24 Dec 2016, 13:16
Location: Antarctica

Re: AHK源代码加密器 v1.7

24 Apr 2018, 23:41

ROCKS!

Still Rocks, but script can be recovered by doing a memory dump of autohotkey.exe and using sysinternals 'strings' utility, to extract the code.

Simpler still uses processhacker to view the properties of the process running encoded script and just view strings in the memory tab of the properties.
Outsourcing Clicks & Presses Since 2004.
feiyue
Posts: 109
Joined: 08 Aug 2014, 04:08

Re: AHK源代码加密器 v1.7

25 Apr 2018, 12:39

@brutus_skywalker, Thank you very much for the two ways to view memory text, and I learned new knowledge. :thumbup:

This method can extract fragmented source code text, but can not extract complete code.

It's really lucky. :D
feiyue
Posts: 109
Joined: 08 Aug 2014, 04:08

Re: AHK源代码加密器 v2.0

29 Apr 2018, 02:53

Updated to the V2.0 version, Enhance the difficulty of cracking. :superhappy:
AHKStudent
Posts: 301
Joined: 05 May 2018, 12:23

Re: AHK源代码加密器 v2.0

05 Jun 2018, 12:57

Hi

To share my app users need to download both files? Or can I just compile my main exe and have the autohotkey.exe within it (like through file install?)

What is the right way to do this?
alware
Posts: 8
Joined: 01 Jun 2018, 02:25

Re: AHK源代码加密器 v2.0

06 Jun 2018, 04:36

i am using gdi+ and gdip imagesearch but it seems encoded script won't recognize the image files that are in the same folder..
any help??
feiyue
Posts: 109
Joined: 08 Aug 2014, 04:08

Re: AHK源代码加密器 v2.0

07 Jun 2018, 01:25

@AHKStudent, I fixed this problem, and now it can package the AHK main program into a separate program.

@alware, Because script runs through named pipes, A_ScriptDir is useless.
You should use dir:=A_WorkingDir to get the used directory of the compiled program.
Last edited by feiyue on 07 Jun 2018, 18:35, edited 1 time in total.

Return to “脚本函数”

Who is online

Users browsing this forum: No registered users and 1 guest