change format again

This commit is contained in:
2023-04-28 11:15:09 +02:00
parent 88edeee596
commit 7354c2158a
12 changed files with 18 additions and 353 deletions

9
scan
View File

@ -1,12 +1,9 @@
#!/usr/bin/env bash
export DIR="$(dirname -- "$0")"
echo $DIR
conf="$1"
echo $conf
config="$1"
site="$(basename ${conf/.yaml/})"
echo $site
php to_XML.php "$conf" > "$DIR/site/$site.xml"
site="$(basename ${config/.yaml/})"
php to_XML.php "$config" > "$DIR/site/$site.xml"
xsltproc nmap_cmd.xsl "$DIR/site/$site.xml" | sh
mv "$DIR/scans/$site.xml.tmp" "$DIR/scans/$site.xml"