|
悬赏1金钱已解决
本帖最后由 hljkwan 于 2021-11-9 20:50 编辑
#include <GUIConstants.au3>
#include <WindowsConstants.au3>
_MyProExists()
$WinMain = GUICreate(" - ST", 510, 320)
GUISetfont(9, 400)
$tab = GUICtrlCreateTab(5, 5, 495, 285)
$Tabhead7 = GUICtrlCreateTabItem("系统设置")
GUICtrlCreateGroup("cmd加密码", 10, 150, 155, 130)
GUICtrlCreateLabel("注: <勿用中文>", 15, 170, 145, 30)
$tab7pass = GUICtrlCreateEdit("", 33, 210, 100, 20, $ES_AUTOVSCROLL)
$tab7passbutton = GUICtrlCreateButton("设置", 20, 240, 60, 30, $BS_FLAT )
$tab7passbuttondel = GUICtrlCreateButton("解除", 95, 240, 60, 30, $BS_FLAT )
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $tab7passbutton
RegWrite('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor')
RegWrite('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor', 'AutoRun', 'REG_SZ', @SystemDir & '\pass.bat')
MsgBox(0, "提示", "加密成功", 2)
Case $tab7passbuttondel
FileDelete(@SystemDir & "\pass.bat")
RegWrite('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor')
RegWrite('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor', 'AutoRun', 'REG_SZ', '')
MsgBox(64,"提示","CMD密码已经取消",1)
EndSwitch
WEnd
Func _MyProExists()
$my_Version = "By lrcf"
If WinExists($my_Version) Then Exit
AutoItWinSetTitle($my_Version)
EndFunc
运行上面的额代码,输入密码可以正常加密CMD,也可以写入注册表【HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor\AutoRun】的数值,如图所示:
最顶部加入#AccAu3Wrapper_UseX64=n这行代码后,输入密码不能正常加密CMD,也不可以写入注册表【HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor\AutoRun】的数值,如图:
有什么好的方式不删除【#AccAu3Wrapper_UseX64=n】情况下,能完成CMD加密
|
附件: 您需要 登录 才可以下载或查看,没有账号?加入
最佳答案
查看完整内容
LZ没理解[#AccAu3Wrapper_UseX64=n]的意思
#AutoIt3Wrapper_UseX64=n ;是否编译为64位/32位程序(y/n)
|