Skip to content

深澜校园网登录脚本Go语言版,适用于路由器、windows、linux等

License

Notifications You must be signed in to change notification settings

alix-lea/BitSrunLoginGo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BitSrunLoginGo

Lisense Release GoReport

深澜校园网登录脚本Go语言版。GO语言可以直接交叉编译出mips架构可执行程序(路由器)(主流平台更不用说了),从而免除安装环境。

登录逻辑来自 https://github.com/coffeehat/BIT-srun-login-script

首次运行将生成Config.json文件

Config.json说明:

{
  "from": {
    "domain": "www.msftconnecttest.com", //登录地址ip或域名
    "username": "", //账号
    "user_type": "cmcc", //运营商类型,详情看下方
    "password": "" //密码
  },
  "meta": { //登录参数
    "n": "200",
    "type": "1",
    "acid": "5",
    "enc": "srun_bx1"
  },
  "settings": {
    "quit_if_net_ok": false, //登陆前是否检查网络
    "demo_mode": false, //测试模式,报错更详细,且生成运行日志与错误日志
    "dns": "1.2.4.8", //检查网络用的DNS地址,建议设为网关分发的内网DNS地址
    "guardian": 0, //守护网络,值为网络检查周期(秒),设为0关闭守护
    "daemon": false, //将守护挂入后台
    "force_guardian_even_failed": false //若为false,首次认证失败后不会进入守护
  }
}

登录参数从原网页登陆时对/srun_portal的请求抓取

运营商类型在原网页会被自动附加在账号后,请把@后面的部分填入user_type

About

深澜校园网登录脚本Go语言版,适用于路由器、windows、linux等

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%