Skip to content
ChinaNet-CSU login script for OpenWrt or other low-end devices written in lua.
Lua Shell
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
cclib.lua
cclogin.lua
example.sh
json.lua

README.md

CCLogin

You should install luasocket first:

opkg install luascoket

Get your secret by enter following command to your browser address bar. Make sure you have already input your password in the password input box.

javascript:alert(RSAUtils.encryptedString(publickey, encodeURIComponent($("#userPassword").val())));void(0);

Put user.json near cclogin.lua:

{"username": "010203040506", "password": "your secret here"}

Copy all files to your router, run:

lua cclogin.lua login
lua cclogin.lua logout
You can’t perform that action at this time.