This commit is contained in:
2023-05-09 15:27:40 +02:00
parent c3082c9442
commit e2e255f690
2 changed files with 4 additions and 4 deletions

6
scan
View File

@ -8,8 +8,8 @@ fi
pushd "$(dirname -- "$0")" > /dev/null
site="$(basename ${1/.yaml/})"
php "to_XML.php" "configs/$site.yaml" > "site/$site.xml"
eval $(xsltproc "nmap_cmd.xsl" "site/$site.xml")
mv "scans/$site.xml.tmp" "scans/$site.xml"
php "to_XML.php" "configs/$site.yaml" > "site/$site.xml" \
&& eval $(xsltproc "nmap_cmd.xsl" "site/$site.xml") \
&& mv "scans/$site.xml.tmp" "scans/$site.xml"
popd > /dev/null