把这个存成bat文件运行,保你服务器最基本的安全!
复制代码 代码如下:
:: 注册表相关设定
reg delete HKEY_CLASSES_ROOT\WScript.Shell /f
reg delete HKEY_CLASSES_ROOT\WScript.Shell.1 /f
reg delete HKEY_CLASSES_ROOT\Shell.application /f
reg delete HKEY_CLASSES_ROOT\Shell.application.1 /f
reg delete HKEY_CLASSES_ROOT\WSCRIPT.NETWORK /f
reg delete HKEY_CLASSES_ROOT\WSCRIPT.NETWORK.1 /f
regsvr32 /s /u wshom.ocx
regsvr32 /s /u wshext.dll
regsvr32 /s /u shell32.dll
Echo 注册表危险组件删除设定完毕!
PAUSE >nul
另外附送大家一段也不错的批处理,建议能看懂代码的操作,如果使用了,可以通过手工右键加入权限即可。 下面的代码需要xcacls.vbs 请先确定您的系统存在这个文件。XCACLS.vbs直接下载http://xiazai.jb51.net/201008/tools/XCACLS.rar
C盘安全加强.bat
复制代码 代码如下:
:: 给黑客经常用到的系统文件加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/command.com" /D Everyone:F /E
cscript.exe xcacls.vbs "%SystemRoot%/system32/xcopy.exe" /D Everyone:F /E
cscript.exe xcacls.vbs "%SystemRoot%/system32/cscript.exe" /D Everyone:F /E
regsvr32 /s /u wshom.ocx
cscript.exe xcacls.vbs "%SystemRoot%/system32/wshom.ocx" /D Everyone:F /E
Echo C盘安全加强完毕! 请按任意键退出!
PAUSE >nul
Goto exit
复制代码 代码如下:
:: 注册表相关设定
reg delete HKEY_CLASSES_ROOT\WScript.Shell /f
reg delete HKEY_CLASSES_ROOT\WScript.Shell.1 /f
reg delete HKEY_CLASSES_ROOT\Shell.application /f
reg delete HKEY_CLASSES_ROOT\Shell.application.1 /f
reg delete HKEY_CLASSES_ROOT\WSCRIPT.NETWORK /f
reg delete HKEY_CLASSES_ROOT\WSCRIPT.NETWORK.1 /f
regsvr32 /s /u wshom.ocx
regsvr32 /s /u wshext.dll
regsvr32 /s /u shell32.dll
Echo 注册表危险组件删除设定完毕!
PAUSE >nul
另外附送大家一段也不错的批处理,建议能看懂代码的操作,如果使用了,可以通过手工右键加入权限即可。 下面的代码需要xcacls.vbs 请先确定您的系统存在这个文件。XCACLS.vbs直接下载http://xiazai.jb51.net/201008/tools/XCACLS.rar
C盘安全加强.bat
复制代码 代码如下:
:: 给黑客经常用到的系统文件加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/command.com" /D Everyone:F /E
cscript.exe xcacls.vbs "%SystemRoot%/system32/xcopy.exe" /D Everyone:F /E
cscript.exe xcacls.vbs "%SystemRoot%/system32/cscript.exe" /D Everyone:F /E
regsvr32 /s /u wshom.ocx
cscript.exe xcacls.vbs "%SystemRoot%/system32/wshom.ocx" /D Everyone:F /E
Echo C盘安全加强完毕! 请按任意键退出!
PAUSE >nul
Goto exit