Skip to content

JBNRZ/srun-login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

srun-login

杭州电子科技大学校园网 Wi-Fi 登录 / 深澜(srun)校园网模拟登录

重写互联网上现存的登陆脚本,适应2024年暑假后的网络变化,支持生活区教学区的登录认证,同时支持多用户账号定时切换登录

开始使用

# 克隆项目
git clone [email protected]:JBNRZ/srun-login.git

# 安装依赖
cd srun-login && pip3 install -r requirements.txt

# 创建并编辑auth.json
cat<<EOF>auth.json
[
  {"username": "你的学号", "password": "你的密码"},
  {"username": "她的学号", "password": "她的密码"},
  {"username": "他的学号", "password": "他的密码"} 
]
EOF

# 运行
nohup python3 login.py &

配置开机自启

[Unit]
Description=srun login

[Service]
Type=simple
User=root
ExecStart=python3 /path/to/your/file.py
WorkingDirectory=/path/to/your/dir

[Install]
WantedBy=multi-user.target

License

MIT License

About

HDU srun auto login

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages