diff --git a/port.sh b/port.sh index 9c848ec..179486d 100644 --- a/port.sh +++ b/port.sh @@ -9,7 +9,7 @@ result0='打开'; result1='关闭' TOKEN=$(wget -qO- https://tcp$STACK.ping.pe/$ip | grep 'document.cookie' | sed "s/.*document.cookie=\"\([^;]\{1,\}\).*/\1/g") STREAM_ID=$(wget -qO- --header="cookie: $TOKEN" https://tcp$STACK.ping.pe/$ip | grep 'stream_id =' | cut -d \' -f2) -sleep 10 +sleep 20 ALL=$(wget -qO- --header="cookie: $TOKEN" https://tcp$STACK.ping.pe/ajax_getPingResults_v2.php?stream_id=$STREAM_ID) AREA=($(echo $ALL | python3 -m json.tool | grep CN_ | cut -d \" -f4)) RESULT=($(echo $ALL | python3 -m json.tool | grep -A 2 CN_ | grep result | sed "s#[\":, ]##g"))