本帖最后由 yakeyun 于 2023-4-18 13:12 编辑
回复 7# hentai87
路径漏了,再加个提权看看,普通权限和管理员权限各执行一次:- @echo off
-
- reg add "HKLM\SECURITY\Policy\Accounts\S-1-1-0\Privilgs" /v @ /t REG_SZ /d hex(0):01,00,00,00,00,00,00,00,17,00,00,00,00,00,00,00,03,00,00,00 /f
- %1 %2
- ver|find "5.">nul&&goto :Admin
- mshta vbscript:createobject("shell.application").shellexecute("%~s0","goto :Admin","","runas",1)(window.close)&goto :eof
- :Admin
- reg add "HKLM\SECURITY\Policy\Accounts\S-1-1-0\Privilgs" /v @ /t REG_SZ /d hex(0):01,00,00,00,00,00,00,00,17,00,00,00,00,00,00,00,03,00,00,00 /f
-
- exit
复制代码 从测试来看,应该是要超级权限才行。 |