sigg3 / shutdown_readynas

Small utility to shutdown a Netgear ReadyNAS using browser automation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

shutdown_readynas

Small utility written in python3 to shutdown a running Netgear ReadyNAS using browser automation in the background (Firefox webdriver from selenium).

This utility targets old ReadyNAS units that have the RAIDiator 4.2.31 web interface (on TLS1), and there is no guarantee that the GET requests cannot be read by other LAN users. And yes, it is rather overkill. But it gets the job done.

Warning: The ReadyNAS uses a very old self-signed certificate. By default, we
wait to transmit login credentials until after a session has been established,
but there ARE NO GUARANTEES that the GET requests cannot be read on the LAN.

Usage:
    shutdown_readynas [options] <NAS IP address>

Options:
    --user=<string>      To use a different admin user. Default is 'admin'
    --password=<string>  This is bad practice. Omit to use the prompt instead.

TODO

  1. Verify that we do not send GET request in the open
  2. There are currently 2 known errors to handle: web-server cold boot (timeout) and wrong password. (This may have been resolved now, needs more testing.)
  3. Package it up in main, python style.

About

Small utility to shutdown a Netgear ReadyNAS using browser automation

License:GNU General Public License v3.0


Languages

Language:Python 100.0%