scan_all.sh
This commit is contained in:
parent
d4af5b181f
commit
fad7c6164e
@ -7,7 +7,7 @@ mkdir -p "$DIR/site"
|
|||||||
|
|
||||||
for conf in "$DIR/confs/*.yaml"
|
for conf in "$DIR/confs/*.yaml"
|
||||||
do
|
do
|
||||||
site="$(basename ${conf/.yaml/})"
|
site="basename ${conf/.yaml/}"
|
||||||
php "$DIR/to_xml.php" $conf > "$DIR/site/$site.xml"
|
php "$DIR/to_xml.php" $conf > "$DIR/site/$site.xml"
|
||||||
php "$DIR/nmap_cmd.php" $conf | sh
|
php "$DIR/nmap_cmd.php" $conf | sh
|
||||||
mv "$DIR/scans/.~$site.xml" "$DIR/scans/$site.xml"
|
mv "$DIR/scans/.~$site.xml" "$DIR/scans/$site.xml"
|
||||||
|
Reference in New Issue
Block a user