⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nmap.xsl

📁 nmapp最强的扫描工具
💻 XSL
📖 第 1 页 / 共 2 页
字号:
        list-style-type : none;    }}</style>	<title>nmap report</title></head><body>	<div id="container">    <h1>nmap scan report - scan @    <xsl:call-template name="timestamp">    	<xsl:with-param name="stamp"><xsl:value-of select="$start" /></xsl:with-param>    </xsl:call-template>    </h1>    <ul id="menu">    	<li><a href="#scansummary">scan summary</a></li>    	<li><a href="#scaninfo">scan info</a></li>      <xsl:for-each select="host">      <li>        <xsl:element name="a">            <xsl:attribute name="href">#<xsl:value-of select="translate(address/@addr, '.', '_') " /></xsl:attribute>            <xsl:attribute name="target">_self</xsl:attribute>            <xsl:value-of select="address/@addr"/>        </xsl:element>      </li>      </xsl:for-each>        	<li><a href="#runstats">runstats</a></li>    </ul>	<xsl:element name="a">		<xsl:attribute name="name">scansummary</xsl:attribute>	</xsl:element>    <h2>scan summary</h2>    <p>	<xsl:value-of select="@scanner"/> was initiated at	<xsl:call-template name="timestamp">    	<xsl:with-param name="stamp"><xsl:value-of select="$start" /></xsl:with-param>    </xsl:call-template> with these arguments:<br/>    <i><xsl:value-of select="@args" /></i><br/>    The process stopped at	<xsl:call-template name="timestamp">    	<xsl:with-param name="stamp"><xsl:value-of select="$end" /></xsl:with-param>    </xsl:call-template>.	<xsl:choose>        <xsl:when test="debugging/@level = '0'">Debugging was disabled, </xsl:when>        <xsl:otherwise>Debugging was enabled, </xsl:otherwise>    </xsl:choose>    the verbosity level was <xsl:value-of select="verbose/@level" />.    </p>	<xsl:apply-templates/>	</div></body></html></xsl:template><!-- ............................................................ --><!-- scaninfo --><!-- ............................................................ --><xsl:template match="scaninfo">	<xsl:element name="a">		<xsl:attribute name="name">scaninfo</xsl:attribute>	</xsl:element>	<h2>scan info</h2>	<ul>        <li><xsl:value-of select="@type" />-scan</li>        <li><xsl:value-of select="@numservices" /><xsl:text> </xsl:text><xsl:value-of select="@protocol" /> services scanned</li>	</ul>	<xsl:apply-templates/></xsl:template><!-- ............................................................ --><!-- runstats --><!-- ............................................................ --><xsl:template match="runstats">	<xsl:element name="a">		<xsl:attribute name="name">runstats</xsl:attribute>	</xsl:element>	<h2>runstats</h2>	<ul>		<li><xsl:value-of select="$totaltime" /> sec. scanned</li>        <li><xsl:value-of select="hosts/@total" /> host(s) scanned</li>        <li><xsl:value-of select="hosts/@up" /> host(s) online</li>        <li><xsl:value-of select="hosts/@down" /> host(s) offline</li>	</ul>	<xsl:apply-templates/></xsl:template><!-- ............................................................ --><!-- host --><!-- ............................................................ --><xsl:template match="host">	<xsl:element name="a">		<xsl:attribute name="name"><xsl:value-of select="translate(address/@addr, '.', '_') " /></xsl:attribute>	</xsl:element>    <xsl:choose>        <xsl:when test="status/@state = 'up'"><h2 class="green"><xsl:value-of select="address/@addr"/> (online)</h2></xsl:when>        <xsl:otherwise><h2 class="red"><xsl:value-of select="address/@addr"/> (offline)</h2></xsl:otherwise>    </xsl:choose>	<xsl:apply-templates/></xsl:template><!-- ............................................................ --><!-- hostnames --><!-- ............................................................ --><xsl:template match="hostnames"><xsl:if test="hostname/@name != ''"><h3>hostnames</h3><ul>	<xsl:apply-templates/></ul></xsl:if></xsl:template><!-- ............................................................ --><!-- hostname --><!-- ............................................................ --><xsl:template match="hostname"><li><xsl:value-of select="@name"/> ( <xsl:value-of select="@type"/> )</li></xsl:template><!-- ............................................................ --><!-- ports --><!-- ............................................................ --><xsl:template match="ports"><h3>ports</h3><xsl:for-each select="extraports">    <xsl:if test="@count > 0">	    <p>The <xsl:value-of select="@count" /> ports scanned but not shown below are in state: <b><xsl:value-of select="@state" /></b></p>    </xsl:if></xsl:for-each>    <table cellspacing="1">    <tr class="head">        <td colspan="2">Port</td>        <td>State</td>        <td>Service</td>        <td>Product</td>        <td>Version</td>        <td>Extra info</td>    </tr>	<xsl:apply-templates/>	</table></xsl:template><!-- ............................................................ --><!-- port --><!-- ............................................................ --><xsl:template match="port">	<xsl:choose>		<xsl:when test="state/@state = 'open'">            <tr class="open">                <td><xsl:value-of select="@portid" /></td>                <td><xsl:value-of select="@protocol" /></td>                <td><xsl:value-of select="state/@state" /></td>                <td><xsl:value-of select="service/@name" /><xsl:text>&#xA0;</xsl:text></td>                <td><xsl:value-of select="service/@product" /><xsl:text>&#xA0;</xsl:text></td>                <td><xsl:value-of select="service/@version" /><xsl:text>&#xA0;</xsl:text></td>                <td><xsl:value-of select="service/@extrainfo" /><xsl:text>&#xA0;</xsl:text></td>            </tr>		</xsl:when>		<xsl:when test="state/@state = 'filtered'">            <tr class="filtered">                <td><xsl:value-of select="@portid" /></td>                <td><xsl:value-of select="@protocol" /></td>                <td><xsl:value-of select="state/@state" /></td>                <td><xsl:value-of select="service/@name" /><xsl:text>&#xA0;</xsl:text></td>                <td><xsl:value-of select="service/@product" /><xsl:text>&#xA0;</xsl:text></td>                <td><xsl:value-of select="service/@version" /><xsl:text>&#xA0;</xsl:text></td>                <td><xsl:value-of select="service/@extrainfo" /><xsl:text>&#xA0;</xsl:text></td>            </tr>		</xsl:when>		<xsl:when test="state/@state = 'closed'">            <tr class="closed">                <td><xsl:value-of select="@portid" /></td>                <td><xsl:value-of select="@protocol" /></td>                <td><xsl:value-of select="state/@state" /></td>                <td><xsl:value-of select="service/@name" /><xsl:text>&#xA0;</xsl:text></td>                <td><xsl:value-of select="service/@product" /><xsl:text>&#xA0;</xsl:text></td>                <td><xsl:value-of select="service/@version" /><xsl:text>&#xA0;</xsl:text></td>                <td><xsl:value-of select="service/@extrainfo" /><xsl:text>&#xA0;</xsl:text></td>            </tr>		</xsl:when>		<xsl:otherwise>            <tr>                <td><xsl:value-of select="@portid" /></td>                <td><xsl:value-of select="@protocol" /></td>                <td><xsl:value-of select="state/@state" /></td>                <td><xsl:value-of select="service/@name" /><xsl:text>&#xA0;</xsl:text></td>                <td><xsl:value-of select="service/@product" /><xsl:text>&#xA0;</xsl:text></td>                <td><xsl:value-of select="service/@version" /><xsl:text>&#xA0;</xsl:text></td>                <td><xsl:value-of select="service/@extrainfo" /><xsl:text>&#xA0;</xsl:text></td>            </tr>		</xsl:otherwise>	</xsl:choose></xsl:template><!-- ............................................................ --><!-- os --><!-- ............................................................ --><xsl:template match="os"><xsl:if test="osmatch/@name != ''"><h3>remote operating system guess</h3></xsl:if><ul>	<xsl:apply-templates/></ul></xsl:template><!-- ............................................................ --><!-- os portused --><!-- ............................................................ --><xsl:template match="portused"><li>used port <xsl:value-of select="@portid" />/<xsl:value-of select="@proto" /> (<xsl:value-of select="@state" />)  </li></xsl:template><!-- ............................................................ --><!-- os match --><!-- ............................................................ --><xsl:template match="osmatch"><li>os match: <b><xsl:value-of select="@name" /> </b></li><li>accuracy: <xsl:value-of select="@accuracy" />%</li></xsl:template><!-- ............................................................ --><!-- os fingerprint --><!-- ............................................................ --><xsl:template match="osfingerprint"><li>os fingerprint: <em><xsl:value-of select="@fingerprint" /></em></li></xsl:template><!-- ............................................................ --><!-- uptime --><!-- ............................................................ --><xsl:template match="uptime"><xsl:if test="@seconds != ''"><h3>system uptime</h3></xsl:if><ul><li>uptime: <xsl:value-of select="@seconds" /> sec</li><li>last reboot: <xsl:value-of select="@lastboot" /></li></ul></xsl:template><!-- ............................................................ --><!-- smurf --><!-- ............................................................ --><xsl:template match="smurf"><xsl:if test="@responses != ''"><h3>smurf responses</h3></xsl:if><ul><li><xsl:value-of select="@responses" /> responses counted</li></ul></xsl:template><!-- ............................................................ --><!-- tcpsequence --><!-- ............................................................ --><xsl:template match="tcpsequence"><xsl:if test="@values != ''">    <h3>tcpsequence</h3>    <ul>        <li>index: <xsl:value-of select="@index" /></li>        <li>class: <xsl:value-of select="@class" /></li>        <li>difficulty: <xsl:value-of select="@difficulty" /></li>        <li>values: <xsl:value-of select="@values" /></li>    </ul></xsl:if></xsl:template><!-- ............................................................ --><!-- ipidsequence --><!-- ............................................................ --><xsl:template match="ipidsequence"><xsl:if test="@values != ''">    <h3>ipidsequence</h3>    <ul>        <li>class: <xsl:value-of select="@class" /></li>        <li>values: <xsl:value-of select="@values" /></li>    </ul></xsl:if></xsl:template><!-- ............................................................ --><!-- tcptssequence --><!-- ............................................................ --><xsl:template match="tcptssequence"><xsl:if test="@values != ''">    <h3>tcptssequence</h3>    <ul>        <li>class: <xsl:value-of select="@class" /></li>        <li>values: <xsl:value-of select="@values" /></li>    </ul></xsl:if></xsl:template><!-- ............................................................ --><!-- Timestamp Conversion --><!-- ............................................................ --><xsl:template name="timestamp">	<xsl:param name="stamp" />    <xsl:choose>    	<!-- Prevent Firefox / Transformiix from running docuement.write() -->        <xsl:when test="system-property('xsl:vendor')!='Transformiix'">            <script language="JavaScript" type="text/javascript" >            <xsl:comment>            document.write(timestamp2date(<xsl:value-of select="$stamp"/>));            </xsl:comment>            </script>                </xsl:when>	    <xsl:otherwise><xsl:value-of select="$stamp"/></xsl:otherwise>	</xsl:choose>    </xsl:template><!-- ............................................................ --></xsl:stylesheet>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -