Skip to content

Reboot a Hitron Technologies CVE-30360 modem with a simple Bash script

Notifications You must be signed in to change notification settings

cretl/cve30360-reboot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

cve30360-reboot

TL;DR

Reboot a Hitron Technologies CVE-30360 cable modem with a simple Bash script.
Only Bash, curl, jq and logger are needed.

Info

With this simple Bash script you can reboot a Hitron Technologies CVE-30360 cable modem.

Script

Dependencies

Bash, curl, jq and logger. Just install with e.g. apt install bash curl jq logger

Installation

  1. Just copy the script to a file.
  2. Edit the settings part in the script.
  3. Make the file executeable (e.g., with chmod +x).
  4. Run the script: ./reboot_cve30360_modem.sh

Configuration

The variables PATH, modemIp, loginUsername and loginPassword need to be adjusted.
With the variables dryRunScript, debugMode and debugMessageSyslogMode script modes can be controlled.

Script actions

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.

Important notes

  • 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).

About

Reboot a Hitron Technologies CVE-30360 modem with a simple Bash script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages