Page 4 of 8

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

Posted: 28 Apr 2020, 17:53
by R0nya
pjZCgyP[1].png
pjZCgyP[1].png (4.38 KiB) Viewed 19784 times
Any script I've encrypted shows that error. What i do wrong? Help plz

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

Posted: 12 Jun 2020, 23:15
by feiyue
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.

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

Posted: 12 Jun 2020, 23:25
by feiyue
@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 ?

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

Posted: 13 Jun 2020, 07:28
by jasonlcy3
怎样防止单独打开AutoHotKey.exe时 弹出视窗? :)

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

Posted: 13 Jun 2020, 08:05
by R0nya
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:

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

Posted: 13 Jun 2020, 09:09
by SirSocks
@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."

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

Posted: 13 Jun 2020, 11:02
by feiyue
@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.

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

Posted: 13 Jun 2020, 12:50
by SirSocks
@feiyue :bravo: thank you for sharing and updating your script :thumbup:

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

Posted: 15 Jun 2020, 15:15
by jasonlcy3
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:

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

Posted: 16 Jun 2020, 09:30
by jasonlcy3
我发现如果改了AutoHotKey的图标就会不能运行

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

Posted: 16 Jun 2020, 19:07
by feiyue
加密前可以改动主程序,加密时计算了主程序的哈希值,所以打包前不要再改动主程序。之后编译得到的程序可以改图标,不会影响释放出来的主程序。

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

Posted: 17 Jun 2020, 18:19
by feiyue
更新到 v3.0 版本,稍微提高了破解的难度。 :beer:

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

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

Posted: 20 Jun 2020, 23:07
by gandalfgarfield
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!

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

Posted: 22 Jun 2020, 05:52
by feiyue
这种加密方式只能防止菜鸟使用者,对于高级程序员很容易破解。由于我本身也是业余人士,所以目前没有进一步的改进思路。 :dance:

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

Posted: 26 Jun 2020, 12:08
by Dystopia
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!

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

Posted: 07 Jul 2020, 11:03
by hyaray
好东西,可惜不支持v2语法。。。叹惜

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

Posted: 29 Jul 2020, 05:15
by Reniazas
Run exe show error
=======================
Script file not found:
\\.\pipe\"Random Name"
=======================
OS:Win7 x64
Please Help!!

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

Posted: 29 Jul 2020, 15:12
by feiyue
Show your code for debug.

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

Posted: 29 Jul 2020, 17:34
by blackdragon57
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.

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

Posted: 31 Jul 2020, 02:44
by Reniazas
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!!