/mentohust-macos

支持macOS Monterey和Apple Silicon的mentohust华南农业大学校园网认证客户端

Primary LanguageCGNU General Public License v3.0GPL-3.0

mentohust-macos

简介

2022年03月18日 -- 加入锐捷v4算法(v4算法来自hyrathb)

1. v4算法已支持Apple Silicon

2. 新增了Service值,在华南农业大学,办公账号需要使用mentohust -S 1登录,其他账号不需要使用Service值,否则会出现“用户使用了不允许的接入方式”的提示

为了支持在华南农业大学进行认证,已将checkV4.c中computePwd函数内的buffer(unsigned char tmp[40];)由40字节改为256字节,原先的40字节不够用,会内存溢出:SCAU的账号长度为27字节,再加上计算密码用到的16字节md5就超过了40字节。

支持macOS Monterey的mentohust校园网认证客户端 修改了byte_order的内容,以支持Apple Silicon 修改了dylib的加载,以支持macOS 添加了Makefile,可用make编译 已测试可以用于华南农业大学的锐捷认证 源码来自https://github.com/hyrathb/mentohust 感谢mentohust作者的贡献,已加入github.com/hyrathb/mentohust仓库中的AUTHORS

编译

使用终端执行以下命令: git clone https://github.com/vincenttsang/mentohust-macos && cd mentohust-macos make 成功后将会产生一个mentohust可执行文件,架构与编译这个程序的Mac的架构一致

安装

sudo make install

卸载

sudo make uninstall

清理源码目录

make clean