- 博客(0)
- 资源 (2)
空空如也
telnet 自动登陆工具(原创)
最近在做一个项目,需要用到Telnet源代码.
于是查询了相关协议,并参考了一些网络源代码,编写了一个Telnet自动登陆工具。在XP下,测试成功!提供给有需要的同志使用,欢迎下载!若有不完善的地方,欢迎到本站留言。www.celon.net.cn
* --------------------------------------------------------------------------
命令格式: Telnet_celon.exe Host_IP Username Password
Host_IP: 远程主机的IP地址,*.*.*.*
Username: 用户名,用于自动登陆
Password: 密码,用于自动登陆
=== Telnet自动登陆工具, Code by 兰明. www.celon.net.cn ===
* --------------------------------------------------------------------------
2009-07-29
TELNET批处理工具
Usage Syntax:
tst10.exe /r:script.txt [options]
/r:script.txt run script.txt
[options] any of these:
/o:output.txt send session output to output.txt
/m run script in minimized window
Usage Example:
tst10.exe /r:script.txt /o:output.txt /m
Scripting Syntax:
HOSTNAME PORT port number optional, default: 23
WAIT "string" string to wait for
SEND "string" string to send
\" represents the a quote character
\m represents a
\\ represents the backslash character
Scripting Example:
hostname.com 23
WAIT "login"
SEND "root\m"
WAIT "password"
SEND "mypassword\m"
WAIT ">"
SEND "dip internet.dip\m"
WAIT ">"
Scripting Note:
You can start with either WAIT or SEND commands,
but you *must* alternate them. ie: you can't use two
or more WAIT or SEND in a row.
Note:
TST will disconnect and close as soon
as its done with the last entry of the script.
If you need to, you can type in the terminal
window while the script is running.
2008-12-04
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人