Skip to content

Login and Logout Script for SRUN Network | ECNU 网关登录脚本

License

Notifications You must be signed in to change notification settings

cubenlp/ecnu_net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ecnu_net

该方案已废弃,仅当练习,请直接使用信息办给的脚本。

Login and Logout Script for SRUN Network | ECNU 网关登录脚本

使用说明

安装依赖

将仓库克隆到本地

git clone https://github.com/cubenlp/ecnu_net.git

安装依赖

pip install -r requirements.txt

根据系统情况,下载 PhantomJS

wget -c https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
tar -xvf phantomjs-2.1.1-linux-x86_64.tar.bz2 && rm phantomjs-2.1.1-linux-x86_64.tar.bz2
mv phantomjs-2.1.1-linux-x86_64/ phantomjs

编辑配置文件

创建 .env 文件

cp .env.example .env

修改 .env 文件中的 USERNAMEPASSWORD 为你的学号和密码。

USERNAME=10175101234
PASSWORD=123456

运行脚本

登录校园网

./login.sh

登出校园网

./logout.sh

About

Login and Logout Script for SRUN Network | ECNU 网关登录脚本

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published