Code Monkey home page Code Monkey logo

ecnu_login's Introduction

ECNU 校园网定时自动登录

version

仅适用于Linux。

校园网于 2023 年 7 月更新了登录认证方式(深澜认证计费系统v5.0.8)。

  • v1.0 使用 JS 脚本登录。
  • v2.0 使用信息办提供的登录脚本。

    若不信任该程序,可使用 v1.0 脚本。

新认证方式似乎在 20 分钟没有流量传输之后就会自动断开。

下载或者 clone 本仓库

git clone https://github.com/Discreater/ecnu_login.git

进入 ecnu_login 目录

cd ecnu_login

安装

chmod +x ./install.sh
./install.sh

根据提示输入账号密码,其中需要使用到 sudo 权限以启用定时任务自动登录,账号密码会保存在 ecnu_login目录下的 .env 文件中。

定时任务每 20 分钟检测一次,如果已经登录则不会重复登录。

ecnu_login's People

Contributors

discreater avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

j0hn50n133

ecnu_login's Issues

按照使用说明遇到报错

(base) ubuntu@ubuntu:/ecnu_internet/ecnu_login$ ls
auth_client ecnu_login.service.template ecnu_login.sh ecnu_login.timer install.sh README.md
(base) ubuntu@ubuntu:
/ecnu_internet/ecnu_login$ chmod +x ./install.sh
(base) ubuntu@ubuntu:~/ecnu_internet/ecnu_login$ ./install.sh
bash: ./install.sh: /bin/bash^M: bad interpreter: No such file or directory

在vim编辑器中,按下Esc键,然后输入以下命令来转换文件格式:
:set fileformat=unix

作者大大你可以在readme里加上我这个问和解决方法

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.