Reboot a Hitron Technologies CVE-30360 cable modem with a simple Bash script.
Only Bash, curl, jq and logger are needed.
With this simple Bash script you can reboot a Hitron Technologies CVE-30360 cable modem.
Bash, curl, jq and logger.
Just install with e.g. apt install bash curl jq logger
- Just copy the script to a file.
- Edit the settings part in the script.
- Make the file executeable (e.g., with
chmod +x). - Run the script:
./reboot_cve30360_modem.sh
The variables PATH, modemIp, loginUsername and loginPassword need to be adjusted.
With the variables dryRunScript, debugMode and debugMessageSyslogMode script modes can be controlled.
The script uses the web interface of the modem to login and issue a reboot command.
With the dryRunScript variable you can control the behavior of the script to just logout instead of rebooting for testing the script.
- After logging in and while a user session is active the modem blocks any other login attempt. You must successfully log out to be able to login again.
- If you fail to successfully logout, you must either restart (powercycle) the modem or wait for the session timeout (about 5 minutes).