View Single Post
  #73  
Old 05.09.2017, 06:48
patiferoolz patiferoolz is offline
Modem User
 
Join Date: Jun 2015
Posts: 2
Default

Working reconnect script for Askey RTF3507VW-N1 - Vivo Fibra Brasil

Uses PPPoE reconfig instead of reboot, which is much faster.

Default login and password should be support/password (advanced config)

Spoiler:

[[[HSRC]]]
[[[STEP]]]
[[[REQUEST]]]
GET /padrao HTTP/1.1
Host: %%%routerip%%%
Cookie: %%%Set-Cookie%%%
[[[/REQUEST]]]
[[[/STEP]]]

[[[STEP]]]
[[[REQUEST]]]
POST /webClient/login.cgi HTTP/1.1
Host: %%%routerip%%%
Referer:%%%routerip%%%/padrao
Cookie: %%%Set-Cookie%%%

loginUsername=%%%login%%%&loginPassword=%%%password%%%
[[[/REQUEST]]]
[[[/STEP]]]


[[[STEP]]]
[[[REQUEST]]]
GET /wanL3Edit.cmd?serviceId=1&wanIfName=ppp0.1&ntwkPrtcl=0 HTTP/1.1
Host: %%%routerip%%%
Referer:%%%routerip%%%/webClient/login.cgi
Cookie: %%%Set-Cookie%%%
[[[/REQUEST]]]
[[[PARSE]]]
key:sessionKey='(\d+)'
[[[/PARSE]]]
[[[/STEP]]]

[[[STEP]]]
[[[REQUEST]]]
GET /ntwksum2.cgi?pppUserName=cliente@cliente&pppPassword=cliente&enblOnDemand=0&pppTimeOut=0&useStaticIp Address=0&pppLocalIpAddress=0.0.0.0&pppIpExtension=0&enblFirewall=1&enblNat=1&enblFullcone=0&pppAuth Method=0&pppServerName=%%%key%%%&pppAuthErrorRetry=0&enblPppDebug=0&pppToBridge=0&enblIgmp=0&noMcast VlanFilter=0&enblIgmpMcastSource=0&wanAddr6Type=DHCP&unnumberedModel=0&dhcp6cForAddr=0&dhcp6cForPd=1 &enblMld=0&enblMldMcastSource=0&pcpMode=0&vlanMuxId=10&vlanMuxPr=0&vlanTpid=33024&enblIpVer=1&sessio nKey=%%%key%%% HTTP/1.1
Host: %%%routerip%%%
Referer:%%%routerip%%%/wanL3Edit.cmd
Cookie: %%%Set-Cookie%%%
[[[/REQUEST]]]
[[[PARSE]]]
keydois:sessionKey=(\d+)
[[[/PARSE]]]
[[[/STEP]]]

[[[STEP]]]
[[[REQUEST]]]
GET /wancfg.cmd?action=modify&sessionKey=%%%keydois%%% HTTP/1.1
Host: %%%routerip%%%
Referer:%%%routerip%%%/ntwksum2.cgi
Cookie: %%%Set-Cookie%%%
[[[/REQUEST]]]
[[[/STEP]]]

[[[/HSRC]]]
Reply With Quote