Skip to content

eugenetaranov/router_reset_dns

Repository files navigation

  1. Install python3

  2. Create virtual env:

python3 -m venv venv 
source venv/bin/activate
  1. Install dependencies:
pip3 install -r requirements.txt
  1. Install driver for chrome browser from http://chromedriver.chromium.org/downloads

  2. Create a csv file with routers data:

192.168.0.1;80;;;admin:admin;ZTE_ZXHN_H298A
  1. Add/Update router settings, if needed to config.yaml. It describes steps needed to login, navigate to DNS settings page and update settings.

  2. Run:

./router_reset_dns.py reset --driver-path ~/Downloads/chromedriver_mac64_m1/chromedriver --routers routers.csv --dns 8.8.8.8,1.1.1.1  --config config.yaml

Optinally, you can set --start-from which effectively skips any preceeding items in the routers file.

Docker

  1. Build
./docker_build.sh
  1. Run
./docker_run.sh -c config.yaml -r routers.csv -d 8.8.8.8,1.1.1.1

Password reset

./router_reset_dns.py reset --driver-path ~/Downloads/chromedriver --routers routers.csv --new-password 1111 --config config.yaml --start-from 0 --debug

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published