So I have the following code in bash script
#!/bin/bash
response=$(curl http://94.237.63.201:55231 -i)
echo "response : $response"
echo " --------- getting hash -----------"
teste=$(echo "$response" | grep h3 |column -t | awk '{print $6, $NF}' | cut -d">" -f2 | cut -d "<" -f1)
stringToHash=$(echo -n $teste | md5sum | cut -d"-" -f1)
echo "hash: $stringToHash"
echo "-------- getting cookie ----------"
cookie=$(echo -n $response | grep 'PHPSESSID' |cut -d"=" -f2 |cut -d";" -f1)
echo "cookie: $cookie"
echo "-----------doing post------------"
curl -X POST -H "Cookie: PHPSESSID=$cookie" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data "hash=$stringToHash" http://94.237.63.201:55231/
after running it I always get the message “too slow”. I m certain that the cookie is always updated and the hash is correct by comparing it to online MD5 converters. Is it really so slow that I’ll need to do it in other language ?
Any advice?