windows安全防护--cmd劫持

来源:互联网 发布:mac 图片 整理 编辑:程序博客网 时间:2024/05/16 14:05
Windows Registry Editor Version 5.00   
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\cmd.exe]   
 
"debugger"="explorer.exe"   
 
把cmd.exe劫持为explorer.exe,也就是不让cmd.exe运行。   
 
reg add "hklm\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\cmd.exe" /f   
 
reg add "hklm\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\cmd.exe" /v debugger /d explorer.exe /f
0 0