wget router pages?

2 réponses [Dernière contribution]
GNUbahn
Hors ligne
A rejoint: 02/18/2016

I screwed up my server settings and want to reset the router totally (i.e. with a fresh install).

Before doing so, I would like to keep an exact copy of the settings as they are right now.

I was wondering if I can do that with wget?

without success I have tried using this advise (with my credentials etc.):# Log in to the server. This only needs to be done once.
wget --save-cookies cookies.txt \
--keep-session-cookies \
--post-data 'user=my_username&password=my_password' \
--delete-after \
https://192.168.10.1/ --no-check-certificate
# Now grab the page or pages we care about.
wget -r --load-cookies cookies.txt \
https://192.168.10.1/cgi-bin/luci/ --no-check-certificate
(https://stackoverflow.com/questions/1324421/how-to-get-past-the-login-page-with-wget).

The first command gives me 'cookies.txt' file with the content of:# HTTP cookie file.
# Generated by Wget on 2020-10-14 14:20:09.
# Edit at your own risk.

The second command gives me a directory called '192.168.10.1' containing an 'index.html' file which I have attached (I can not enter it here since it is html!)

Apparently, something does not work as intended.

Help is highly appreciated.

PS: My router is a Netgear WNDR3800 running LibreCMC

Fichier attachéTaille
index-screeshot.png36.87 Ko
Magic Banana

I am a member!

En ligne
A rejoint: 07/24/2010

'wget' downloads what anybody can access on your Web server, not its configuration as far as I understand.

amenex
Hors ligne
A rejoint: 01/03/2015

My provider (Verizon FIOS) says to turn it off, count to 100, and turn it back on.

The next most extreme is to see if the manufacturer recommends a hard reset, as with a paperclip.

All these recommendations strongly suggest that only a dedicated hacker can get into the ROM
where the operational codes reside.

The router's label is a good place to start ...