This commit is contained in:
Adrien MALINGREY 2023-04-12 18:41:45 +02:00
parent 0439aecb98
commit 12a0a5ac93
2 changed files with 2 additions and 3 deletions

View File

@ -142,7 +142,7 @@
<xsl:text> </xsl:text>
<xsl:value-of select="$scannedPort/state/@state"/>
<xsl:if test="$scannedPort/script[@id='http-get']/elem[@key='status-line']">
<xsl:text> HTTP Statut </xsl:text>
<xsl:text> </xsl:text>
<xsl:value-of select="$scannedPort/script[@id='http-get']/elem[@key='status-line']"/>
</xsl:if>
</xsl:variable>

View File

@ -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");
}