|
<?xml version="1.0"?>
<?xml-stylesheet href="file:///F:/nmap/nmap.xsl" type="text/xsl"?>
<!-- Nmap 6.25 scan initiated Mon May 27 13:39:09 2013 as: nmap -oX D:\\as.xml 10.10.133.120 -->
<nmaprun scanner="nmap" args="nmap -oX D:\\as.xml 10.10.133.120" start="1369633149" startstr="Mon May 27 13:39:09 2013" version="6.25" xmloutputversion="1.04">
<scaninfo type="syn" protocol="tcp" numservices="1000" services="1,3-4,6-7,9,13,17,19-26,30,32-33,37,42-43,49,53,70,79-85,88-90,99-100,106,109-111,113,119,125,135,139,143-144,146,161,163,179,199,211-212,222,254-256,259,264,280,301,306,311,340,366,389,406-407,416"/>
<verbose level="0"/>
<debugging level="0"/>
<host starttime="1369633149" endtime="1369633151"><status state="up" reason="echo-reply" reason_ttl="63"/>
<address addr="10.10.133.120" addrtype="ipv4"/>
<hostnames>
</hostnames>
<ports><extraports state="closed" count="986">
<extrareasons reason="resets" count="986"/>
</extraports>
<port protocol="tcp" portid="80"><state state="open" reason="syn-ack" reason_ttl="63"/><service name="http" method="table" conf="3"/></port>
<port protocol="tcp" portid="135"><state state="open" reason="syn-ack" reason_ttl="63"/><service name="msrpc" method="table" conf="3"/></port>
<port protocol="tcp" portid="139"><state state="open" reason="syn-ack" reason_ttl="63"/><service name="netbios-ssn" method="table" conf="3"/></port>
<port protocol="tcp" portid="445"><state state="open" reason="syn-ack" reason_ttl="63"/><service name="microsoft-ds" method="table" conf="3"/></port>
<port protocol="tcp" portid="1025"><state state="open" reason="syn-ack" reason_ttl="63"/><service name="NFS-or-IIS" method="table" conf="3"/></port>
<port protocol="tcp" portid="1026"><state state="open" reason="syn-ack" reason_ttl="63"/><service name="LSA-or-nterm" method="table" conf="3"/></port>
<port protocol="tcp" portid="1027"><state state="open" reason="syn-ack" reason_ttl="63"/><service name="IIS" method="table" conf="3"/></port>
<port protocol="tcp" portid="1028"><state state="open" reason="syn-ack" reason_ttl="63"/><service name="unknown" method="table" conf="3"/></port>
<port protocol="tcp" portid="1029"><state state="open" reason="syn-ack" reason_ttl="63"/><service name="ms-lsa" method="table" conf="3"/></port>
<port protocol="tcp" portid="1030"><state state="open" reason="syn-ack" reason_ttl="63"/><service name="iad1" method="table" conf="3"/></port>
<port protocol="tcp" portid="1433"><state state="open" reason="syn-ack" reason_ttl="63"/><service name="ms-sql-s" method="table" conf="3"/></port>
<port protocol="tcp" portid="1720"><state state="filtered" reason="no-response" reason_ttl="0"/><service name="H.323/Q.931" method="table" conf="3"/></port>
<port protocol="tcp" portid="3306"><state state="open" reason="syn-ack" reason_ttl="63"/><service name="mysql" method="table" conf="3"/></port>
<port protocol="tcp" portid="6001"><state state="open" reason="syn-ack" reason_ttl="63"/><service name="X11:1" method="table" conf="3"/></port>
</ports>
<times srtt="5709" rttvar="3304" to="100000"/>
</host>
<runstats><finished time="1369633151" timestr="Mon May 27 13:39:11 2013" elapsed="1.80" summary="Nmap done at Mon May 27 13:39:11 2013; 1 IP address (1 host up) scanned in 1.80 seconds" exit="success"/><hosts up="1" down="0" total="1"/>
</runstats>
</nmaprun>
求救,想用C#读取上面xml文档内容中port中的内容,恳求大神能给出代码。谢谢
|
|