0.3.3 • Published 5 years ago

@ritou11/thunet-reg v0.3.3

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

清华校园网自动认证工具

npm npm GitHub last commit GitHub code size in bytes license

Author: Nogeek

Email: ritou11@gmail.com

使用方法

  1. yarn global add @ritou11/thunet-reg or npm i -g @ritou11/thunet-reg
  2. 默认配置文件 ~/.thunet-reg,格式如下:<说明 | 默认值> [可选]

    {
        "username": "<Username>",
        ["md5Password": "<Password hashed by MD5>",]
        ["password": "<Clear text password>",]
    }
  • 其中md5Password仅可用于net.tsinghua的认证,使用auth.tsinghua则需要明文密码。
  • 其中MD5可以在线生成
  1. 命令格式如下:
    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

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.0-rc.5

5 years ago

0.2.0-rc.4

6 years ago

0.2.0-rc.3

6 years ago

0.2.0-rc.2

6 years ago

0.2.0-rc.1

6 years ago

0.2.0

6 years ago