>> 欢迎您, 傲气雄鹰: 重登陆 | 退出 | 注册 | 资料 | 设置 | 排行 | 新贴 | 精华 | 管理 | 帮助 首页

  小榕软件实验室
  刀光雪影
  如何为Windows 2000创建一个tftp servic
发表文章 发表涂鸦
  回复数:4  点击数:179 将此页发给您的朋友        
作者 主题: 如何为Windows 2000创建一个tftp servic 回复 | 收藏 | 打印 | 篇末
spark帅哥哦
级别:长 老 级
威望:4
经验:0
货币:723
体力:34.5
来源:江苏
总发帖数:780
注册日期:2001-06-26
查看 邮件 主页 QQ 消息 引用 复制 下载 

呵呵,平常使用的tftp,都是在自己机器上开tftp
这样难免暴露自己,那么就想,是不是在肉鸡上开tftp呢
然后把常用的得手软件放上去就好了!
怎么给肉鸡安装tftp服务呢,下面是两份资料!

Adam 于 2001-9-22 1:40:09 加贴在 绿盟科技论坛(bbs.nsfocus.com)--WinNT安全:

如何为Windows 2000创建一个tftp service

Author:adam@nsfocus.com
Date:2001-09-21
Site: Http://www.sometips.com

近日在论坛总是看到有人问怎么启动Win2K下的TFTP服务,其实在默认情况下TFTP服务是没有安装的,只有在使用RIS服务的时候才会安装该服务(国内很少有人用这个玩艺,可能我是井底之蛙吧),现在我给大家示范如何来安装一个tftp服务(如果你有需要的话,阁下是网管还是XX呢?)

我们首先找到系统中的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
Installs and removes system services from NT

INSTSRV <service name> (<exe location> | REMOVE)
[-a <Account Name>] [-p <Account Password>]

Install service example:

INSTSRV MyService C:\MyDir\DiskService.Exe
-OR-
INSTSRV MyService C:\mailsrv\mailsrv.exe -a MYDOMAIN\joebob -p foo

Remove service example:

INSTSRV MyService REMOVE
[俺的特色:字不够,帮助凑!]

添加一个服务,注意,该服务创建侯为自动启动。
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 sometips.gif sometips.gif
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 sometips.gif
1 个文件 4,209 字节
2 个目录 94,113,792 可用字节

注意,如果你上传文件,系统会在%systemdrive%自动创建一个名为tftproot的目录,OK,所有的工作已经完成了!

Enjoy it!


如果用上面的方法,会在肉鸡上的系统盘根目录出现一个
tftpdroot目录,隐蔽性不强,于是今天找到了这份资料,对
tftpd.exe的一些参数做了介绍,呵呵,比较爽,用-d参数就可以
自定义服务目录了。

叮叮 于 2001-9-22 11:32:14 加贴在 绿盟科技论坛(bbs.nsfocus.com)--WinNT安全:

TFTPD USAGE and Installation:

md d:/tftpd (the StartDirectory).
copy //MohsinA_p90/test/tftpd.exe .
sc create tftpd binPath= d:/tftpd/tftpd.exe (give full path).
sc query tftpd (check if installed).

Start:
sc start tftpd -f (creates a log file).
or sc start tftpd
or net start tftpd
or sc start tftpd [-dStartDirectory] [-e] [-f]
Options: -e use event log.
-f log to file.
-dStartDirectory
Info:
sc interrogate tftpd (logs will be updated).
sc query tftpd Check whether running.
Stop:
sc stop tftpd
net stop tftpd

Variables that control what files can be read/written and by whom:
StartDirectory - only files there will be accessible.
LogFile is created here.
ValidClients - Clients matching this ip address can read files.
eg. you can set it to "157.55.8?.*"
ValidMasters - clients matching this can write and read files.
eg. you can set it to "" and no one can write.
ValidReadFiles - only matching files will be served out, eg. "r*.t?t"
ValidWriteFiles- only matching files will be accepted, eg. "w*.txt"

Client:
tftp [-i] servername {get|put} src_file dest_file
-i from binary mode, else ascii mode is used.

----------------------------------------------------------
送给你我思念的手
愿它能传递我的温柔
与暖暖的问候
解开你眉间的忧
赶走你心中的愁
让所有幸福与快乐
从此在你的身旁停留

编辑 删除 发表时间发表于 2002-04-02.17:59:24   MSIE 5.01 Windows 2000IP: 已记录
双面黑侠帅哥哦
级别:老 站 友
威望:0
经验:0
货币:796
体力:54.9
来源:河北
总发帖数:206
注册日期:2002-03-27
查看 邮件 主页 QQ 消息 引用 复制 下载 

很好
----------------------------------------------------------
我踏月色而来~~~~~~~~~~~~~~~

编辑 删除 发表时间发表于 2002-04-02.19:31:32   MSIE 5.0 Windows 98IP: 已记录
sideyuan帅哥哦
级别:一般站友
威望:0
经验:0
货币:
体力:
来源:210.82.155.*
总发帖数:17
注册日期:2002-03-28
查看 邮件 主页 QQ 消息 引用 复制 下载 

好像这个tftpd.exe文件找不到,INSTSRV这个也找不到.我用的是2k professioinal

编辑 删除 发表时间发表于 2002-04-03.21:30:47   MSIE 5.01 Windows 2000IP: 已记录
aiches帅哥哦
级别:开国大老
威望:0
经验:0
货币:872
体力:30.1
来源:Ketle
总发帖数:2184
注册日期:2002-02-07
查看 邮件 主页 QQ 消息 引用 复制 下载 

GOOD!
----------------------------------------------------------
曾多次,用你那赤裸的身躯紧贴着我的身躯,那抚摩,那无规则的挪动,使我感到一阵阵快感,同时看着你渐渐消瘦,哎,可怜的肥皂啊。

编辑 删除 发表时间发表于 2002-04-03.21:33:18   MSIE 6.0 Windows 2000IP: 已记录
onenight帅哥哦
级别:中级站友
威望:0
经验:0
货币:84
体力:3.8
来源:61.140.90.*
总发帖数:64
注册日期:2002-03-17
查看 邮件 主页 QQ 消息 引用 复制 下载 

f一等好文

编辑 删除 发表时间发表于 2002-04-03.21:39:24   MSIE 5.01 Windows 2000IP: 已记录
选择回复        
 快速回复主题: >>>高级模式
  用户名: 没有注册? 密码: 忘记密码?
记住密码
HTML语法
禁止IDB代码
禁止表情字符

[按 Ctrl+Enter 快捷键可直接提交帖子]
 投票评分: 共 0 票  
所有时间均为: 北京时间 ↑TOP 
关闭主题 拉前主题 移动主题 主题置顶 取消置顶 总固顶主题 取消总固顶 加入精华 移出精华 删除主题