scan_all.sh

This commit is contained in:
Adrien MALINGREY 2023-04-13 19:39:06 +02:00
parent d4af5b181f
commit fad7c6164e

View File

@ -7,7 +7,7 @@ mkdir -p "$DIR/site"
for conf in "$DIR/confs/*.yaml"
do
site="$(basename ${conf/.yaml/})"
site="basename ${conf/.yaml/}"
php "$DIR/to_xml.php" $conf > "$DIR/site/$site.xml"
php "$DIR/nmap_cmd.php" $conf | sh
mv "$DIR/scans/.~$site.xml" "$DIR/scans/$site.xml"