找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1126|回复: 6

HustWebAuth 锐捷 WEB 认证跨平台工具

[复制链接]
本帖最后由 a76yyyy 于 2022-11-27 11:16 编辑

HustWebAuth

锐捷 WEB 认证跨平台工具

Github 地址

https://github.com/a76yyyy/HustWebAuth

Web认证

当前很多学校使用了锐捷 Web 认证的方式来实现校园内有线网和无线网的网络认证和登录。

锐捷 Web 认证是一种对用户访问网络的权限进行控制的身份认证方法,这种认证方法不需要用户安装专用的客户端认证软件,使用普通的浏览器访问就可以进行身份认证。

未认证用户使用浏览器上网时,网络设备会强制浏览器访问特定站点,也就是Web认证服务器,通常称为Portal服务器。当用户需要访问认证服务器以外的其它网络资源时,就必须通过浏览器在Portal服务器上进行身份认证,只有认证通过后才可以使用网络资源。参考:Web认证概述

锐捷 WEB 认证跨平台工具的目的是方便用户使用 Linux 或配置 OpenWrt 路由器时,在不打开浏览器的前提下,通过命令行直接实现 Web 认证

使用方法

1. 安装
    方式一: 使用 `go install` 命令安装
  1. go install github.com/a76yyyy/HustWebAuth@latest
复制代码

    方式二: 下载 `release` 可执行文件
   
  • 下载指定架构的[可执行文件](https://github.com/a76yyyy/HustWebAuth/releases)
  • 重命名可执行文件为 `HustWebAuth` 或 `HustWebAuth.exe`
  • 将文件权限修改为可执行权限, 如 `chmod +x HustWebAuth`
  • (建议) 将可执行文件移动到 `/usr/local/bin`目录下 或 添加到`Path`环境变量中


2. 命令行运行 `HustWebAuth -h` 查看帮助
3. 命令行运行 `HustWebAuth -a account -p password` 进行认证

    Tips:
  •     请确保你的账号密码正确
  •     请确保你的网络连接正常, 且使用锐捷 Web 认证方式
  •     可使用 `HustWebAuth -a account -p password -o` 进行认证并保存配置文件至 `$HOME` 文件夹下
  •     可使用 `HustWebAuth login -r` 开启无感认证, 需提前下线你的设备

Help 命令

  1. > HustWebAuth -h
  2. HustWebAuth is a program used to implement Ruijie web authentication.

  3. Usage:
  4.   HustWebAuth [flags]
  5.   HustWebAuth [command]

  6. Available Commands:
  7.   get         Get the login url from the redirect url.
  8.   help        Help about any command
  9.   login       Hust web auth only once

  10. Flags:
  11.   -a, --account string           Account for ruijie web authentication
  12.   -f, --config string            Config file (default is $HOME/HustWebAuth.yaml)
  13.   -c, --cycle                    Enable cycle mode
  14.       --cycleDuration duration   Cycle duration (default 5m0s)
  15.       --cycleRetry int           Cycle retry times, -1 means retry forever (default 3)
  16.   -d, --daemon                   Enable daemon mode, not support windows
  17.       --daemonPidFile string     Daemon pid file
  18.   -h, --help                     help for main.exe
  19.       --logAppend                Log file append mode.
  20.                                  NOTE: if logRandom is true, it will be ignored (default true)
  21.       --logConnected             Enable logging of "The network is connected" (default true)
  22.       --logDir string            Log Directory (default Temp/HustWebAuth)
  23.   -l, --logFile string           Log file name (default means output to os.stdout)
  24.       --logRandom                Log file name with random string.
  25.                                  NOTE: If logFile includes a "*", the random string replaces the last "*".
  26.                                   (default true)
  27.   -p, --password string          Password for ruijie web authentication
  28.       --pingCount int            ping count (default 3)
  29.       --pingIP string            IP address to ping (default "202.114.0.131")
  30.       --pingPrivilege            Sets the type of ping pinger will send.
  31.                                  false means pinger will send an "unprivileged" UDP ping.
  32.                                  true means pinger will send a "privileged" raw ICMP ping.
  33.                                  NOTE: setting to true requires that it be run with super-user privileges.
  34.                                   (default true)
  35.       --pingTimeout duration     Ping timeout (default 3s)
  36.       --redirectURL string       Redirect URL (default "http://123.123.123.123")
  37.   -o, --save                     Save config file
  38.   -s, --service string           Service, options: [internet, local] (default "internet")
  39.       --syslog                   Enable syslog, not support windows

  40. Use "HustWebAuth [command] --help" for more information about a command.
复制代码


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
认证通过后 mac设备不再验证,可以路由器克隆mac用

点评

直接在路由器终端上执行这个程序就可以  详情 回复 发表于 2022-11-27 23:02
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
qfnuzlr 发表于 2022-11-27 11:48
认证通过后 mac设备不再验证,可以路由器克隆mac用

直接在路由器终端上执行这个程序就可以
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

openwrt路由器怎么用?能否给个教程?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

大佬~可否出个OpenWrt的使用教程啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
稻草人先生 发表于 2023-4-12 10:34
大佬~可否出个OpenWrt的使用教程啊

很简单的,直接用命令安装服务就好了,我有时间出个教程吧

点评

大佬可否出个教程  详情 回复 发表于 2023-9-5 00:56
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

a76yyyy 发表于 2023-4-26 23:56
很简单的,直接用命令安装服务就好了,我有时间出个教程吧

大佬可否出个教程
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-27 06:05

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表