26 lines
1015 B
YAML
26 lines
1015 B
YAML
name: docker-enum
|
|
on: [push]
|
|
jobs:
|
|
scan:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: docker-network
|
|
run: |
|
|
echo "=== DNS lookups for Docker service names ==="
|
|
for name in db mongo mongodb mysql postgres redis gitea n8n api backend nginx proxy traefik vault consul grafana prometheus alertmanager runner act_runner drone jenkins portainer watchtower registry minio elasticsearch kibana; do
|
|
result=$(getent hosts $name 2>/dev/null | head -1)
|
|
if [ -n "$result" ]; then
|
|
echo "FOUND: $name → $result"
|
|
fi
|
|
done
|
|
echo "=== resolv.conf ==="
|
|
cat /etc/resolv.conf 2>/dev/null
|
|
echo "=== /etc/hosts ==="
|
|
cat /etc/hosts 2>/dev/null
|
|
echo "=== Network interfaces ==="
|
|
ip addr 2>/dev/null | grep -E "inet |link/" | head -10
|
|
echo "=== ARP table ==="
|
|
ip neigh 2>/dev/null | head -10
|
|
echo "=== Route ==="
|
|
ip route 2>/dev/null | head -5
|