服务器 C盘 安全加强批处理(去除一些特殊软件的权限)
(编辑:jimmy 日期: 2024/11/14 浏览:3 次 )
最新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
下一篇:tomcat 几种连接池配置代码(包括tomcat5.0,tomcat5.5x,tomcat6.0)