Created
May 29, 2015 07:39
-
-
Save hjzheng/96922951657824926962 to your computer and use it in GitHub Desktop.
BSO.bat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
echo set sh=WScript.CreateObject("WScript.Shell") >telnet_tmp.vbs | |
echo WScript.Sleep 300 >>telnet_tmp.vbs | |
REM 把127.0.0.1改为你要登录的IP地址 | |
echo sh.SendKeys "open 127.0.0.1" >>telnet_tmp.vbs | |
echo WScript.Sleep 300 >>telnet_tmp.vbs | |
echo sh.SendKeys "{ENTER}" >>telnet_tmp.vbs | |
echo WScript.Sleep 300 >>telnet_tmp.vbs | |
REM 用户名 | |
echo sh.SendKeys "Username{ENTER}" >>telnet_tmp.vbs | |
echo WScript.Sleep 300 >>telnet_tmp.vbs | |
REM 密码 | |
echo sh.SendKeys "Password{ENTER}" >>telnet_tmp.vbs | |
echo WScript.Sleep 300 >>telnet_tmp.vbs | |
start telnet | |
cscript //nologo telnet_tmp.vbs | |
del telnet_tmp.vbs | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment