#1
|
|||
|
|||
Linksys WAG320N 1.00.12 reconnection script
Hi,
I have been trying to create/reuse(Linksys WAG320N ITA V1.00.08 AnnexA) a reconnection script for the Linksys WAG320N but after some time always failed. I realized that the problem was the SID, so I created this other script: Code:
[[[HSRC]]] [[[STEP]]] [[[REQUEST]]] GET / HTTP/1.1 Host: %%%routerip%%% Authorization: Basic %%%basicauth%%% [[[/REQUEST]]] [[[/STEP]]] [[[STEP]]] [[[REQUEST]]] GET /setup.cgi?next_file=Setup.htm HTTP/1.1 Host: %%%routerip%%% Authorization: Basic %%%basicauth%%% [[[/REQUEST]]] [[[/STEP]]] [[[STEP]]] [[[REQUEST]]] GET /setup.cgi?next_file=Status.htm HTTP/1.1 Host: %%%routerip%%% Authorization: Basic %%%basicauth%%% [[[/REQUEST]]] [[[PARSE]]] num:SID.*?value=\"(\d+) [[[/PARSE]]] [[[/STEP]]] [[[STEP]]] [[[REQUEST]]] POST /setup.cgi HTTP/1.1 Host: %%%routerip%%% Authorization: Basic %%%basicauth%%% ctype=pppoe&ifstatus=Up&todo=disconnect&this_file=Status.htm&next_file=Status.htm&SID=%%%num%%%&message= [[[/REQUEST]]] [[[/STEP]]] [[[STEP]]][[[WAIT seconds="10"/]]][[[/STEP]]] [[[STEP]]] [[[REQUEST]]] GET /setup.cgi?next_file=Status.htm HTTP/1.1 Host: %%%routerip%%% Authorization: Basic %%%basicauth%%% [[[/REQUEST]]] [[[STEP]]] [[[REQUEST]]] GET /setup.cgi?next_file=Status.htm HTTP/1.1 Host: %%%routerip%%% Authorization: Basic %%%basicauth%%% [[[/REQUEST]]] [[[PARSE]]] num:SID.*?value=\"(\d+) [[[/PARSE]]] [[[/STEP]]] [[[/STEP]]] [[[STEP]]] [[[REQUEST]]] POST /setup.cgi HTTP/1.1 Host: %%%routerip%%% Authorization: Basic %%%basicauth%%% ctype=pppoe&ifstatus=Down&todo=connect&this_file=Status.htm&next_file=Status.htm&SID=%%%num%%%&message= [[[/REQUEST]]] [[[/STEP]]] [[[STEP]]] [[[REQUEST]]] GET /setup.cgi?next_file=Status.htm HTTP/1.1 Host: %%%routerip%%% Authorization: Basic %%%basicauth%%% [[[/REQUEST]]] [[[/STEP]]] [[[/HSRC]]] Still checking if it really works but I have a good feeling. |
Thread Tools | |
Display Modes | |
|
|