[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[网络连接] 自动连接小区宽带并自动输入用户名和密码的批处理或VBS

兄弟们,请教一下:
在打开WEB认证界面的时候,直接跳出http://58.213.12.xx/second=123456789
必须手动输入用户名和密码才可以,[attach]381[/attach]
我试了很多次都没办法,所以想请教大家,有没有批处理或者VBS可以实现.
手动输入以后,HTTP://会显示
http://58.213.12.xx/login?username=用户名&platcontent=&password=密码%5D&RecordPassword=on&authmode=PAP&websuserip=58.213.12.xx&challenge=hadjaelcbieoldkk&submittime=1222324702878&submit=%B5%C7+%C2%BC

回复 2楼 的帖子

如果每个人都“代码我保密”
论坛岂不是没有存在的意义了吗
我帮忙写的代码不需要付钱。如果一定要给,请在微信群或QQ群发给大家吧。
【微信公众号、微信群、QQ群】http://bbs.bathome.net/thread-3473-1-1.html
【支持批处理之家,加入VIP会员!】http://bbs.bathome.net/thread-67716-1-1.html

TOP

自动宽带连接快捷方式并连接

自动宽带连接快捷方式并连接看则个是不是你想要的
自动宽带连接快捷方式并连接
@echo off

for /f "skip=3 tokens=2 delims=: " %%i in (D:\本机宽带密码和网卡IP.txt) do (
set id=%%i
goto Next
)
:Next
for /f "skip=4 tokens=2 delims=: " %%j in (D:\本机宽带密码和网卡IP.txt) do (
set pw= %%j
goto Exit
)
:Exit
pause>>nul

rem 生成rasphone.pbk文件
(echo [PPPoE]
echo Encoding=1
echo Type=5
echo AutoLogon=0
echo UseRasCredentials=0
echo DialParamsUID=17073671
echo Guid=FEB7DE67D8A49E4C89AFEE9315C22C7D
echo BaseProtocol=1
echo VpnStrategy=0
echo ExcludedProtocols=3
echo LcpExtensions=1
echo DataEncryption=8
echo SwCompression=1
echo NegotiateMultilinkAlways=0
echo SkipNwcWarning=0
echo SkipDownLevelDialog=0
echo SkipDoubleDialDialog=0
echo DialMode=1
echo DialPercent=75
echo DialSeconds=120
echo HangUpPercent=10
echo HangUpSeconds=120
echo OverridePref=15
echo RedialAttempts=3
echo RedialSeconds=60
echo IdleDisconnectSeconds=0
echo RedialOnLinkFailure=1
echo CallbackMode=0
echo CustomDialDll=
echo CustomDialFunc=
echo CustomRasDialDll=
echo AuthenticateServer=0
echo ShareMsFilePrint=0
echo BindMsNetClient=0
echo SharedPhoneNumbers=0
echo GlobalDeviceSettings=0
echo PrerequisiteEntry=
echo PrerequisitePbk=
echo PreferredPort=
echo PreferredDevice=
echo PreferredBps=0
echo PreferredHwFlow=0
echo PreferredProtocol=0
echo PreferredCompression=0
echo PreferredSpeaker=0
echo PreferredMdmProtocol=0
echo PreviewUserPw=1
echo PreviewDomain=0
echo PreviewPhoneNumber=0
echo ShowDialingProgress=1
echo ShowMonitorIconInTaskBar=1
echo CustomAuthKey=-1
echo AuthRestrictions=632
echo TypicalAuth=1
echo IpPrioritizeRemote=1
echo IpHeaderCompression=0
echo IpAddress=0.0.0.0
echo IpDnsAddress=0.0.0.0
echo IpDns2Address=0.0.0.0
echo IpWinsAddress=0.0.0.0
echo IpWins2Address=0.0.0.0
echo IpAssign=1
echo IpNameAssign=1
echo IpFrameSize=1006
echo IpDnsFlags=0
echo IpNBTFlags=0
echo TcpWindowSize=0
echo UseFlags=1
echo IpSecFlags=0
echo IpDnsSuffix=
echo.
echo NETCOMPONENTS=
echo ms_server=0
echo ms_msclient=0
echo.
echo MEDIA=rastapi
echo Port=PPPoE6-0
echo Device=WAN 微型端口 (PPPOE^)
echo.
echo DEVICE=PPPoE
echo PhoneNumber=
echo AreaCode=
echo CountryCode=1
echo CountryID=1
echo UseDialingRules=0
echo Comment=
echo LastSelectedPhone=0
echo PromoteAlternates=0
echo TryNextAlternateOnFail=1)>rasphone.pbk


copy /y rasphone.pbk "%allusersprofile%\Application Data\Microsoft\Network\Connections\Pbk" >nul

(echo set ws=createobject("wscript.shell"^)
echo ws.run "rasphone -a"
echo wscript.sleep 500
echo ws.sendkeys "%%{r}"
echo wscript.sleep 300
echo ws.sendkeys "%%{n}"
echo wscript.sleep 300
echo ws.sendkeys "{enter}"
echo wscript.sleep 300
echo ws.run "cmd /c ncpa.cpl",0
echo wscript.sleep 1000
echo ws.sendkeys "{down}"
echo wscript.sleep 500
echo ws.sendkeys "%%{f}"
echo wscript.sleep 500
echo ws.sendkeys "{s}"
echo wscript.sleep 300
echo ws.sendkeys "{y}"
echo wscript.sleep 300
echo ws.sendkeys "%%{f4}"
echo ws.run "rasphone -d 宽带连接"
echo wscript.sleep 1000
echo ws.sendkeys "%id%"
echo wscript.sleep 300
echo ws.sendkeys "{tab}"
echo ws.sendkeys "%pw%"
echo wscript.sleep 300
echo ws.sendkeys "%%{s}"
echo wscript.sleep 300
echo ws.sendkeys "%%{c}")>网络连接.vbs
start /wait 网络连接.vbs
del /f /q rasphone.pbk 网络连接.vbs
看看则个能行吗请吧备份文件放在D盘的根目录下(D:\本机宽带密码和网卡IP.txt在网上找获取上网帐号密码并自动保存到D盘的软件
http://www.gpxz.com/softinfo/1648.html
对不起,我先发错了,应该发则里才对,请版主原谅
搜索更多相关主题的帖子: 宽带 自动

[ 本帖最后由 hy55310 于 2009-12-25 00:21 编辑 ]

TOP

这种一般会随机生成session ID的,每次提交的参数是不一样的
打开不了你的网站,没办法帮你作出静默的批处理脚本,而且也还是要VBS或者NC来提交

你可以试试用autoit 的IE函数来完成,可以很轻松做到,因为是直接操纵控件,最小化也不影响

或者就是直接在IE上保存你的帐号密码,每次打开IE,只要点个登录就行了,也废不了多少事

TOP

用VBS解决类似问题的例子:重启路由器
http://bbs.bathome.net/viewthrea ... amp;page=1#pid44425

TOP

返回列表