标题:
[注册表类]
注册表映像重定向求助
[打印本页]
作者:
hihk2
时间:
2022-12-19 11:24
标题:
注册表映像重定向求助
有位大佬搞了个右键添加映像重定向(映像劫持)的注册表,可是代码在win7下,无法添加进注册表里,也提权了,本身是管理员帐号,哪位大佬能改改,使其兼容win7和win10正常运行.
示例如下:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\exefile\shell\debugger]
"MUIVerb"="映像重定向"
"SubCommands"="Ondebugger;Nodebugger;Zdydebugger"
"icon"="%systemroot%\\system32\\imageres.dll,102"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Ondebugger]
@="重定向此程序(&Y)"
"Icon"="%systemroot%\\system32\\imageres.dll,100"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Ondebugger\Command]
@="cmd.exe /c for /f \"delims=\" %%t in ('dir /b \"%1\"') do reg add \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\%%t\" /f /v \"Debugger\" /t REG_SZ /d \"\\\\\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Zdydebugger]
@="自定义重定向(&Z)"
"Icon"="%systemroot%\\system32\\imageres.dll,100"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Zdydebugger\Command]
@="cmd.exe /c echo 映像重定向编辑器:SYSTEM-RAMOS-ZDY 版权所有&echo.&echo 作者主页:https://space.bilibili.com/493998035&echo.&set /p a=请输入一个程序名来重定向本程序:&for /f \"delims=\" %%y in ('echo %%a%%') do for /f \"delims=\" %%t in ('dir /b \"%1\"') do reg add \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\%%t\" /f /v \"Debugger\" /t REG_SZ /d \"%%y\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Nodebugger]
@="取消映像重定向(&N)"
"icon"="%systemroot%\\system32\\imageres.dll,101"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Nodebugger\Command]
@="cmd.exe /c for /f \"delims=\" %%t in ('dir /b \"%1\"') do reg add \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\%%t\" /f /v \"Debugger\" /t REG_SZ /d \"\""
欢迎光临 批处理之家 (http://www.bathome.net/)
Powered by Discuz! 7.2