well, this is awesome.
yesterday I tried for several hours to write a reconnect.bat.
this is the stop sniffed with live http headers:
Code:
POST /cgi-bin/cgi?req=inp&res=top_main.html STOP0=Stopp&sWebSessionnum=14&sWebSessionid=-552212992
GET /html/top_wizard_detail_blank_l.html
GET /cgi-bin/cgi?req=frm&frm=top_upper.html&WANINFO=1
GET /cgi-bin/cgi?req=frm&frm=easy-top-connecting_dummy.html&FIRST_TRY=1
GET /cgi-bin/cgi?req=frm&frm=/www/html/copyright.html
GET /html/top_wizard_detail_blank_r.html
GET /cgi-bin/cgi?req=frm&frm=easy-top-connecting.html
GET /cgi-bin/cgi?req=frm&frm=easy-top-connecting.html
GET /cgi-bin/cgi?req=frm&frm=easy-top-connecting.html
GET /cgi-bin/cgi?req=frm&frm=easy-top-connecting.html
GET /cgi-bin/cgi?req=frm&frm=easy-top-connecting.html
GET /cgi-bin/cgi?req=frm&frm=easy-top-connecting.html
this is the restart sniffed with live http headers:
Code:
POST /cgi-bin/cgi?req=inp&res=top_main.html START0=Start&sWebSessionnum=32&sWebSessionid=-1489059976
GET /html/top_wizard_detail_blank_l.html
GET /cgi-bin/cgi?req=frm&frm=top_upper.html&WANINFO=1
GET /cgi-bin/cgi?req=frm&frm=easy-top-connecting_dummy.html&FIRST_TRY=1
GET /cgi-bin/cgi?req=frm&frm=/www/html/copyright.html
GET /html/top_wizard_detail_blank_r.html
GET /cgi-bin/cgi?req=frm&frm=easy-top-connecting.html
GET /cgi-bin/cgi?req=frm&frm=easy-top-connecting.html
GET /cgi-bin/cgi?req=frm&frm=easy-top-connecting.html
GET /cgi-bin/cgi?req=frm&frm=easy-top-connecting.html
GET /cgi-bin/cgi?req=frm&frm=easy-top-connecting.html
GET /cgi-bin/cgi?req=frm&frm=easy-top-connecting.html
I will post it here, but it doesn't work completely...
Problem is that the pages are frames, and curl has problems to read those pages...
The solved problems were two ids, which I had to grep and cut out of the html in order to create the correct curl command...
Code:
@echo off
rem *********************************************************************
rem * Frame mit zwei generierten hidden Values als frame.html speichern *
rem *********************************************************************
curl -u "root:pw" "**External links are only visible to Support Staff** > frame.html
pause
rem ************************************************************
rem * Die beiden wichtigen Zeilen dabei lauten: *
rem * <input type=hidden name=sWebSessionnum value=6> *
rem * <input type=hidden name=sWebSessionid value=-1109827050> *
rem ************************************************************
rem *********************************************************************************
rem * extrahieren des Values von sWebSessionnum in die Textdatei sWebSessionnum.txt *
rem * setzen als Umgebungsvariable *
rem *********************************************************************************
type frame.html | grep "sWebSessionnum value=" | cut -d ">" -f 1 | cut -d "=" -f 4 > sWebSessionnum.txt
set /p NUM=< sWebSessionnum.txt
echo NUM = %NUM%
pause
rem *******************************************************************************
rem * extrahieren des Wertes von sWebSessionid in die Textdatei sWebSessionid.txt *
rem * setzen als Umgebungsvariable *
rem *******************************************************************************
type frame.html | grep "sWebSessionid value=" | cut -d ">" -f 1 | cut -d "=" -f 4 > sWebSessionid.txt
set /p ID=< sWebSessionid.txt
echo ID = %ID%
pause
rem ******************************************************************************************************
rem * POST /cgi-bin/cgi?req=inp&res=top_main.html STOP0=Stopp&sWebSessionnum=14&sWebSessionid=-552212992 *
rem ******************************************************************************************************
curl -u "root:pw" "**External links are only visible to Support Staff** -d "STOP0=Stopp&sWebSessionnum=%NUM%&sWebSessionid=%ID%"
curl -u "root:pw" "**External links are only visible to Support Staff**
curl -u "root:pw" "**External links are only visible to Support Staff**
curl -u "root:pw" "**External links are only visible to Support Staff**
curl -u "root:pw" "**External links are only visible to Support Staff**
curl -u "root:pw" "**External links are only visible to Support Staff**
curl -u "root:pw" "**External links are only visible to Support Staff**
pause
rem ****************************
rem * die drei Dateien löschen *
rem ****************************
rem del frame.html
rem del sWebSessionnum.txt
rem del sWebSessionid.txt
I captured the reconnect with jdownloader, well, it's a little long, but it works
Code:
[[[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 /cgi-bin/cgi?req=twz HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OnceOnly.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /cgi-bin/cgi?req=tfr&tag=tag_setup HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OnceOnly.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/top_wizard_detail_blank_l.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /cgi-bin/cgi?req=mnu&rand=1309320934 HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /cgi-bin/cgi?req=frm&frm=top_main.html&rand=1889380296 HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /cgi-bin/cgi?req=frm&frm=help_top_setup.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /cgi-bin/cgi?req=frm&frm=/www/html/copyright.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/top_wizard_detail_blank_r.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OnceOnly.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OpenHelp.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OnceOnly.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OpenHelp.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OnceOnly.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OnceOnly.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
POST /cgi-bin/cgi?req=inp&res=top_main.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
STOP1=Stopp&sWebSessionnum=58&sWebSessionid=958189568
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OnceOnly.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/top_wizard_detail_blank_l.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /cgi-bin/cgi?req=frm&frm=top_upper.html&WANINFO=1 HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /cgi-bin/cgi?req=frm&frm=easy-top-connecting_dummy.html&FIRST_TRY=1 HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /cgi-bin/cgi?req=frm&frm=/www/html/copyright.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/top_wizard_detail_blank_r.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OpenHelp.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OnceOnly.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OpenHelp.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OnceOnly.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /cgi-bin/cgi?req=frm&frm=easy-top-connecting.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OnceOnly.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /cgi-bin/cgi?req=frm&frm=easy-top-connecting.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OnceOnly.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /cgi-bin/cgi?req=frm&frm=top.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OnceOnly.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /cgi-bin/cgi?req=tfr&tag=tag_setup HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OnceOnly.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/top_wizard_detail_blank_l.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /cgi-bin/cgi?req=mnu&rand=330059412 HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /cgi-bin/cgi?req=frm&frm=top_main.html&rand=39104881 HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /cgi-bin/cgi?req=frm&frm=help_top_setup.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /cgi-bin/cgi?req=frm&frm=/www/html/copyright.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/top_wizard_detail_blank_r.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OnceOnly.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OpenHelp.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OpenHelp.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OnceOnly.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OnceOnly.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OnceOnly.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
POST /cgi-bin/cgi?req=inp&res=top_main.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
START1=Start&sWebSessionnum=6&sWebSessionid=735530120
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OnceOnly.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/top_wizard_detail_blank_l.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /cgi-bin/cgi?req=frm&frm=top_upper.html&WANINFO=1 HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /cgi-bin/cgi?req=frm&frm=easy-top-connecting_dummy.html&FIRST_TRY=1 HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /cgi-bin/cgi?req=frm&frm=/www/html/copyright.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/top_wizard_detail_blank_r.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OpenHelp.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OnceOnly.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OpenHelp.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OnceOnly.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /cgi-bin/cgi?req=frm&frm=easy-top-connecting.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OnceOnly.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /cgi-bin/cgi?req=frm&frm=easy-top-connecting.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /html/OnceOnly.html HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[/HSRC]]]