#!/bin/bash -ilex
check(){
code=$1;
openid=$2;
toopenid=$3;
start "cloudhub://$2:yzj@/autologin?eid=11475617&oid=$2&code=$1&version=1.0"
RESULT=$(curl -s http://127.0.0.1:1864/query?openid=$2&eid=11475617)
boolstr=${RESULT:10:5};
i=1;
while [ "$boolstr" = "false" ]; do
RESULT=$(curl -s "http://127.0.0.1:1864/query?openid=$2&eid=11475617");
boolstr=${RESULT:10:5};
echo $boolstr;
sleep 1s;
((i++));
if [ i == 20 ]; then
echo "登录超时";
break;
fi
done
start "cloudhub://$2:yzj@/chat?msg=&toopenid=$toopenid&version=1.0";
sleep 3s;
C:/Windows/System32/cmd.exe /C 'taskkill /f /t /fi "imagename eq CloudHub.exe"'
}
index=1;
max=100;
while [ $index -lt $max ]; do
check d3661c26069234426fca5916540f161a 5b553ca3e4b0751b86778f30 5b78d0a6e4b0f7976561873f
done
上一篇
curl 自动获取并设置代理
自动从注册表中读取代理bool CCurlHttpClient::GetAutoProxy(vector<std::string> & proxyVct) {
proxyVct.clear();
HKEY key;
2020-03-20
下一篇
C++ 读取asar中的文件
什么是asar官方说明
asar - Electron ArchiveAsar is a simple extensive archive format, it works like tar that concatenates all fi
2019-07-27