Giter Site home page Giter Site logo

r7000-restart's Introduction

Netgear R7000 remote restart

There is no options in the "genie" GUI to program router restart, unlike TP-Link.

This script goal is to force the router to restart using the GUI foms.

Then you may set a cron task to remotely restart your routeur from another computer (A PI for example).

Principles

This scripts uses 4 steps to complete the restart :

  • Retrieve the XSRF token from GUI root page
  • Get the root page. This is a requirement to "connect" to the router
  • Retrieve a dynamic id from the "advanced options" page
  • Post a form with the correct option (buttonSelect=2) to request the routeur reboot

All those steps require basic auth with base 64 encoding.

Config

Edit the script and update the following values :

  • AUTH : Set your routeur admin:password credentials, using base 64 encoding (use https://wtools.io/base64-encode-decode-online if necessary)
  • R7000_IP : Set your routeur IP, usually 192.168.1.1 or 192.168.0.1
  • LOG : Set a log path

The LOG is quite basic and outputs entire pages for debug purposes.

It could be easily removed or modified to suit your needs.

r7000-restart's People

Contributors

kemkem avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.