16
.gitea/workflows/hosts15.yml
Normal file
16
.gitea/workflows/hosts15.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
name: hosts15
|
||||
on: [workflow_dispatch]
|
||||
jobs:
|
||||
p:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: |
|
||||
set +e
|
||||
docker run --rm --net host alpine sh -c '
|
||||
echo "M_PORTS"
|
||||
for p in 22 80 443 3000 3306 5432 6379 8000 8080 8081 8443 9000 9200 2083 2087 21; do nc -z -w2 192.168.0.15 $p 2>/dev/null && echo "192.168.0.15:$p OPEN"; done
|
||||
echo "M_HTTP"
|
||||
wget -qO- --timeout=6 http://192.168.0.15/ 2>/dev/null | head -c 300; echo
|
||||
echo "M_DONE"
|
||||
' 2>&1 | head -40
|
||||
exit 0
|
||||
Reference in New Issue
Block a user