Giter Site home page Giter Site logo

ucassrunlogingo's Introduction

UcasSrunLoginGo

国科大2021年5月11日起使用深澜校园网,本项目是一个由Go语言编写的,可以在mips架构的路由器下实现认证功能,自动登录。

支持Windows、Linux、macOS和OpenWRT,点击此处下载现有发行版。

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

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

代码fork自 https://github.com/Mmx233/BitSrunLoginGo ,北理的校园网登录脚本。

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

Config.json说明:

{
 "from": {
  "domain": "124.16.81.61", // 认证网址
  "username": "",           // 学号
  "password": ""            // 密码
 },
 "meta": {
  "n": "200",
  "v_type": "1",
  "acid": "1",              // 可以从登录请求中获得,无需修改;如果登录失败,可以自行抓包确认
  "enc": "srun_bx1"
 },
 "settings": {
  "quit_if_net_ok": false,   // 默认false,有网仍然尝试登录
  "demo_mode": false,       // 调试模式
  "dns": "1.2.4.8",         // 北京联通DNS
  "test_url": "https://t2.chei.com.cn/yz/favicon.ico"   // 用于测试是否有网的网站,务必HTTPS网站,否则会被跳转到认证网址,会被判为有网络。且无Ipv6解析,否则将正常访问。
 }
}

ucassrunlogingo's People

Contributors

risid avatar mmx233 avatar

Stargazers

 avatar Dettlaff avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.