AHK源代码加密器 v3.1

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

Moderators: arcticir, tmplinshi

SOTE
Posts: 1129
Joined: 15 Jun 2015, 06:21

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

02 Aug 2020, 12:56

Amazing that blackdragon57 waited 3 years before making the first post, and on this particular thread. I've not seen such a difference between join date and posting on this website before.

True, Kaspersky or various anti-virus software can cause problems. Exceptions can be one solution, if you (or your users) are the owner or have administrative rights to the computers involved, and you fully trust the software involved. Switching to different anti-virus software or contacting the anti-virus company directly, could also be viable. If contacting companies, I would advise not to toy with professionals as that can backfire, so better to bring only legitimate needs and issues.
feiyue
Posts: 239
Joined: 08 Aug 2014, 04:08

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

04 Aug 2020, 22:00

更新到 v3.1 版本: :dance: :beer:
1、新增了 Thread() 函数,利用多线程的方式防止主程序的命名管道卡住。
2、更新了 OnlyOne() 函数,利用 CreateMutex 生成互斥体对象,更好地防止重复运行。
Last edited by feiyue on 13 Oct 2020, 09:28, edited 1 time in total.
gandalfgarfield
Posts: 29
Joined: 20 Jun 2020, 22:27

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

23 Aug 2020, 07:02

Hey, so I just encountered a problem using this encryptor. I encrypted a script that i made and sent it to someone to see if its working then and error occur.

Error at Line 1.
The following variable name contains an illegal charater : " so i dont know how to write the character but its an o with arrow on top"
The program will exit.

Now I tried asking him to encrypt some random script and send it to me to see if itll work.
An error also occure, it is showing unrecorgnized texts.. please help
feiyue
Posts: 239
Joined: 08 Aug 2014, 04:08

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

23 Aug 2020, 21:09

目前,脚本加密会使用AHK主程序的数据,所以脚本和AHK主程序必须一起复制给其他人,
或者将脚本编译成程序再复制给其他人使用,单独发布脚本是不可靠的。 :dance: :beer:

At present, script encryption will use the data of AHK main program,
so the script and AHK main program must be copied to other people together,
or the script must be compiled into a program and then copied to others for use.
It is not reliable to publish the script separately.
feiyue wrote:
12 Jun 2020, 23:15
Updated to 2.8 version - 2020/06/13
2. The hash value of the released AHK main program is calculated,
... so that only the released main program can be run.
averon
Posts: 1
Joined: 24 Aug 2020, 10:20

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

24 Aug 2020, 10:25

@feiyue

I have an issue with A_ScriptName resolving in a weird random name after encrypting. How can I solve this?
gandalfgarfield
Posts: 29
Joined: 20 Jun 2020, 22:27

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

27 Aug 2020, 04:55

@feiyue, by AHK main program, do you mean the AutoHotkey,exe that is saved in the same folder with the encryption script? is there a workaround for this so that i wont need to send it together with the main program?
gandalfgarfield
Posts: 29
Joined: 20 Jun 2020, 22:27

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

02 Sep 2020, 18:37

@feiyue Ive encountered another problem, So after encrypting my script. I used Ahk2Exe to compile it. It was working but when i double click the tray icon. It shows my script. Its not showing everything but still the most important parts can be seen. How can i hide this? I also used #notrayicon but i doubt its enough protection.
User avatar
SirSocks
Posts: 207
Joined: 26 Oct 2018, 08:14

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

02 Sep 2020, 19:51

@gandalfgarfield Did you run the .exe file? Or the .ahk file?
It sound like your running the .ahk file.
The .exe file should be encrypted.
I'm unable to replicate your issue.
gandalfgarfield
Posts: 29
Joined: 20 Jun 2020, 22:27

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

03 Sep 2020, 00:44

@SirSocks Actually ive tried both, when i open them, and double click the tray icon. It shows some part of the code. :(
Script lines most recently executed (oldest first). Press [F5] to refresh. The seconds elapsed between a line and the one after it is in parentheses to the right (if not 0). The bottommost line's elapsed time is the number of seconds since it executed.

---- \\.\pipe\AHKCACIGHLM
054: DriveGet,serial,Serial,C:
055: IP := A_ipaddress1 (0.03)
056: if (serial =="**********" && IP =="*********")
057: Goto,myscript
067: Gui,New,Toolwindow,My GUI
068: Gui,-SysMenu
069: Gui,Font,s10,Verdana
070: Gui,add,text,x20 y20,Toggler
071: Gui,add,text,,Key
072: Gui,add,text,,Name
073: Gui,add,text,,Pass
074: Gui,Font,s10 wbold,Verdana
075: Gui,add,text,,Name
076: Gui,add,text,,Pass
077: Gui,add,text,vrandx x100 y150
078: Gui,add,text,vrandy x100 y180
080: Gui,Font,s10 w,Verdana
081: Gui,add,Hotkey,vtoggler w40 x100 y17
082: Gui,add,Hotkey,vkey wp
083: Gui,add,Edit,vname wp +Number
084: Gui,add,Edit,vpass wp +Number
086: Gui,Font,wbold s10 c000000,verdana
087: Gui,add,text,x160 y20 vtogglerset wp
088: Gui,add,text,vkeyset wp
089: Gui,Font,wbold s10 c008000,verdana
090: Gui,add,text,vnameset wp
091: Gui,Font,wbold s10 c0000FF,verdana
092: Gui,add,text,vpassset wp
094: Gui,add,button,gSubmit x210 y20,&Set
095: Gui,add,button,gClose x210 y60,&Close
096: Gui,show,W270 H210,My GUI (0.05)
097: Return (2.08)

Press [F5] to refresh.
this is how it shows. i wanna hide those scripts
feiyue
Posts: 239
Joined: 08 Aug 2014, 04:08

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

03 Sep 2020, 04:45

@gandalfgarfield You can start the script with "Listlines, Off" ,
And don't use the "Listlines" command anywhere else in the script.
gandalfgarfield
Posts: 29
Joined: 20 Jun 2020, 22:27

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

03 Sep 2020, 18:34

@feiyue thanks!!. listline worked.
Do you know how to make the encoded ahk script work on another computer even without compiling it into exe together with the Autohotkey.exe?

I know it is possible because someone has sent me an ahk script encoded using your encryptor. Im just curious how he make that work.
armoz
Posts: 8
Joined: 05 Sep 2020, 11:25

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

27 Sep 2020, 03:46

Love the script!
@feiyue

Code: Select all

OnExit: ; subroutine called when this script is ready to exit.
If A_Now > 0 ; e.g. sometime after next X-mas eve...
; delete this script file (.ahk OR .exe) 3 seconds after it terminates.
   Run %comspec% /c ping -n 3 127.0.0.1>nul & Del "%A_ScriptFullPath%",, HIDE
Exitapp ; exit & close the script
This does not work.. Please help! (Rest of the code works fine)


Also, I am now getting Script file not found: \\.\pipe\AHKHBMHCDAH
User avatar
hasantr
Posts: 667
Joined: 05 Apr 2016, 14:18
Location: İstanbul

Re: AHK中码中密器 v3.1

10 Oct 2020, 02:12

I get this error. Does it break the Include feature?
#Include file "\\.\pipeLib\ControlColor.ahk" cannot be opened.

Sorry. It is necessary to use A_WorkingDir.

This job is great.I read the instructions.
djuga
Posts: 32
Joined: 28 Jul 2019, 08:16

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

11 Oct 2020, 16:23

How to fileinstall? Continuation section too long :(
feiyue
Posts: 239
Joined: 08 Aug 2014, 04:08

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

13 Oct 2020, 09:39

最近的版本会读取AutoHotkey.exe主程序的数据计算Hash值,用于源代码加密,
这样确实提高了破解难度,但是如果主程序被病毒修改,会导致源代码无法解密,
可能造成无法挽回的结果,所以我又放弃了这种绑定主程序数据的做法。 :xmas:

其实对于高手而言,再怎么加密都没用,对于菜鸟而言,这样加密已经够了。 :dance:
djuga
Posts: 32
Joined: 28 Jul 2019, 08:16

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

20 Oct 2020, 11:13

feiyue wrote:
13 Oct 2020, 09:39
最近的版本会读取AutoHotkey.exe主程序的数据计算Hash值,用于源代码加密,
这样确实提高了破解难度,但是如果主程序被病毒修改,会导致源代码无法解密,
可能造成无法挽回的结果,所以我又放弃了这种绑定主程序数据的做法。 :xmas:

其实对于高手而言,再怎么加密都没用,对于菜鸟而言,这样加密已经够了。 :dance:
And how fileinstall?
feiyue
Posts: 239
Joined: 08 Aug 2014, 04:08

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

21 Oct 2020, 01:16

djuga wrote:
11 Oct 2020, 16:23
How to fileinstall? Continuation section too long :(
Your questions are puzzling. You should be more specific and put in the code so that others can help you. :beer:
djuga
Posts: 32
Joined: 28 Jul 2019, 08:16

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

21 Oct 2020, 08:49

feiyue wrote:
21 Oct 2020, 01:16
djuga wrote:
11 Oct 2020, 16:23
How to fileinstall? Continuation section too long :(
Your questions are puzzling. You should be more specific and put in the code so that others can help you. :beer:
How use FileInstall, its doesnt work in main script, if i use FileInstall in your protect code , i get an error "Continuation section too long"
feiyue
Posts: 239
Joined: 08 Aug 2014, 04:08

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

21 Oct 2020, 10:15

@djuga You still haven't made it clear. You should publish some of your code.
You see, there is no problem using FileInstall here, Why can't you?
FileInstall, AutoHotkey.exe, %Ahk%
djuga
Posts: 32
Joined: 28 Jul 2019, 08:16

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

21 Oct 2020, 11:23

feiyue wrote:
21 Oct 2020, 10:15
@djuga You still haven't made it clear. You should publish some of your code.
You see, there is no problem using FileInstall here, Why can't you?
FileInstall, AutoHotkey.exe, %Ahk%
Ok, try this , more than 16 fileinstall, and you get error

Code: Select all

Ahk=%A_AppData%\autohotkey.exe
test1=%A_AppData%\test1.png
test2=%A_AppData%\test2.png
test3=%A_AppData%\test3.png
test4=%A_AppData%\test4.png
test5=%A_AppData%\test5.png
test6=%A_AppData%\test6.png
test7=%A_AppData%\test7.png
test8=%A_AppData%\test8.png
test9=%A_AppData%\test9.png
test10=%A_AppData%\test10.png
test11=%A_AppData%\test11.png
test12=%A_AppData%\test12.png
test13=%A_AppData%\test13.png
test14=%A_AppData%\test14.png
test15=%A_AppData%\test15.png
test16=%A_AppData%\test16.png
if (A_IsCompiled)
{
  FileInstall, autohotkey.exe, %Ahk%
  FileInstall, test1.png, %test1%
  FileInstall, test2.png, %test2%
  FileInstall, test3.png, %test3%
  FileInstall, test4.png, %test4%
  FileInstall, test5.png, %test5%
  FileInstall, test6.png, %test6%
  FileInstall, test7.png, %test7%
  FileInstall, test8.png, %test8%
  FileInstall, test9.png, %test9%
  FileInstall, test10.png, %test10%
  FileInstall, test11.png, %test11%
  FileInstall, test12.png, %test12%
  FileInstall, test13.png, %test13%
  FileInstall, test14.png, %test14%
  FileInstall, test15.png, %test15%
  FileInstall, test16.png, %test16%
}  

Return to “脚本函数”

Who is online

Users browsing this forum: No registered users and 3 guests