This repository has been archived on 2025-02-13. You can view files and clone it, but cannot push or open issues or pull requests.
lanScan2/scan
2023-04-28 11:15:09 +02:00

9 lines
252 B
Bash
Executable File

#!/usr/bin/env bash
export DIR="$(dirname -- "$0")"
config="$1"
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"