JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 27.08.2017, 15:24
bnnnny bnnnny is offline
Modem User
 
Join Date: Jan 2015
Posts: 2
Default Netgear DGN2200v4 reconnection script broken

Hi everyone! After the last firmware update the reconnection script that used to work fine before now fails. If i use the test button under reconnection method, it warns me that it can't find the variable "cgi.id=(\d+)", which i assume to be the session id.

This is the script:

Spoiler:
[[[HSRC]]]

[[[STEP]]]
[[[REQUEST]]]
GET / HTTP/1.1
Host: %%%routerip%%%
[[[/REQUEST]]]
[[[/STEP]]]

[[[STEP]]]
[[[REQUEST]]]
GET / HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]

[[[STEP]]]
[[[REQUEST]]]
GET /RST_st_ppa.htm HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%

[[[/REQUEST]]]
[[[PARSE]]]
num:cgi.id=(\d+)
[[[/PARSE]]]
[[[/STEP]]]

[[[STEP]]]
[[[REQUEST]]]
POST /st_poa.cgi?id=%%%num%%% HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%

Disconnect=Disconnetti&ConMethod=Disconnect
[[[/REQUEST]]]
[[[/STEP]]]

[[[STEP]]]
[[[REQUEST]]]
GET /RST_st_ppa.htm HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%

[[[/REQUEST]]]
[[[PARSE]]]
num:cgi.id=(\d+)
[[[/PARSE]]]
[[[/STEP]]]

[[[STEP]]]
[[[REQUEST]]]
POST /st_poa.cgi?id=%%%num%%% HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%

Connect=Connetti&ConMethod=++Connect++
[[[/REQUEST]]]
[[[/STEP]]]

[[[/HSRC]]]


Anyone can help finding the expression to extract the session id?
Reply With Quote
  #2  
Old 06.09.2017, 16:40
bnnnny bnnnny is offline
Modem User
 
Join Date: Jan 2015
Posts: 2
Default [solved]

Ok, found the solution! If anybody is interested here it is:

The only thing I had to do was changing the following line, which appears twice in the script,

num:cgi.id=(\d+)

with this

num:cgi.id=(\w+)

Cheers!
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 15:21.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.