From c2d62a5ccbb12a85497fefec48e2d4d508c40941 Mon Sep 17 00:00:00 2001 From: adrien Date: Tue, 11 Apr 2023 18:45:42 +0200 Subject: [PATCH] tmp --- scan_all.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scan_all.php b/scan_all.php index eca31f7..f8a46ee 100644 --- a/scan_all.php +++ b/scan_all.php @@ -46,7 +46,8 @@ XML $targets = join(array_keys($targets), " "); $services = join(array_keys($services), ","); - exec("nmap -v -Pn -p $services --script smb-enum-shares,./http-get.nse,./http-favicon-url.nse -oX '".__DIR__."/scans/$site.xml' $targets\n"); + exec("nmap -v -Pn -p $services --script smb-enum-shares,./http-get.nse,./http-favicon-url.nse -oX '".__DIR__."/scans/tmp.xml' $targets\n"); + rename(__DIR__."/scans/tmp.xml", __DIR__."/scans/$site.xml"); $xml->asXML(__DIR__."/site/$site.xml"); }