Comments (2)
不好意思刚看到,我知道是不可以的,教学楼的登录认证与宿舍、一餐、体育训练中心的深澜认证系统似乎是不一样的。
有哪些具体差异我没有了解过~~,现在也并没有测试的机会~~,是不是同样采用深澜认证我也不清楚。
不过听说有同学在 esp8266 上实现过类似的功能,可以自己手动抓包看一下,基于 web 的登录认证应该不会很复杂。本项目后续没有支持这些场合认证的打算,但是如果你成功实现了,欢迎开源,我们可以帮你添加到 ehaut 项目中,欢迎去那边提 pr。
from srun_openwrt.
不好意思刚看到,我知道是不可以的,教学楼的登录认证与宿舍、一餐、体育训练中心的深澜认证系统似乎是不一样的。
有哪些具体差异我没有了解过~~,现在也并没有测试的机会~~,是不是同样采用深澜认证我也不清楚。
不过听说有同学在 esp8266 上实现过类似的功能,可以自己手动抓包看一下,基于 web 的登录认证应该不会很复杂。本项目后续没有支持这些场合认证的打算,但是如果你成功实现了,欢迎开源,我们可以帮你添加到 ehaut 项目中,欢迎去那边提 pr。
这是脚本
#!/bin/sh /etc/rc.common
START=95
username="" # 学号
password="" # 密码
start() {
while true
do
# 检测网络是否连通
ping -c 3 www.baidu.com > /dev/null 2>&1
if [ $? -ne 0 ]; then # $? 为上一条命令的返回值, 0 为成功, 非 0 为失败, 这里表示网络不通
# 如果网络不通, 就发送请求登录校园网
# # 如果尝试次数大于2次, 就重连网络
# if [ $count -gt 2 ]; then
# # 先断开网络, 再连接网络,这样可以保证网络连接成功,否则可能会出现连接不上的情况
# ifdown wan # 断开网络
# sleep 5 # 等待5秒, 确保网络断开
# ifup wan # 连接网络
# sleep 10 # 等待网络连接成功
# echo "已重启网络接口"
# fi
ip=`ifconfig eth0.2 | grep "inet addr" | awk '{print $2}' | awk -F: '{print $2}'`
wget -q --spider "http://172.17.255.50/v1/haut?username=$username&password=$password&ac_id=1&user_ip=$ip"
echo "网络不通, 已重新登录"
else
echo "网络正常"
fi
sleep 5 # 每5秒检测一次网络
done
}
from srun_openwrt.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from srun_openwrt.