Skip to content

定时登陆清华网络的工具,基于node.js

License

Notifications You must be signed in to change notification settings

ritou11/thunet-reg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

清华校园网自动认证工具

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

About

定时登陆清华网络的工具,基于node.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published