10 lines
371 B
Bash
Executable file
10 lines
371 B
Bash
Executable file
#!/bin/sh
|
|
# Random-pod sampling: any pod carrying 1.0.4 returns the PSTKOUT probe JSON on plain GET
|
|
IP=52.51.74.51
|
|
i=0
|
|
while [ $i -lt 4 ]; do
|
|
i=$((i+1))
|
|
c=$(curl -sk -m 60 -o /tmp/c6.$i -w '%{http_code}' -H 'Host: paystack.com' "https://$IP/?pstkprobe=$i" 2>/dev/null)
|
|
echo "S$i|$c|$(wc -c </tmp/c6.$i)|$(head -c 320 /tmp/c6.$i | tr '\n\r' ' ')"
|
|
done
|
|
echo CI6DONE
|