Skip to content

bigbugcc/SrunLogin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SrunLogin-云师大版

starsstars

issues

Lisense

Release

🎨声明

​ 作者不鼓励任何违规违纪行为,秉持着互联网的开放平等共享原则,此项目只为方便有这样需求的用户,支持在LinuxWindowsMacosRouter上使用校园网提供的便捷服务,在享受便捷服务的同时请遵守相关法律法规,一切后果自负。重申:不鼓励任何违规违纪行为!!!

📌使用

配置文件参数说明(必看):

除上网账号密码外其它参数建议保持默认即可。

form:
  domain: netlogin.ynnu.edu.cn
  username: "191230320xxxxxx"    #学号
  password: "xxxxxxx"			 #密码

# 基础认证参数(保持默认就可)
meta: 
  "n": "200"
  type: "1"
  acid: "1"
  enc: srun_bx1
settings:
  basic:
    https: true		# 访问协议
    skip_cert_verify: false
    timeout: 5
    interfaces: ""
    skip_net_check: false
    net_check_url: https://www.baidu.com/
  guardian: 		# 守护模式
    enable: false
    duration: 300
  daemon:			# 后台模式
    enable: false
    path: .srun
  debug:			# 日志信息
    enable: false
    write_log: false
    log_path: ./

下载可执行程序

Linux(amd64):

chmod +x ./SrunLogin

# 首次执行会自动生成配置文件config.yaml
./SrunLogin

# 指定配置文件
./SrunLogin --config=./config.yaml

Windows(amd64):

# 建议使用powershell
./SrunLogin

# 指定配置文件
./SrunLogin --config=./config.yaml

在此抛砖引玉,运行其他系统以及架构的操作步骤类似。

⏰注意

在无线路由器上运行请找到适合自己路由器架构mips64/mips的二进制文件上传到路由器即可。

🛠️构建

Windows环境编译(golang=1.17):

# windows版本
go build main.go

交叉编译:

# linux-amd64
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build main.go

# darwin-amd64
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build main.go

# linux-mips
CGO_ENABLED=0 GOOS=linux GOARCH=mips go build main.go

🎉鸣谢

项目参考:https://github.com/Mmx233/BitSrunLoginGo

登录算法: https://github.com/coffeehat/BIT-srun-login-script

About

云南师范大学校园网认证

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published