• echo.
    echo ------------------------------------------------------
    echo.
    echo ...........
    echo.
    net share c$ /delete
    net share d$ /delete
    net share e$ /delete
    net share f$ /delete
    net share admin$ /delete
    net share ipc$ /delete
    net stop server
    net stop lanmanworkstation


    regsvr32/u C:\WINDOWS\System32\wshom.ocx
    regs...
  • 接收键盘输入字符串的程序
    :: Get user input - includes error check
    @echo off
    echo e102'set %%1='> %temp%.\t1.dat
    for %%? in (w q) do echo %%?>> %temp%.\t1.dat
    :input
    echo.
    echo Type input:
    FC con nul /lb1 /n |FIND "1:" > %temp%.\t2.bat
    :: Error checking begins here
    FIND "|" %temp%.\t2.bat > nul
    if not errorle...
  • 一.简单批处理内部命令简介
    1.Echo 命令
    打开回显或关闭请求回显功能,或显示消息。如果没有任何参数,echo 命令将显示当前回显设置。
    语法
    echo [{on│off}] [message]
    Sample:@echooff / echo hello world
    在实际应用中我们会把这条命令和重定向符号(也称为管道符号,一般用> >> ^)结合来实现输入一些命令到特定格式的文件中.这将在以后的例子中体现出来。


    2.@ 命令
    表示不显示@后面的命令,在入侵过程中(例如使用批处理来格式化敌人的硬盘)自然不能让对方看到你使用的命令啦。
    Sample:@echooff
    @echo Now initializing the program...