lanScan/scan.sh
2023-04-27 17:11:06 +02:00

8 lines
176 B
Bash
Executable File

#!/usr/bin/env bash
DIR="$(dirname -- "$0")"
conf="$1"
site="$(basename ${conf/.yaml/})"
php "$DIR/nmap_cmd.php" $conf | sh
mv "$DIR/scans/.~$site.xml" "$DIR/scans/$site.xml"