diff --git a/results.xsl b/results.xsl index ec52bb4..09d5226 100644 --- a/results.xsl +++ b/results.xsl @@ -142,7 +142,7 @@ - HTTP Statut + diff --git a/scan_all.php b/scan_all.php index 6ca78ac..f7da1a6 100644 --- a/scan_all.php +++ b/scan_all.php @@ -49,8 +49,7 @@ XML $targets = join(array_keys($targets), " "); $services = join(array_keys($services), ","); - exec("nmap -v -Pn -p $services --script smb-enum-shares,'$__DIR__/nmap' -oX '$__DIR__/scans/tmp.xml' $targets"); - rename("$__DIR__/scans/tmp.xml", "$__DIR__/scans/$site.xml"); + `nmap -v -Pn -p $services --script smb-enum-shares,'$__DIR__/nmap' -oX '$__DIR__/scans/tmp.xml' $targets && mv '$__DIR__/scans/tmp.xml' '$__DIR__/scans/$site.xml'`; $xml->asXML("$__DIR__/site/$site.xml"); }