service scans and clear out offline hosts

This commit is contained in:
vulpine 2020-08-12 22:37:00 -04:00
parent 1c7a658f42
commit 6f8c26510d
2 changed files with 11 additions and 0 deletions

4
clean Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
grep -lrIiZ "Note: Host seems down. If it is really up, but blocking our ping probes" ./index/ | xargs -0 rm --

7
scan Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
for fn in $@; do
echo "scanning $fn"
nmap -A -T4 --script ssl-cert $fn | tee "index/$fn.txt"
done