From fee3f2a0436b7e5b6747595d78346a6fe53513f6 Mon Sep 17 00:00:00 2001 From: adrien Date: Tue, 11 Apr 2023 11:18:27 +0200 Subject: [PATCH] fix heredoc syntax for old php --- scan_all.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/scan_all.php b/scan_all.php index 06b4ca7..de3b6a8 100644 --- a/scan_all.php +++ b/scan_all.php @@ -1,7 +1,6 @@ - - - XML); + + + +XML;); $xml->addChild("scan path='scans/$site.xml'"); foreach ($yaml as $siteName => $groups) { @@ -46,10 +45,9 @@ foreach (scandir("./confs/") as $file) { $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"); + exec("nmap -v -Pn -p $services --script smb-enum-shares,./http-get.nse,./http-favicon-url.nse -oX 'scans/$site.xml' $targets\n"); $xml->asXML("site/$site.xml"); } -}; - +} ?>