标题: [网络连接] Telnet 路由器并运行三个命令 求大神指教代码,不胜感激! [打印本页]
作者: wc1982 时间: 2020-5-28 21:41 标题: Telnet 路由器并运行三个命令 求大神指教代码,不胜感激!
本帖最后由 wc1982 于 2020-5-28 21:44 编辑
1.打开cmd,Telnet 192.168.18.254
2.用户名treebear,密码admin123
3.然后分别输入三个命令
protest --pid -w 15
protest --bid -w 1
protest --hdver -w 0
作者: 不知道是谁 时间: 2020-5-29 09:45
保存为.vbs试试,未测试,不保证一定有用- Dim Wsh
- Set Wsh = CreateObject("WScript.Shell")
- Wsh.Run "telnet 192.168.18.254"
- WScript.Sleep 1000
- Wsh.SendKeys "{ENTER}"
- WScript.Sleep 3000
- Wsh.SendKeys "y{ENTER}"
- WScript.Sleep 2000
- Wsh.SendKeys "treebear{ENTER}"
- WScript.Sleep 2000
- Wsh.SendKeys "admin123{ENTER}"
- WScript.Sleep 2000
- Wsh.SendKeys "protest --pid -w 15{ENTER}"
- WScript.Sleep 3000
- Wsh.SendKeys "protest --bid -w 1{ENTER}"
- WScript.Sleep 3000
- Wsh.SendKeys "protest --hdver -w 0{ENTER}"
- WScript.Sleep 3000
复制代码
作者: wc1982 时间: 2020-5-29 12:28
回复 2# 不知道是谁
已测试,不行,但还是要谢谢
欢迎光临 批处理之家 (http://www.bathome.net/) |
Powered by Discuz! 7.2 |