From ecef79447f55258379bd3a803a0a9aa7baef95c9 Mon Sep 17 00:00:00 2001 From: Sense T Date: Sat, 1 Mar 2025 19:19:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=AE=8C=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qzsec/access-client/access-client | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/qzsec/access-client/access-client b/qzsec/access-client/access-client index a68e211..93683d9 100644 --- a/qzsec/access-client/access-client +++ b/qzsec/access-client/access-client @@ -3,21 +3,26 @@ URL="$1" if [ "$URL" == "" ]; then - echo "Usage: $0 accessclient://" + echo "Usage: $0 accessclient://" sleep 5 exit 1 fi -if [ ! "$URL" == "accessclient://"* ]; then - echo "Invalid URL, should be accessclient://" +if [ "$URL" == "accessclient://" ]; then + echo "Invalid URL" sleep 5 exit 1 fi +if [[ "$URL" != "accessclient://"* ]]; then + echo "Invalid URL" + sleep 5 + exit 1 +fi ARGS=$(echo $URL | sed 's|accessclient://||' | base64 -d | minideflate -d ) -APP=$(echo $ARGS | jq -r.app) +APP=$(echo $ARGS | jq -r .app) if [ "$APP" != "putty" ]; then echo "Unsupported app, should be putty." sleep 5