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.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"