View Single Post
  #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