Skip to content

guzhaoyuan/net.tsinghua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

net.tsinghua CLI

What's this

This is a Command Line program writen in bash using Curl. You can use it to log in & out net.tsinghua.edu.cn

First time you use it, it will require your username and password. Then it saves the information in ~/.TsinghuaNet/netTHUservice and next time you are able to use short commands to control your status(login or logout).

Install

In one line:

sh -c "$(wget https://raw.githubusercontent.com/SuXY15/net.tsinghua/master/install.sh -q -O -)"

Or download and add excutable permission by youself:

wget https://raw.githubusercontent.com/SuXY15/net.tsinghua/master/netTHU -O /usr/local/bin/netTHU
chmod +x /usr/local/bin/netTHU

Usage

netTHU -o #log in
netTHU -d #log out
netTHU -h #help
netTHU -r #remove account info

uninstall

In one line:

sh -c "$(wget https://raw.githubusercontent.com/SuXY15/net.tsinghua/master/uninstall.sh -q -O -)"

Or remove data and script by yourself:

rm -r ~/.TsinghuaNet/netTHUservice
rm /usr/local/bin/netTHU

##TODO

  • fix small bugs, recognize error type
  • store password at other position
  • added function: check current data usage
  • write a install and uninstall script
  • encrypt the information in netTHUservice for security

About

Command Line Interface for Tsinghua Network Login

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages