Author: Nogeek
Email: ritou11@gmail.com
-
yarn global add @ritou11/thunet-reg
ornpm i -g @ritou11/thunet-reg
-
默认配置文件
~/.thunet-reg
,格式如下:<说明 | 默认值> [可选]
{ "username": "<Username>", ["md5Password": "<Password hashed by MD5>",] ["password": "<Clear text password>",] }
- 其中md5Password仅可用于net.tsinghua的认证,使用auth.tsinghua则需要明文密码。
- 其中MD5可以在线生成。
- 命令格式如下:
thunet-reg [command]
Commands:
thunet-reg login [<ip>] Login my current IP
thunet-reg logout Logout my current IP
thunet-reg auth [<ip>] Register [current] IP with auth4
thunet-reg unauth [<ip>] Unregister [current] IP with auth4
thunet-reg keeplogin [<delay>] Keep current IP logged in by continuous
trying
thunet-reg keepauth [<delay>] Keep current IP logged in by continuous
trying
Options:
--version Show version number [boolean]
-c, --config-file Json file that contains username, md5_password and other
infomation.
[string] [default: "~/.thunet-reg"]
-u, --username Username of your Tsinghua account. [string]
-p, --password Plaintext password of your Tsinghua account. [string]
-m, --md5-password MD5 password of your Tsinghua account. [string]
--help Show help [boolean]
MIT