Skip to content

Barabama/RuijieEportal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

锐捷校园网网页认证脚本

FZU Ruijie ePortal Web Authentication Tool

提供了基于Python和Shell的脚本, 锐捷认证现在要求Post请求加密后的密码, RSA加密依赖gmp实现. Python空间需求大于40MB.

特别声明

  • 本程序仅为自动化登录脚本, 不涉及任何破解盗版信息.
  • 仅供学习交流, 严禁用于商业用途, 请于24小时内删除.
  • 禁止将本站资源进行任何形式的出售, 产生的一切后果由侵权者自负!

使用说明

Python

  • 安装Python3, 并安装依赖库requests, gmpy2
# Ubuntu
sudo apt update && sudo apt install python3 python3-pip
pip3 install requests gmpy2

# Openwrt
opkg update && opkg install python3 python3-pip python3-requests python3-gmpy2
  • 复制源码并解压
wget https://gh-proxy.com/https://github.com/Barabama/RuijieEportal/archive/refs/heads/main.zip
unzip main.zip
mv RuijieEportal-main RuijieEportal
rm main.zip
chmod -R 777 RuijieEportal
  • 手动修改src/main.py中的校园IP.
class Authenticator:
    def __init__(self):
        self.ip = "172.16.0.46"  # Change to your school's IP
  • 运行脚本
cd RujieEportal/src
# login
python main.py login -u $USER -p $PASSWORD -e -c
# logout
python main.py logout

Shell

  • 复制源码并解压
wget https://gh-proxy.com/https://github.com/Barabama/RuijieEportal/archive/refs/heads/main.zip
unzip main.zip
mv RuijieEportal-main RuijieEportal
rm main.zip
chmod -R 777 RuijieEportal
  • 手动修改src/web_hust.sh中的校园IP和加密文件路径.
# src/web_hust.sh
IP="172.16.0.46" # Change to your school's IP
ENCRYPTION="../dist/encrypt_mipsel" # Change to your encryption path
  • 运行脚本
cd RujieEportal/src
# login
bash ./web_hust.sh $USER $PASSWORD
# logout
bash ./web_hust.sh logout 

如果dist/中没有目标平台编译文件, 请自行编译, #更多详情

结果

  • Python脚本在x86(Windows/Linux)和mipsle(OpenWRT)上测均试通过.
  • Shell脚本在x86(Windows/Linux)和mipsle(OpenWRT)上测均试通过.

更多

基于OpenWRT路由器的校园网突破设备限制实践总结

参考引用

About

FZU 锐捷eportal网页认证脚本

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published