#!/bin/bash # 官网最终验收 set -u BASE=http://127.0.0.1:8080 PUB=https://relay.xxmxxs.top echo " 官网 /" curl -s --max-time 15 "$BASE/" -o /tmp/s.html 2>/dev/null echo " HTTP $(curl -s -o /dev/null -w '%{http_code}' --max-time 10 "$BASE/") $(wc -c < /tmp/s.html) 字节" echo " 管理入口: $(grep -o 'href="[^"]*"[^>]*管理入口' /tmp/s.html | head -1)" echo " 残留浅灰 #c9d1d9: $(grep -c 'c9d1d9' /tmp/s.html) 处" echo " 主文字色: $(grep -o 'color:#1f2328' /tmp/s.html | head -1)" echo " 底色: $(grep -o 'background:#ffffff' /tmp/s.html | head -1)" echo echo " 管理页 /zhingzhuanzhan" curl -s --max-time 15 "$BASE/zhingzhuanzhan" -o /tmp/l.html 2>/dev/null echo " 登录框: $(grep -c 'name=username' /tmp/l.html) 个账号框" echo " 底色: $(grep -o 'background:#ffffff' /tmp/l.html | head -1)" echo echo " 登录后管理页" KEY=$(cat /root/lanremote-relay/data/admin_key.txt 2>/dev/null) curl -s --max-time 15 -H "X-Admin: $KEY" "$BASE/zhingzhuanzhan" -o /tmp/a.html 2>/dev/null echo " 下载区: $(grep -c 'dlPanel' /tmp/a.html)" echo " 深色值残留: $(grep -c '0d1117' /tmp/a.html) 处" echo " 白色底色: $(grep -o '\-\-bg:#ffffff' /tmp/a.html | head -1)" echo echo " 公网官网" echo " HTTP $(curl -s -o /dev/null -w '%{http_code}' --max-time 40 -H 'User-Agent: LanRemote/1.4.0' "$PUB/")"