Import nmap's scripts results

Hi all,

Here is a little patch for nmap2mt.xsl.

It adds nodes with nmap's scripts id and results (descendants of port nodes) :

--- nmap2mt.old 2012-07-23 21:30:00.784892176 +0200
+++ nmap2mt.xsl 2012-07-23 22:43:27.930746032 +0200
@@ -105,6 +105,13 @@
</xsl:otherwise>
</xsl:choose>
</xsl:if>
+ <xsl:for-each select="script">
+ <script status="new"><xsl:value-of select="@id" />
+ <xsl:if test="@output">
+ <output status="new"><xsl:value-of select="@output" /></output>
+ </xsl:if>
+ </script>
+ </xsl:for-each>
</port>
</xsl:for-each>
</ipproto>

--
C4rt

Thanks. We will test your patch and merge it into the next release.

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
Please answer the question to prove that you are not a spammer. If it isn't working and you are not a spammer, please email us.
Fill in the blank.