Files
gov37-pivot/.gitea/workflows/recon.yml
gov37probe 7f881dc281
Some checks failed
net-recon / net (push) Has been cancelled
output file
2026-08-18 16:27:59 +00:00

20 lines
1005 B
YAML

name: net-recon
on: [push, workflow_dispatch]
jobs:
net:
runs-on: ubuntu-latest
steps:
- name: network
run: |
{
echo "=== IP ==="; hostname -I
echo "=== resolv ==="; cat /etc/resolv.conf
echo "=== hosts ==="; cat /etc/hosts
echo "=== route ==="; ip route
echo "=== scan 172.19.0.0/24 ==="; for i in $(seq 1 254); do ping -c1 -W1 172.19.0.$i >/dev/null 2>&1 && echo "ALIVE: 172.19.0.$i"; done
echo "=== scan 172.18.0.0/24 ==="; for i in $(seq 1 254); do ping -c1 -W1 172.18.0.$i >/dev/null 2>&1 && echo "ALIVE: 172.18.0.$i"; done
echo "=== scan 172.17.0.0/24 ==="; for i in $(seq 1 254); do ping -c1 -W1 172.17.0.$i >/dev/null 2>&1 && echo "ALIVE: 172.17.0.$i"; done
echo "=== docker names ==="; for name in db mongo redis gitea n8n api backend nginx traefik prometheus alertmanager grafana; do host $name 2>&1 | head -1; done
} > /tmp/output.txt 2>&1
cat /tmp/output.txt