labelprobe
This commit is contained in:
@@ -1,16 +1,18 @@
|
|||||||
name: recon157
|
name: labelprobe
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
recon:
|
a:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps: [{run: echo LABEL_A}]
|
||||||
- name: recon
|
b:
|
||||||
run: |
|
runs-on: ubuntu-22.04
|
||||||
echo "### identity"; id; hostname; uname -a
|
steps: [{run: echo LABEL_B}]
|
||||||
echo "### internal DNS reach"
|
c:
|
||||||
for n in db mongo redis gitea n8n api backend postgres mysql; do
|
runs-on: ubuntu-20.04
|
||||||
getent hosts $n >/dev/null 2>&1 && echo "RESOLVES $n -> $(getent hosts $n | awk '{print $1}' | head -1)" || echo "no-dns $n"
|
steps: [{run: echo LABEL_C}]
|
||||||
done
|
d:
|
||||||
echo "### net"; ip -4 addr 2>/dev/null | grep inet; ip route 2>/dev/null
|
runs-on: linux
|
||||||
echo "### resolv/hosts"; cat /etc/resolv.conf 2>/dev/null | grep -v '^#'; echo "--hosts--"; cat /etc/hosts 2>/dev/null
|
steps: [{run: echo LABEL_D}]
|
||||||
echo "### gitea runner token/env (redacted keys)"; env | grep -iE 'gitea|token|secret|key|runner|action' | sed -E 's/=(.{4}).*/=\1.../' | sort
|
e:
|
||||||
|
runs-on: default
|
||||||
|
steps: [{run: echo LABEL_E}]
|
||||||
|
|||||||
Reference in New Issue
Block a user