JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 13.08.2011, 10:20
feyd00
Guest
 
Posts: n/a
Default 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]]]
I run it and it worked at fist time
Still checking if it really works but I have a good feeling.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 03:41.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.