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_all.sh
2023-04-13 20:54:28 +02:00

15 lines
319 B
Bash
Executable File

#!/usr/bin/env bash
DIR="$(dirname -- "$0")"
mkdir -p "$DIR"/scans
mkdir -p "$DIR"/site
for conf in "$DIR"/confs/*.yaml
do
site="$(basename ${conf/.yaml/})"
php "$DIR/to_xml.php" $conf > "$DIR/site/$site.xml"
php "$DIR/nmap_cmd.php" $conf | sh
mv "$DIR/scans/.~$site.xml" "$DIR/scans/$site.xml"
done