GithubHelp home page GithubHelp logo

seas0 / hust-network-login Goto Github PK

View Code? Open in Web Editor NEW

This project forked from black-binary/hust-network-login

0.0 0.0 0.0 15 KB

为嵌入式设备设计的最小化华中科技大学校园网络认证工具

License: MIT License

Rust 82.22% Makefile 17.78%

hust-network-login's Introduction

HUST-Network-Login

极简主义的华中科技大学校园网络认证工具,支持有线和无线网络。下载即用,大小约为 400k,静态链接无依赖。为路由器等嵌入式设备开发,支持所有主流硬件软件平台。No Python, No Dependencies, No Bullshit.

使用

从 Release 下载对应硬件和操作系统平台的可执行文件。

配置文件只有两行, 第一行为用户名,第二行为密码,例如

M2020123123
mypasswordmypassword

保存为 my.conf

然后运行

./hust-network-login ./my.conf

my.conf 是刚才的配置文件,你可以换成其他名字。

连接成功后,程序将会每间隔 15s 测试一次网络连通性。如果无法连接则进行重新登陆。

编译

编译本地平台只需要使用 cargo

cargo build --release
strip ./target/release/hust-network-login

strip 可以去除调试符号表,将体积减少到 500k 以下。

交叉编译推荐使用 cross,当然你也可以自己手动配置工具链。

cargo install cross
cross build --release --target mips-unknown-linux-musl
mips-linux-gnu-strip ./target/mips-unknown-linux-musl/release/hust-network-login

你应当根据自己的路由器平台选择硬件平台。支持的目标平台戳这里

hust-network-login's People

Contributors

black-binary avatar earthcompass avatar ihopenot 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.