自动telnet

本文需评论之后方可查看!

echo set sh=WScript.CreateObject("WScript.Shell") >telnet_tmp.vbs
echo WScript.Sleep 300 >>telnet_tmp.vbs
echo sh.SendKeys "open 192.168.1.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
echo sh.SendKeys "admin{ENTER}" >>telnet_tmp.vbs
echo WScript.Sleep 300 >>telnet_tmp.vbs
echo sh.SendKeys "mima {ENTER}">>telnet_tmp.vbs
start telnet
echo sh.SendKeys "arp -a{ENTER}">>telnet_tmp.vbs
cscript //nologo telnet_tmp.vbs
del telnet_tmp.vbs

本文出自 “批处理、cracker专题” 博客,谢绝转载!

你可能感兴趣的:(职场,telnet,自动化,休闲)