telnet

@echo off

start telnet.exe
echo set sk=WScript.CreateObject("WScript.Shell") > exc.vbs
echo sk.Sendkeys "open{ENTER}" >> exc.vbs
echo WScript.Sleep 1000>>exc.vbs
echo sk.Sendkeys "192.168.99.1{ENTER}" >> exc.vbs
echo WScript.Sleep 1000>>exc.vbs
echo sk.Sendkeys "root{ENTER}" >> exc.vbs
echo WScript.Sleep 1000>>exc.vbs
echo sk.Sendkeys "admin{ENTER}" >> exc.vbs
echo WScript.Sleep 1500>>exc.vbs

echo sk.Sendkeys "uci set wireless.ra0.channel=11{ENTER}" >> exc.vbs
echo WScript.Sleep 1000>>exc.vbs
echo sk.Sendkeys "uci set wireless.ra0.noscan=1{ENTER}" >> exc.vbs
echo WScript.Sleep 1000>>exc.vbs
echo sk.Sendkeys "uci commit wireless{ENTER}" >> exc.vbs
echo WScript.Sleep 1000>>exc.vbs

echo sk.Sendkeys "uci set wireless.rai0.channel=149{ENTER}" >> exc.vbs
echo WScript.Sleep 1000>>exc.vbs
echo sk.Sendkeys "uci set wireless.rai0.htmode=VHT80{ENTER}" >> exc.vbs
echo WScript.Sleep 1000>>exc.vbs
echo sk.Sendkeys "uci commit wireless{ENTER}" >> exc.vbs
echo WScript.Sleep 1000>>exc.vbs
echo sk.Sendkeys "wifi up{ENTER}" >> exc.vbs
echo WScript.Sleep 1000>>exc.vbs

echo sk.Sendkeys "echo 0 > /proc/napi_gro_en{ENTER}" >> exc.vbs
rem:=========================================
rem:echo sk.Sendkeys "exit{ENTER}" >> exc.vbs

cscript //nologo exc.vbs


del /q /s exc.vbs

taskkill /im telnet.exe

posted @ 2017-04-06 15:44  tkid  阅读(194)  评论(0编辑  收藏  举报