Skip to content

Commit

Permalink
Merge pull request honze-net#9 from honze-net/Dev
Browse files Browse the repository at this point in the history
Added "OS Detection"
  • Loading branch information
honze-net authored Feb 13, 2020
2 parents 230e8c2 + e6b196e commit 7932844
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions nmap-bootstrap.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,19 @@ Andreas Hontzia (@honze_net)
<h5><xsl:value-of select="@id"/></h5>
<pre style="white-space:pre-wrap; word-wrap:break-word;"><xsl:value-of select="@output"/></pre>
</xsl:for-each>
<xsl:if test="count(os/osmatch) > 0">
<h4>OS Detection</h4>
<xsl:for-each select="os/osmatch">
<h5>OS details: <xsl:value-of select="@name"/> (<xsl:value-of select="@accuracy"/>%)</h5>
<xsl:for-each select="osclass">
Device type: <xsl:value-of select="@type"/><br/>
Running: <xsl:value-of select="@vendor"/><xsl:text> </xsl:text><xsl:value-of select="@osfamily"/><xsl:text> </xsl:text><xsl:value-of select="@osgen"/> (<xsl:value-of select="@accuracy"/>%)<br/>
OS CPE: <a><xsl:attribute name="href">https://nvd.nist.gov/vuln/search/results?form_type=Advanced&amp;cves=on&amp;cpe_version=<xsl:value-of select="cpe"/></xsl:attribute><xsl:value-of select="cpe"/></a>
<br/>
</xsl:for-each>
<br/>
</xsl:for-each>
</xsl:if>
</div>
</div>
</xsl:for-each>
Expand Down

0 comments on commit 7932844

Please sign in to comment.