校园网登陆http的网页学号密码验证联网的wifi(无网线)

XiaLei 2026-07-17 16:46 1

这种可以用路由器openwrt吗?

之前学校有网线,现在这个只有wifi

最新回复 (18)
  • 快乐的出帆 07-17 16:47
    1

    校园网+🪜=自首

  • isyv 07-17 16:48
    2

    可以的

  • XiaLei 楼主 07-17 16:48
    3

    @快乐的出帆 #1 计算机专业 有啥办法?

  • Nebulas 07-17 16:48
    4

    可以 他会绑定 Mac 地址

    有两种方法,第一用插件,有锐捷 城市热点等等的自动化插件

    第二是手机开虚拟 mac 地址然后认证完openwrt修改连接的 mac 地址就行


    只需要 wifi 界面点扫描就可以,注意 Client 和 master 有些固件要在同一个频段,有时候不会自动切换告知 WiFi 无了

  • XiaLei 楼主 07-17 16:49
    5

    @isyv #2 有类似的 GitHub项目吗?希望能推荐一下

  • happyfool 07-17 16:49
    6

    问学长啊, ^-^

  • kaf 07-17 16:49
    7

    @快乐的出帆 #1 不信

  • Nebulas 07-17 16:49
    8

    @快乐的出帆 #1 看学校,大部分学校有审计但是不会管的

  • katorly 07-17 16:53
    9

    openwrt路由器可以作为client,连接wifi,然后同时作为host,供你的设备连接,连接上之后再登录你说的网页去验证

  • GeminiBot 07-17 16:56
    10

    @快乐的出帆 #1 没在学校待过吗,大学里爬墙比例最高的

  • 快乐的出帆 07-17 16:58
    11

    @GeminiBot #10 看管不管而已,一抓一个准 ^-^

  • mmys0301 07-17 17:00
    12

    可以 openwrt做旁路由

  • veon 07-17 17:01
    13

    深澜的话可以用bitsrun,其他的就不知道了。不过你可以让gpt什么的帮你抓一下包写个脚本

  • GeminiBot 07-17 17:02
    14

    @快乐的出帆 #11 这么说就没意思了哦,我说实际现象,你说规则,要是那么严格咱俩都不应该在这评论,都得抓起来呢

  • haoge101 07-17 17:03
    15
    #!/bin/bash

    # ==========================
    # ePortal 自动登录脚本
    # ==========================

    # 用户配置
    USERID="800008585"
    PASSWORD="15838"

    # 登录接口地址
    LOGIN_URL="http://10.10.10.249/eportal/InterFace.do?method=login"

    # 检测地址
    CHECK_URL="http://www.google.cn/generate_204"

    # Referer
    REFERER="http://xx.com"

    # ==========================
    # 检测网络
    # ==========================

    CAPTIVE_RETURN_CODE=$(curl -s -I -m 10 -o /dev/null -w "%{http_code}" "$CHECK_URL")

    if [ "$CAPTIVE_RETURN_CODE" = "204" ]; then
    echo "Network already online."
    exit 0
    fi

    echo "Captive portal detected."

    # ==========================
    # 获取登录参数
    # ==========================

    LOGIN_PAGE=$(curl -s "$CHECK_URL")

    LOGIN_PAGE_URL=$(echo "$LOGIN_PAGE" | awk -F"'" '{print $2}' | awk -F"?" '{print $2}')

    echo "QueryString: $LOGIN_PAGE_URL"

    # ==========================
    # 登录
    # ==========================

    RESULT=$(curl -s \
    -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36" \
    -e "$REFERER" \
    -b "EPORTAL_COOKIE_USERNAME=;EPORTAL_COOKIE_PASSWORD=;EPORTAL_COOKIE_SERVER=;EPORTAL_COOKIE_SERVER_NAME=;EPORTAL_AUTO_LAND=;EPORTAL_USER_GROUP=;EPORTAL_COOKIE_OPERATORPWD=;" \
    -d "userId=${USERID}&password=${PASSWORD}&service=default&queryString=${LOGIN_PAGE_URL}&operatorPwd=&operatorUserId=&validcode=&passwordEncrypt=false" \
    -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8" \
    -H "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" \
    "$LOGIN_URL"
    )

    echo "$RESULT"

    # ==========================
    # 登录结果检测
    # ==========================

    CHECK_RESULT=$(curl -s -I -m 10 -o /dev/null -w "%{http_code}" "$CHECK_URL")

    if [ "$CHECK_RESULT" = "204" ]; then
    echo "Login successful."
    else
    echo "Login failed."
    fi
  • zzttyy 07-17 17:07
    16

    不翻怎么搞学术

  • haoge101 07-17 17:07
    17

    @haoge101 #15 发布于2026/7/17 17:03:22


    #!/bin/bash

    # ==========================
    # ePortal 自动登录脚本
    # ==========================

    # 用户配置
    USERID="800008585"
    PASSWORD="15838"

    # 登录接口地址
    LOGIN_URL="http://10.10.10.249/eportal/InterFace.do?method=login"

    # 检测地址
    CHECK_URL="http://www.google.cn/generate_204"

    # Referer
    REFERER="http://xx.com"

    # ==========================
    # 检测网络
    # ==========================

    CAPTIVE_RETURN_CODE=$(curl -s -I -m 10 -o /dev/null -w "%{http_code}" "$CHECK_URL")

    if [ "$CAPTIVE_RETURN_CODE" = "204" ]; then
    echo "Network already online."
    exit 0
    fi

    echo "Captive portal detected."

    # ==========================
    # 获取登录参数
    # ==========================

    LOGIN_PAGE=$(curl -s "$CHECK_URL")

    LOGIN_PAGE_URL=$(echo "$LOGIN_PAGE" | awk -F"'" '{print $2}' | awk -F"?" '{print $2}')

    echo "QueryString: $LOGIN_PAGE_URL"

    # ==========================
    # 登录
    # ==========================

    RESULT=$(curl -s \
    -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36" \
    -e "$REFERER" \
    -b "EPORTAL_COOKIE_USERNAME=;EPORTAL_COOKIE_PASSWORD=;EPORTAL_COOKIE_SERVER=;EPORTAL_COOKIE_SERVER_NAME=;EPORTAL_AUTO_LAND=;EPORTAL_USER_GROUP=;EPORTAL_COOKIE_OPERATORPWD=;" \
    -d "userId=${USERID}&password=${PASSWORD}&service=default&queryString=${LOGIN_PAGE_URL}&operatorPwd=&operatorUserId=&validcode=&passwordEncrypt=false" \
    -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8" \
    -H "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" \
    "$LOGIN_URL"
    )

    echo "$RESULT"

    # ==========================
    # 登录结果检测
    # ==========================

    CHECK_RESULT=$(curl -s -I -m 10 -o /dev/null -w "%{http_code}" "$CHECK_URL")

    if [ "$CHECK_RESULT" = "204" ]; then
    echo "Login successful."
    else
    echo "Login failed."
    fi

    给鸡腿吧

  • XiaLei 楼主 07-17 17:31
    18

    @haoge101 #17 已给鸡腿!

* 帖子来源NodeSeek
返回