Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/krutonium/libhitron

A simple library to access and eventually change the settings on a Hitron CGN3 Modem
https://github.com/krutonium/libhitron

csharp dotnet-core dotnet-standard gcn3 hitron hitronhub isp modem rogers telus

Last synced: 13 days ago
JSON representation

A simple library to access and eventually change the settings on a Hitron CGN3 Modem

Awesome Lists containing this project

README

        

# libHitron
A simple library to access and eventually change the settings on a Hitron CGN3 Modem

In theory this should work in general for _most_ versions of the CGN3 Modem. As of time of writing, it is read only, but it can give you the following information:

All of the status information on the index page of your modem,
A your SSID's, Passwords for said, etc.
Everything you have port forwarded - Ports, IP's, Names.

To use, add the dll or project to your own project, and then do this:
```
var example = new libHitron.libHitron();
example.Connect("192.168.0.1", "cusadmin", "password"); //Default IP Address, Username, and Password. Returns True if credentials are verified, False if it is unable to verify for any reason.
```
You _MUST_ run Connect before attempting anything else, as it verifies and stores the credentials for all use afterwards.

Each call will re-authenticate against the modem, because it sets authentication cookies with very short time limits, and re-authentication is cheap and easy.