Skip to content

Small utility to shutdown a Netgear ReadyNAS using browser automation

License

Notifications You must be signed in to change notification settings

sigg3/shutdown_readynas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Languages