spark
 
级别:长 老 级 威望:4 经验:0 货币:723 体力: 来源:江苏 总发帖数: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.
|