From b3aa55c9b4f9be8029a9f21346d46ea8a6923aad Mon Sep 17 00:00:00 2001 From: adrien Date: Tue, 11 Apr 2023 01:43:48 +0200 Subject: [PATCH] inverse --- scan_all.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scan_all.php b/scan_all.php index 4821dd5..06b4ca7 100644 --- a/scan_all.php +++ b/scan_all.php @@ -42,12 +42,13 @@ foreach (scandir("./confs/") as $file) { } } } - $xml->asXML("site/$site.xml"); $targets = join(array_keys($targets), " "); $services = join(array_keys($services), ","); exec("nmap -v -Pn -p $services --script smb-enum-shares.nse,./http-get.nse,./http-favicon-url.nse --script-args=httpspider.maxpagecount=1 -oX 'scans/$site.xml' $targets\n"); + + $xml->asXML("site/$site.xml"); } };