change yaml format

This commit is contained in:
adrien committed 2023-04-28 04:39:52 +02:00
1 parent 3d1a0ac214
commit 88edeee596
15 files changed
+483 -56

No files matched your search

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