AHK源代码加密器 v3.3

许多实用脚本和封装函数, 可以让您编写脚本更加便捷高效

Moderators: tmplinshi, arcticir

R0nya
Posts: 6
Joined: 05 Aug 2016, 09:30

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

28 Apr 2020, 17:53

pjZCgyP[1].png
pjZCgyP[1].png (4.38 KiB) Viewed 19338 times
Any script I've encrypted shows that error. What i do wrong? Help plz
feiyue
Posts: 349
Joined: 08 Aug 2014, 04:08

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

12 Jun 2020, 23:15

Updated to 2.8 version - 2020/06/13 :dance: :beer:
1. Command line arguments are now supported.
2. The hash value of the released AHK main program is calculated,
... so that only the released main program can be run.
3. The encryption algorithm is modified to make it more difficult to crack.
feiyue
Posts: 349
Joined: 08 Aug 2014, 04:08

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

12 Jun 2020, 23:25

@R0nya
Don't use A_ScriptDir variable. Or use A_ScriptDir2 variable:

Code: Select all

Global A_ScriptDir2 := A_WorkingDir
@norths1
You are a master. Please test the new version.
If it's still easy to crack, can you send me a private message
to give me some suggestions for improvement ?
jasonlcy3
Posts: 3
Joined: 28 May 2020, 14:01

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

13 Jun 2020, 07:28

怎样防止单独打开AutoHotKey.exe时 弹出视窗? :)
R0nya
Posts: 6
Joined: 05 Aug 2016, 09:30

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

13 Jun 2020, 08:05

feiyue wrote:
12 Jun 2020, 23:25
@R0nya
Don't use A_ScriptDir variable. Or use A_ScriptDir2 variable:

Code: Select all

Global A_ScriptDir2 := A_WorkingDir
Thx but it's something happened with my system any encoded script even simpliest have the same error, but it's work on other comuters... :crazy:
User avatar
SirSocks
Posts: 360
Joined: 26 Oct 2018, 08:14

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

13 Jun 2020, 09:09

@feiyue If I change the name and Icon of the main program, will that cause your script to not run? I find it benificial to change the name and icon.

"2. The hash value of the released AHK main program is calculated,
... so that only the released main program can be run."
feiyue
Posts: 349
Joined: 08 Aug 2014, 04:08

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

13 Jun 2020, 11:02

@SirSocks
Changing the name does not change the contents of the file.
It doesn't matter if you encrypt the script after you change the icon
of the main program (Main program means Autohotkey.exe).

If you are using Ahk2Exe to add a program icon when packaging,
This does not change the content of the released main program,
So you can modify the icon resources of the compiled program.
User avatar
SirSocks
Posts: 360
Joined: 26 Oct 2018, 08:14

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

13 Jun 2020, 12:50

@feiyue :bravo: thank you for sharing and updating your script :thumbup:
jasonlcy3
Posts: 3
Joined: 28 May 2020, 14:01

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

15 Jun 2020, 15:15

When I compile my script with AutoHotKey.exe on base 32 bit, the Windows Defender detects it as a virus. How to fix it? :roll: :roll:

当我使用基于32位的AutoHotKey.exe编译脚本时,Windows Defender会将其检测为病毒。 如何解决? :roll: :roll:
jasonlcy3
Posts: 3
Joined: 28 May 2020, 14:01

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

16 Jun 2020, 09:30

我发现如果改了AutoHotKey的图标就会不能运行
feiyue
Posts: 349
Joined: 08 Aug 2014, 04:08

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

16 Jun 2020, 19:07

加密前可以改动主程序,加密时计算了主程序的哈希值,所以打包前不要再改动主程序。之后编译得到的程序可以改图标,不会影响释放出来的主程序。
feiyue
Posts: 349
Joined: 08 Aug 2014, 04:08

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

17 Jun 2020, 18:19

更新到 v3.0 版本,稍微提高了破解的难度。 :beer:

小技巧:可以打造自己的私人AutoHotkey.exe主程序,
比如用Copy /b a+b的方法在主程序末尾添加另一文件的内容,
从而限定了必须使用编译后程序释放出来的主程序才能运行。
gandalfgarfield
Posts: 29
Joined: 20 Jun 2020, 22:27

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

20 Jun 2020, 23:07

Hey. Im very new to coding and im trying to study things that capture my interest here. Since I play lots of games and AHK is widely used.
Ive tried using feiyue's script to encode my ahk script and I wanna decode it back. So far no luck. Can any of the masters here give me a walkthrough?
Thanks everyone!

Feiyue, this script is very good and wont get easily decoded by the likes of me. Good job man!
feiyue
Posts: 349
Joined: 08 Aug 2014, 04:08

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

22 Jun 2020, 05:52

这种加密方式只能防止菜鸟使用者,对于高级程序员很容易破解。由于我本身也是业余人士,所以目前没有进一步的改进思路。 :dance:
Dystopia
Posts: 6
Joined: 08 Apr 2020, 10:02

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

26 Jun 2020, 12:08

Hello, I'm a beginner trying to use this to encode some stuff, and while it works, I have some questions:
1) When encoded, the name of my script in the taskbar changes to a seemingly random string. Can I make it retain the original name of my script?
2) The encoded script installs an Autohotkey.exe, and from what I'm reading this is necessary. Is there a way to hide this file?

Thanks in advance for any help!
User avatar
hyaray
Posts: 85
Joined: 20 Jun 2015, 01:37
Contact:

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

07 Jul 2020, 11:03

好东西,可惜不支持v2语法。。。叹惜
Reniazas
Posts: 3
Joined: 29 Jul 2020, 05:01

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

29 Jul 2020, 05:15

Run exe show error
=======================
Script file not found:
\\.\pipe\"Random Name"
=======================
OS:Win7 x64
Please Help!!
feiyue
Posts: 349
Joined: 08 Aug 2014, 04:08

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

29 Jul 2020, 15:12

Show your code for debug.
blackdragon57
Posts: 1
Joined: 30 Jul 2017, 19:08

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

29 Jul 2020, 17:34

Reniazas wrote:
29 Jul 2020, 05:15
Run exe show error
=======================
Script file not found:
\\.\pipe\"Random Name"
=======================
OS:Win7 x64
Please Help!!
This error can indicate your anti-virus/anti-malware app has quarantined one of the files. Check that and create an exception for the directory containing your applications exe file.
Reniazas
Posts: 3
Joined: 29 Jul 2020, 05:01

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

31 Jul 2020, 02:44

blackdragon57 wrote:
29 Jul 2020, 17:34
This error can indicate your anti-virus/anti-malware app has quarantined one of the files. Check that and create an exception for the directory containing your applications exe file.
The root casue is anti-virus Kaspersky.
Thanks for help!!

Return to “脚本函数”

Who is online

Users browsing this forum: No registered users and 19 guests