服务器 C盘 安全加强批处理(去除一些特殊软件的权限)
程序员文章站
2022-11-27 18:49:48
最新c盘安全加强批处理 使用方法,存为"c盘安全加强批处理.bat"到开源版设置器2.3的目录下,和thecsafe.cmd同级目录,双击执行即可! 复制代码 代码如下:...
最新c盘安全加强批处理
使用方法,存为"c盘安全加强批处理.bat"到开源版设置器2.3的目录下,和thecsafe.cmd同级目录,双击执行即可!
:: 给黑客经常用到的系统文件加everyone拒绝权限
regsvr32 /s wshom.ocx
cscript.exe xcacls.vbs "%systemroot%/system32/cmd.exe" /d everyone:f /e
cscript.exe xcacls.vbs "%systemroot%/system32/net.exe" /d everyone:f /e
cscript.exe xcacls.vbs "%systemroot%/system32/net1.exe" /d everyone:f /e
cscript.exe xcacls.vbs "%systemroot%/system32/cacls.exe" /d everyone:f /e
cscript.exe xcacls.vbs "%systemroot%/system32/wscript.exe" /d everyone:f /e
cscript.exe xcacls.vbs "%systemroot%/system32/wshom.ocx" /d everyone:f /e
cscript.exe xcacls.vbs "%systemroot%/system32/cscript.exe" /d everyone:f /e
regsvr32 /s /u wshom.ocx
echo c盘安全加强完毕! 请按任意键退出!
pause >nul
goto exit
使用方法,存为"c盘安全加强批处理.bat"到开源版设置器2.3的目录下,和thecsafe.cmd同级目录,双击执行即可!
复制代码 代码如下:
:: 给黑客经常用到的系统文件加everyone拒绝权限
regsvr32 /s wshom.ocx
cscript.exe xcacls.vbs "%systemroot%/system32/cmd.exe" /d everyone:f /e
cscript.exe xcacls.vbs "%systemroot%/system32/net.exe" /d everyone:f /e
cscript.exe xcacls.vbs "%systemroot%/system32/net1.exe" /d everyone:f /e
cscript.exe xcacls.vbs "%systemroot%/system32/cacls.exe" /d everyone:f /e
cscript.exe xcacls.vbs "%systemroot%/system32/wscript.exe" /d everyone:f /e
cscript.exe xcacls.vbs "%systemroot%/system32/wshom.ocx" /d everyone:f /e
cscript.exe xcacls.vbs "%systemroot%/system32/cscript.exe" /d everyone:f /e
regsvr32 /s /u wshom.ocx
echo c盘安全加强完毕! 请按任意键退出!
pause >nul
goto exit