找回密码
 注册
搜索
[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
查看: 15407|回复: 0

[注册表类] 注册表映像重定向求助

[复制链接]
发表于 2022-12-19 11:24:36 | 显示全部楼层 |阅读模式
有位大佬搞了个右键添加映像重定向(映像劫持)的注册表,可是代码在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 \"\""
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|批处理之家 ( 渝ICP备10000708号 )

GMT+8, 2026-3-19 07:56 , Processed in 0.013739 second(s), 8 queries , File On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表