commit
This commit is contained in:
parent
0439aecb98
commit
12a0a5ac93
@ -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>
|
||||
|
@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user