@ritou11/thunet-reg

0.3.3 • Public • Published

清华校园网自动认证工具

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

Readme

Keywords

none

Package Sidebar

Install

npm i @ritou11/thunet-reg

Weekly Downloads

1

Version

0.3.3

License

MIT

Unpacked Size

18.7 kB

Total Files

13

Last publish

Collaborators

  • ritou11