summaryrefslogtreecommitdiffstats
path: root/zenmap/test
diff options
context:
space:
mode:
Diffstat (limited to 'zenmap/test')
-rw-r--r--zenmap/test/diff_test110
-rw-r--r--zenmap/test/diff_test211
-rw-r--r--zenmap/test/nmap-output-error.xml33
-rw-r--r--zenmap/test/run_tests.py18
-rw-r--r--zenmap/test/xml_test1.xml19
-rw-r--r--zenmap/test/xml_test10.xml82
-rw-r--r--zenmap/test/xml_test11.xml86
-rw-r--r--zenmap/test/xml_test12.xml12
-rw-r--r--zenmap/test/xml_test13.xml25
-rw-r--r--zenmap/test/xml_test14.xml24
-rw-r--r--zenmap/test/xml_test15.xml22
-rw-r--r--zenmap/test/xml_test16.xml14
-rw-r--r--zenmap/test/xml_test17.xml15
-rw-r--r--zenmap/test/xml_test2.xml19
-rw-r--r--zenmap/test/xml_test3.xml27
-rw-r--r--zenmap/test/xml_test4.xml41
-rw-r--r--zenmap/test/xml_test5.xml44
-rw-r--r--zenmap/test/xml_test6.xml68
-rw-r--r--zenmap/test/xml_test7.xml41
-rw-r--r--zenmap/test/xml_test8.xml41
-rw-r--r--zenmap/test/xml_test9.xml84
21 files changed, 736 insertions, 0 deletions
diff --git a/zenmap/test/diff_test1 b/zenmap/test/diff_test1
new file mode 100644
index 0000000..4d2f415
--- /dev/null
+++ b/zenmap/test/diff_test1
@@ -0,0 +1,10 @@
+# nmap 3.75 scan initiated Sat Jul 16 11:29:44 2005 as: nmap -oX /tmp/tmpXBsQcL -oN /tmp/tmpepjBH8 10.0.0.138
+Interesting ports on SpeedTouch.canopo (10.0.0.138):
+(The 1659 ports scanned but not shown below are in state: closed)
+PORT STATE SERVICE
+21/tcp open ftp
+23/tcp open telnet
+80/tcp open http
+1723/tcp open pptp
+
+# Nmap run completed at Sat Jul 16 11:29:46 2005 -- 1 IP address (1 host up) scanned in 2.258 seconds
diff --git a/zenmap/test/diff_test2 b/zenmap/test/diff_test2
new file mode 100644
index 0000000..7e865f8
--- /dev/null
+++ b/zenmap/test/diff_test2
@@ -0,0 +1,11 @@
+# nmap 3.75 scan initiated Sat Jul 16 11:31:58 2005 as: nmap -oX /tmp/tmpg71nwK -oN /tmp/tmptq82bS localhost
+Interesting ports on localhost.localdomain (127.0.0.1):
+(The 1658 ports scanned but not shown below are in state: closed)
+PORT STATE SERVICE
+80/tcp open http
+111/tcp open rpcbind
+631/tcp open ipp
+6346/tcp open gnutella
+32776/tcp open sometimes-rpc15
+
+# Nmap run completed at Sat Jul 16 11:32:01 2005 -- 1 IP address (1 host up) scanned in 2.788 seconds
diff --git a/zenmap/test/nmap-output-error.xml b/zenmap/test/nmap-output-error.xml
new file mode 100644
index 0000000..e18dc32
--- /dev/null
+++ b/zenmap/test/nmap-output-error.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" ?>
+<?xml-stylesheet href="nmap.xsl" type="text/xsl"?>
+<!-- Nmap 4.22SOC2 scan initiated Mon Aug 06 18:09:43 2007 as: c:\net\nmap\nmap.exe -sV -v -oX foo.xml 192.168.0.100 -->
+<nmaprun scanner="nmap" args="c:\net\nmap\nmap.exe -sV -v -oX foo.xml 192.168.0.100" start="1186448983" startstr="Mon Aug 06 18:09:43 2007" version="4.22SOC2" xmloutputversion="1.01">
+<scaninfo type="syn" protocol="tcp" numservices="1705" services="1-1027,1029-1033,1040,1043,1050,1058-1059,1067-1068,1076,1080,1083-1084,1103,1109-1110,1112,1127,1139,1155,1158,1178,1212,1214,1220,1222,1234,1241,1248,1270,1337,1346-1381,1383-1552,1600,1650-1652,1661-1672,1680,1720,1723,1755,1761-1764,1827,1900,1935,1984,1986-2028,2030,2032-2035,2038,2040-2049,2053,2064-2065,2067-2068,2105-2106,2108,2111-2112,2120-2121,2201,2232,2241,2301,2307,2401,2430-2433,2500-2501,2564,2600-2605,2627-2628,2638,2766,2784,2809,2903,2998,3000-3001,3005-3006,3025,3045,3049,3052,3064,3086,3128,3141,3264,3268-3269,3292,3299,3306,3333,3372,3389,3397-3399,3421,3455-3457,3462,3531,3632,3689,3900,3984-3986,3999-4000,4002,4008,4045,4125,4132-4133,4144,4199,4224,4321,4333,4343,4444,4480,4500,4557,4559,4660,4662,4672,4899,4987,4998,5000-5003,5009-5011,5050,5060,5100-5102,5145,5190-5193,5232,5236,5300-5305,5308,5400,5405,5432,5490,5500,5510,5520,5530,5540,5550,5555,5560,5631-5632,5679-5680,5713-5717,5800-5803,5900-5903,5977-5979,5997-6009,6017,6050,6101,6103,6105-6106,6110-6112,6141-6148,6346-6347,6400-6401,6502,6543-6544,6547-6548,6558,6588,6666-6668,6699-6701,6881,6969,7000-7010,7070,7100,7200-7201,7273,7326,7464,7597,7937-7938,8000,8007,8009,8021,8076,8080-8082,8123,8443,8770,8888,8892,9090,9100-9107,9111,9152,9535,9876,9991-9992,9999-10000,10005,10082-10083,11371,12000,12345-12346,13701-13702,13705-13706,13708-13718,13720-13722,13782-13783,14141,15126,15151,16080,16444,16959,17007,17300,18000,18181-18185,18187,19150,20005,22273,22289,22305,22321,22370,26208,27000-27010,27374,27665,31337,31416,32770-32780,32786-32787,38037,38292,43188,44334,44442-44443,47557,49400,50000,50002,54320,61439-61441,65301" />
+<verbose level="1" />
+<debugging level="0" />
+<taskbegin task="Parallel DNS resolution of 1 host." time="1186448983" />
+<taskend task="Parallel DNS resolution of 1 host." time="1186448983" />
+<taskbegin task="SYN Stealth Scan" time="1186448983" />
+<taskend task="SYN Stealth Scan" time="1186448984" extrainfo="1705 total ports" />
+<taskbegin task="Service scan" time="1186448984" />
+<taskend task="Service scan" time="1186448995" extrainfo="6 services on 1 host" />
+<taskbegin task="RPCGrind Scan against flog.yuma.��D�" time="1186448995" />
+<taskend task="RPCGrind Scan against flog.yuma.��D�" time="1186448995" extrainfo="1 port" />
+<host><status state="up" reason="echo-reply"/>
+<address addr="192.168.0.100" addrtype="ipv4" />
+<hostnames><hostname name="flog.yuma.net" type="PTR" /></hostnames>
+<ports><extraports state="closed" count="1699">
+<extrareasons reason="resets" count="1699"/>
+</extraports>
+<port protocol="tcp" portid="22"><state state="open" reason="syn-ack" reason_ttl="64"/><service name="ssh" product="OpenSSH" version="4.3" extrainfo="protocol 2.0" method="probed" conf="10" /></port>
+<port protocol="tcp" portid="53"><state state="open" reason="syn-ack" reason_ttl="64"/><service name="domain" method="probed" conf="10" /></port>
+<port protocol="tcp" portid="80"><state state="open" reason="syn-ack" reason_ttl="64"/><service name="http" product="thttpd" method="probed" conf="10" /></port>
+<port protocol="tcp" portid="111"><state state="open" reason="syn-ack" reason_ttl="64"/><service name="rpcbind" version="2" extrainfo="rpc #100000" method="probed" conf="10" /></port>
+<port protocol="tcp" portid="139"><state state="open" reason="syn-ack" reason_ttl="64"/><service name="netbios-ssn" product="Samba smbd" version="3.X" extrainfo="workgroup: WORKGROUP" method="probed" conf="10" /></port>
+<port protocol="tcp" portid="445"><state state="open" reason="syn-ack" reason_ttl="64"/><service name="netbios-ssn" product="Samba smbd" version="3.X" extrainfo="workgroup: WORKGROUP" method="probed" conf="10" /></port>
+</ports>
+<times srtt="2669" rttvar="4919" to="100000" />
+</host>
+<runstats><finished time="1186448995" timestr="Mon Aug 06 18:09:55 2007"/><hosts up="1" down="0" total="1" />
+<!-- Nmap run completed at Mon Aug 06 18:09:55 2007; 1 IP address (1 host up) scanned in 12.328 seconds -->
+</runstats></nmaprun>
diff --git a/zenmap/test/run_tests.py b/zenmap/test/run_tests.py
new file mode 100644
index 0000000..486ffab
--- /dev/null
+++ b/zenmap/test/run_tests.py
@@ -0,0 +1,18 @@
+#!/usr/bin/env python3
+
+import unittest
+
+if __name__ == "__main__":
+ import sys
+ import glob
+ import os
+ if not hasattr(unittest.defaultTestLoader, "discover"):
+ print("Python unittest discovery missing. Requires Python 3.0 or newer.") # noqa
+ sys.exit(0)
+
+ os.chdir("..")
+ suite = unittest.defaultTestLoader.discover(
+ start_dir=glob.glob("build/lib*")[0],
+ pattern="*.py"
+ )
+ unittest.TextTestRunner().run(suite)
diff --git a/zenmap/test/xml_test1.xml b/zenmap/test/xml_test1.xml
new file mode 100644
index 0000000..888b664
--- /dev/null
+++ b/zenmap/test/xml_test1.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" ?>
+<!-- nmap 3.75 scan initiated Mon Jul 18 21:40:17 2005 as: nmap -oX /tmp/tmpwpoKfN -oN /tmp/tmpAc7PoV localhost -->
+<nmaprun scanner="nmap" args="nmap -oX /tmp/tmpwpoKfN -oN /tmp/tmpAc7PoV localhost" start="1121733617" version="3.75" xmloutputversion="1.01">
+<scaninfo type="connect" protocol="tcp" numservices="1663" services="1-1027,1029-1033,1040,1050,1058-1059,1067-1068,1076,1080,1083-1084,1103,1109-1110,1112,1127,1139,1155,1178,1212,1214,1220,1222,1234,1241,1248,1337,1346-1381,1383-1552,1600,1650-1652,1661-1672,1680,1720,1723,1755,1761-1764,1827,1900,1935,1984,1986-2028,2030,2032-2035,2038,2040-2049,2053,2064-2065,2067-2068,2105-2106,2108,2111-2112,2120-2121,2201,2232,2241,2301,2307,2401,2430-2433,2500-2501,2564,2600-2605,2627-2628,2638,2766,2784,2809,2903,2998,3000-3001,3005-3006,3049,3052,3064,3086,3128,3141,3264,3268-3269,3292,3306,3333,3372,3389,3421,3455-3457,3462,3531,3632,3689,3900,3984-3986,3999-4000,4008,4045,4132-4133,4144,4224,4321,4333,4343,4444,4480,4500,4557,4559,4660,4672,4899,4987,4998,5000-5003,5010-5011,5050,5100-5102,5145,5190-5193,5232,5236,5300-5305,5308,5400,5405,5432,5490,5510,5520,5530,5540,5550,5555,5631-5632,5680,5713-5717,5800-5803,5900-5903,5977-5979,5997-6009,6017,6050,6101,6103,6105-6106,6110-6112,6141-6148,6346,6400-6401,6502,6543-6544,6547-6548,6558,6588,6666-6668,6699,6969,7000-7010,7070,7100,7200-7201,7273,7326,7464,7597,8000,8007,8009,8080-8082,8443,8888,8892,9090,9100,9111,9152,9535,9876,9991-9992,9999-10000,10005,10082-10083,11371,12000,12345-12346,13701-13702,13705-13706,13708-13718,13720-13722,13782-13783,15126,16959,17007,17300,18000,18181-18185,18187,19150,20005,22273,22289,22305,22321,22370,26208,27000-27010,27374,27665,31337,32770-32780,32786-32787,38037,38292,43188,44334,44442-44443,47557,49400,54320,61439-61441,65301" />
+<verbose level="0" />
+<debugging level="0" />
+<host><status state="up" />
+<address addr="127.0.0.1" addrtype="ipv4" />
+<hostnames><hostname name="localhost.localdomain" type="PTR" /></hostnames>
+<ports><extraports state="closed" count="1659" />
+<port protocol="tcp" portid="80"><state state="open" /><service name="http" method="table" conf="3" /></port>
+<port protocol="tcp" portid="111"><state state="open" /><service name="rpcbind" method="table" conf="3" /></port>
+<port protocol="tcp" portid="631"><state state="open" /><service name="ipp" method="table" conf="3" /></port>
+<port protocol="tcp" portid="5432"><state state="open" /><service name="postgres" method="table" conf="3" /></port>
+</ports>
+</host>
+<runstats><finished time="1121733617" /><hosts up="1" down="0" total="1" />
+<!-- Nmap run completed at Mon Jul 18 21:40:17 2005; 1 IP address (1 host up) scanned in 0.358 seconds -->
+</runstats></nmaprun>
diff --git a/zenmap/test/xml_test10.xml b/zenmap/test/xml_test10.xml
new file mode 100644
index 0000000..e3c4662
--- /dev/null
+++ b/zenmap/test/xml_test10.xml
@@ -0,0 +1,82 @@
+<?xml version="1.0" ?>
+<!-- nmap 3.75 scan initiated Mon Jul 18 22:56:06 2005 as: nmap -sV -v -v -v -d -d -p80,22 -oX xml_test9.xml 10.0.0.100-180 -->
+<nmaprun scanner="nmap" args="nmap -sV -v -v -v -d -d -p80,22 -oX xml_test9.xml 10.0.0.100-180" start="1121738166" version="3.75" xmloutputversion="1.01">
+<scaninfo type="connect" protocol="tcp" numservices="2" services="22,80" />
+<verbose level="5" />
+<debugging level="2" />
+<host>
+ <status state="up" />
+ <address addr="10.0.0.100" addrtype="ipv4" />
+ <hostnames>
+ <hostname name="canopo" type="PTR" />
+ </hostnames>
+ <ports>
+ <extraports state="unknown" count="0" />
+ <port protocol="tcp" portid="22">
+ <state state="open" />
+ <service name="ssh" product="OpenSSH" version="3.9p1" extrainfo="protocol 1.99" method="probed" conf="10" />
+ </port>
+ <port protocol="tcp" portid="80">
+ <state state="open" />
+ <service name="http" product="Apache httpd" version="2.0.52" extrainfo="(Red Hat)" method="probed" conf="10" />
+ </port>
+ </ports>
+</host>
+<host>
+ <status state="up" />
+ <address addr="10.0.0.138" addrtype="ipv4" />
+ <hostnames>
+ <hostname name="SpeedTouch.canopo" type="PTR" />
+ </hostnames>
+ <ports>
+ <extraports state="unknown" count="0" />
+ <port protocol="tcp" portid="22">
+ <state state="closed" />
+ <service name="ssh" method="table" conf="3" />
+ </port>
+ <port protocol="tcp" portid="80">
+ <state state="open" />
+ <service name="http" method="table" conf="3" />
+ </port>
+ </ports>
+</host>
+<host>
+ <status state="up" />
+ <address addr="10.0.0.140" addrtype="ipv4" />
+ <hostnames>
+ <hostname name="servidor.canopo" type="PTR" />
+ </hostnames>
+ <ports>
+ <extraports state="unknown" count="0" />
+ <port protocol="tcp" portid="22">
+ <state state="open" />
+ <service name="ssh" product="OpenSSH" version="3.9p1" extrainfo="protocol 1.99" method="probed" conf="10" />
+ </port>
+ <port protocol="tcp" portid="80">
+ <state state="open" />
+ <service name="http" product="Apache httpd" version="2.0.52" extrainfo="(Red Hat)" method="probed" conf="10" />
+ </port>
+ </ports>
+</host>
+<host>
+ <status state="up" />
+ <address addr="10.0.0.150" addrtype="ipv4" />
+ <hostnames />
+ <ports>
+ <extraports state="unknown" count="0" />
+ <port protocol="tcp" portid="22">
+ <state state="closed" />
+ <service name="ssh" method="table" conf="3" />
+ </port>
+ <port protocol="tcp" portid="80">
+ <state state="open" />
+ <service name="http" product="Apache httpd" version="2.0.53" method="probed" conf="10" />
+ </port>
+ </ports>
+</host>
+<runstats>
+ <finished time="1121738233" />
+ <hosts up="4" down="77" total="81" />
+</runstats>
+<!-- Nmap run completed at Mon Jul 18 22:57:13 2005; 81 IP addresses (4 hosts up) scanned in 66.390 seconds -->
+</nmaprun>
diff --git a/zenmap/test/xml_test11.xml b/zenmap/test/xml_test11.xml
new file mode 100644
index 0000000..ef7cb91
--- /dev/null
+++ b/zenmap/test/xml_test11.xml
@@ -0,0 +1,86 @@
+<?xml version="1.0" ?>
+<!-- nmap 3.75 scan initiated Tue Jul 19 00:24:43 2005 as: nmap -A -sV -v -v -v -d -d -O -p80,22 -oX xml_test11.xml 10.0.0.100-180 -->
+<nmaprun scanner="nmap" args="nmap -A -sV -v -v -v -d -d -O -p80,22 -oX xml_test11.xml 10.0.0.100-180" start="1121743483" version="3.75" xmloutputversion="1.01">
+<scaninfo type="syn" protocol="tcp" numservices="2" services="22,80" />
+<verbose level="5" />
+<debugging level="2" />
+<host><status state="up" />
+<address addr="10.0.0.100" addrtype="ipv4" />
+<address addr="00:E0:7D:F5:00:7D" addrtype="mac" vendor="Netronix" />
+<hostnames><hostname name="canopo" type="PTR" /></hostnames>
+<ports><extraports state="unknown" count="0" />
+<port protocol="tcp" portid="22"><state state="open" /><service name="ssh" product="OpenSSH" version="3.9p1" extrainfo="protocol 1.99" method="probed" conf="10" /></port>
+<port protocol="tcp" portid="80"><state state="open" /><service name="http" product="Apache httpd" version="2.0.52" extrainfo="(Red Hat)" method="probed" conf="10" /></port>
+</ports>
+<os>
+ <portused state="open" proto="tcp" portid="22" />
+ <osclass type="general purpose" vendor="Linux" osfamily="Linux" osgen="2.4.X" accuracy="100" />
+ <osclass type="general purpose" vendor="Linux" osfamily="Linux" osgen="2.5.X" accuracy="100" />
+ <osclass type="general purpose" vendor="Linux" osfamily="Linux" osgen="2.6.X" accuracy="100" />
+ <osmatch name="Linux 2.4.18 - 2.6.7" accuracy="100" />
+</os>
+<uptime seconds="214382" lastboot="Sat Jul 16 12:52:51 2005" />
+<tcpsequence index="3471462" class="random positive increments" difficulty="Good luck!" values="F805E39D,F7B2C1BC,F8651E67,F8513329,F81A71B0,F8603963" />
+<ipidsequence class="All zeros" values="0,0,0,0,0,0" />
+<tcptssequence class="1000HZ" values="CC73164,CC731D3,CC73242,CC732B1,CC73320,CC7338F" />
+</host>
+<host><status state="up" />
+<address addr="10.0.0.138" addrtype="ipv4" />
+<address addr="00:90:D0:1C:85:AD" addrtype="mac" vendor="Thomson Belgium" />
+<hostnames><hostname name="SpeedTouch.canopo" type="PTR" /></hostnames>
+<ports><extraports state="unknown" count="0" />
+<port protocol="tcp" portid="22"><state state="closed" /><service name="ssh" method="table" conf="3" /></port>
+<port protocol="tcp" portid="80"><state state="open" /><service name="http" method="table" conf="3" /></port>
+</ports>
+<os><portused state="open" proto="tcp" portid="80" />
+<portused state="closed" proto="tcp" portid="22" />
+<osclass type="broadband router" vendor="Alcatel" osfamily="embedded" accuracy="100" />
+<osmatch name="Alcatel Speed Touch *DSL modem/router" accuracy="100" />
+</os>
+<uptime seconds="38496" lastboot="Mon Jul 18 13:44:20 2005" />
+<tcpsequence index="1" class="64K rule" difficulty="Trivial joke" values="2674DC01,2676D001,2677CA01,2678C401,2679BE01,267AB801" />
+<ipidsequence class="Incremental" values="78D,78E,78F,790,791,792" />
+<tcptssequence class="2HZ" values="12CBC,12CBD,12CBD,12CBD,12CBD,12CBD" />
+</host>
+<host><status state="up" />
+<address addr="10.0.0.140" addrtype="ipv4" />
+<address addr="00:E0:7D:F5:00:7D" addrtype="mac" vendor="Netronix" />
+<hostnames><hostname name="servidor.canopo" type="PTR" /></hostnames>
+<ports><extraports state="unknown" count="0" />
+<port protocol="tcp" portid="22"><state state="open" /><service name="ssh" product="OpenSSH" version="3.9p1" extrainfo="protocol 1.99" method="probed" conf="10" /></port>
+<port protocol="tcp" portid="80"><state state="open" /><service name="http" product="Apache httpd" version="2.0.52" extrainfo="(Red Hat)" method="probed" conf="10" /></port>
+</ports>
+<os><portused state="open" proto="tcp" portid="22" />
+<osclass type="general purpose" vendor="Linux" osfamily="Linux" osgen="2.4.X" accuracy="100" />
+<osclass type="general purpose" vendor="Linux" osfamily="Linux" osgen="2.5.X" accuracy="100" />
+<osclass type="general purpose" vendor="Linux" osfamily="Linux" osgen="2.6.X" accuracy="100" />
+<osmatch name="Linux 2.4.18 - 2.6.7" accuracy="100" />
+</os>
+<uptime seconds="214388" lastboot="Sat Jul 16 12:52:51 2005" />
+<tcpsequence index="2030985" class="random positive increments" difficulty="Good luck!" values="F8EE1623,F89FFC06,F84EF04C,F8F1B700,F87B071D,F8F384A3" />
+<ipidsequence class="All zeros" values="0,0,0,0,0,0" />
+<tcptssequence class="1000HZ" values="CC7485C,CC748CB,CC7493A,CC749A9,CC74A18,CC74A87" />
+</host>
+<host><status state="up" />
+<address addr="10.0.0.150" addrtype="ipv4" />
+<hostnames />
+<ports><extraports state="unknown" count="0" />
+<port protocol="tcp" portid="22"><state state="closed" /><service name="ssh" method="table" conf="3" /></port>
+<port protocol="tcp" portid="80"><state state="open" /><service name="http" product="Apache httpd" version="2.0.53" method="probed" conf="10" /></port>
+</ports>
+<os><portused state="open" proto="tcp" portid="80" />
+<portused state="closed" proto="tcp" portid="22" />
+<osclass type="general purpose" vendor="Linux" osfamily="Linux" osgen="2.4.X" accuracy="100" />
+<osclass type="general purpose" vendor="Linux" osfamily="Linux" osgen="2.5.X" accuracy="100" />
+<osclass type="general purpose" vendor="Linux" osfamily="Linux" osgen="2.6.X" accuracy="100" />
+<osmatch name="Linux 2.5.25 - 2.6.3 or Gentoo 1.2 Linux 2.4.19 rc1-rc7)" accuracy="100" />
+<osmatch name="Linux 2.6.3 - 2.6.8" accuracy="100" />
+</os>
+<uptime seconds="16213" lastboot="Mon Jul 18 19:55:55 2005" />
+<tcpsequence index="1961051" class="random positive increments" difficulty="Good luck!" values="7E43048C,7E790295,7DF24B6C,7E55B1D0,7EA183B0" />
+<ipidsequence class="All zeros" values="0,0,0,0,0" />
+<tcptssequence class="1000HZ" values="F761F3,F76262,F762D1,F76340,F763AF" />
+</host>
+<runstats><finished time="1121743568" /><hosts up="4" down="77" total="81" />
+<!-- Nmap run completed at Tue Jul 19 00:26:08 2005; 81 IP addresses (4 hosts up) scanned in 85.282 seconds -->
+</runstats></nmaprun>
diff --git a/zenmap/test/xml_test12.xml b/zenmap/test/xml_test12.xml
new file mode 100644
index 0000000..0d35ee9
--- /dev/null
+++ b/zenmap/test/xml_test12.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" ?>
+<!-- nmap 3.75 scan initiated Tue Jul 19 09:32:35 2005 as: nmap -sP -oX xml_test12.xml localhost -->
+<nmaprun scanner="nmap" args="nmap -sP -oX xml_test12.xml localhost" start="1121776355" version="3.75" xmloutputversion="1.01">
+<verbose level="0" />
+<debugging level="0" />
+<host><status state="up" />
+<address addr="127.0.0.1" addrtype="ipv4" />
+<hostnames><hostname name="localhost.localdomain" type="PTR" /></hostnames>
+</host>
+<runstats><finished time="1121776355" /><hosts up="1" down="0" total="1" />
+<!-- Nmap run completed at Tue Jul 19 09:32:35 2005; 1 IP address (1 host up) scanned in 0.163 seconds -->
+</runstats></nmaprun>
diff --git a/zenmap/test/xml_test13.xml b/zenmap/test/xml_test13.xml
new file mode 100644
index 0000000..15a3044
--- /dev/null
+++ b/zenmap/test/xml_test13.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="file:///usr/local/bin/../share/nmap/nmap.xsl" type="text/xsl"?>
+<!-- Nmap 5.51SVN scan initiated Mon May 23 19:47:12 2011 as: nmap -F -oX scanme-1.xml scanme.nmap.org -->
+<nmaprun scanner="nmap" args="nmap -F -oX scanme-2.xml scanme.nmap.org" start="1306205244" startstr="Mon May 23 19:47:24 2011" version="5.51SVN" xmloutputversion="1.03">
+<scaninfo type="syn" protocol="tcp" numservices="100" services="7,9,13,21-23,25-26,37,53,79-81,88,106,110-111,113,119,135,139,143-144,179,199,389,427,443-445,465,513-515,543-544,548,554,587,631,646,873,990,993,995,1025-1029,1110,1433,1720,1723,1755,1900,2000-2001,2049,2121,2717,3000,3128,3306,3389,3986,4899,5000,5009,5051,5060,5101,5190,5357,5432,5631,5666,5800,5900,6000-6001,6646,7070,8000,8008-8009,8080-8081,8443,8888,9100,9999-10000,32768,49152-49157"/>
+<verbose level="0"/>
+<debugging level="0"/>
+<host starttime="1306205232" endtime="1306205234"><status state="up" reason="echo-reply"/>
+<address addr="74.207.244.221" addrtype="ipv4"/>
+<hostnames>
+<hostname name="scanme.nmap.org" type="user"/>
+<hostname name="li86-221.members.linode.com" type="PTR"/>
+</hostnames>
+<ports><extraports state="closed" count="97">
+<extrareasons reason="resets" count="97"/>
+</extraports>
+<port protocol="tcp" portid="22"><state state="open" reason="syn-ack" reason_ttl="55"/><service name="ssh" method="table" conf="3"/></port>
+<port protocol="tcp" portid="80"><state state="open" reason="syn-ack" reason_ttl="55"/><service name="http" 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>
+</ports>
+<times srtt="87034" rttvar="12802" to="138242"/>
+</host>
+<runstats><finished time="1306205234" timestr="Mon May 23 19:47:14 2011" elapsed="1.53" summary="Nmap done at Mon May 23 19:47:14 2011; 1 IP address (1 host up) scanned in 1.53 seconds" exit="success"/><hosts up="1" down="0" total="1"/>
+</runstats>
+</nmaprun>
diff --git a/zenmap/test/xml_test14.xml b/zenmap/test/xml_test14.xml
new file mode 100644
index 0000000..3b50c63
--- /dev/null
+++ b/zenmap/test/xml_test14.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="file:///usr/local/bin/../share/nmap/nmap.xsl" type="text/xsl"?>
+<!-- Nmap 5.51SVN scan initiated Mon May 23 19:47:24 2011 as: nmap -F -oX scanme-2.xml scanme.nmap.org -->
+<nmaprun scanner="nmap" args="nmap -F -oX scanme-1.xml scanme.nmap.org" start="1306205232" startstr="Mon May 23 19:47:12 2011" version="5.51SVN" xmloutputversion="1.03">
+<scaninfo type="syn" protocol="tcp" numservices="100" services="7,9,13,21-23,25-26,37,53,79-81,88,106,110-111,113,119,135,139,143-144,179,199,389,427,443-445,465,513-515,543-544,548,554,587,631,646,873,990,993,995,1025-1029,1110,1433,1720,1723,1755,1900,2000-2001,2049,2121,2717,3000,3128,3306,3389,3986,4899,5000,5009,5051,5060,5101,5190,5357,5432,5631,5666,5800,5900,6000-6001,6646,7070,8000,8008-8009,8080-8081,8443,8888,9100,9999-10000,32768,49152-49157"/>
+<verbose level="0"/>
+<debugging level="0"/>
+<host starttime="1306205244" endtime="1306205245"><status state="up" reason="echo-reply"/>
+<address addr="74.207.244.221" addrtype="ipv4"/>
+<hostnames>
+<hostname name="scanme.nmap.org" type="user"/>
+<hostname name="li86-221.members.linode.com" type="PTR"/>
+</hostnames>
+<ports><extraports state="closed" count="98">
+<extrareasons reason="resets" count="98"/>
+</extraports>
+<port protocol="tcp" portid="80"><state state="open" reason="syn-ack" reason_ttl="55"/><service name="http" 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>
+</ports>
+<times srtt="60451" rttvar="8368" to="100000"/>
+</host>
+<runstats><finished time="1306205245" timestr="Mon May 23 19:47:25 2011" elapsed="1.32" summary="Nmap done at Mon May 23 19:47:25 2011; 1 IP address (1 host up) scanned in 1.32 seconds" exit="success"/><hosts up="1" down="0" total="1"/>
+</runstats>
+</nmaprun>
diff --git a/zenmap/test/xml_test15.xml b/zenmap/test/xml_test15.xml
new file mode 100644
index 0000000..087e6f0
--- /dev/null
+++ b/zenmap/test/xml_test15.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="file:///usr/local/bin/../share/nmap/nmap.xsl" type="text/xsl"?>
+<!-- Nmap 5.51SVN scan initiated Mon May 23 19:47:24 2011 as: nmap -F -oX scanme-2.xml scanme.nmap.org -->
+<nmaprun scanner="nmap" args="nmap -F -oX scanme-1.xml scanme.nmap.org" start="1306205246" startstr="Mon May 23 19:47:13 2011" version="5.51SVN" xmloutputversion="1.03">
+<scaninfo type="syn" protocol="tcp" numservices="100" services="7,9,13,21-23,25-26,37,53,79-81,88,106,110-111,113,119,135,139,143-144,179,199,389,427,443-445,465,513-515,543-544,548,554,587,631,646,873,990,993,995,1025-1029,1110,1433,1720,1723,1755,1900,2000-2001,2049,2121,2717,3000,3128,3306,3389,3986,4899,5000,5009,5051,5060,5101,5190,5357,5432,5631,5666,5800,5900,6000-6001,6646,7070,8000,8008-8009,8080-8081,8443,8888,9100,9999-10000,32768,49152-49157"/>
+<verbose level="0"/>
+<debugging level="0"/>
+<host starttime="1306205246" endtime="1306205246"><status state="up" reason="echo-reply"/>
+<address addr="74.207.244.221" addrtype="ipv4"/>
+<hostnames>
+<hostname name="scanme.nmap.org" type="user"/>
+<hostname name="li86-221.members.linode.com" type="PTR"/>
+</hostnames>
+<ports><extraports state="closed" count="100">
+<extrareasons reason="resets" count="100"/>
+</extraports>
+</ports>
+<times srtt="60451" rttvar="8368" to="100000"/>
+</host>
+<runstats><finished time="1306205246" timestr="Mon May 23 19:47:46 2011" elapsed="1.32" summary="Nmap done at Mon May 23 19:47:25 2011; 1 IP address (1 host up) scanned in 1.32 seconds" exit="success"/><hosts up="1" down="0" total="1"/>
+</runstats>
+</nmaprun>
diff --git a/zenmap/test/xml_test16.xml b/zenmap/test/xml_test16.xml
new file mode 100644
index 0000000..3c786d1
--- /dev/null
+++ b/zenmap/test/xml_test16.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<?xml-stylesheet href="file:///usr/local/bin/../share/nmap/nmap.xsl" type="text/xsl"?><nmaprun start="1313178621" profile_name="Quick scan" xmloutputversion="1.03" scanner="nmap" version="5.59BETA1" startstr="Fri Aug 12 14:50:21 2011" args="nmap -T4 -F scanme.nmap.org"><scaninfo services="7,9,13,21-23,25-26,37,53,79-81,88,106,110-111,113,119,135,139,143-144,179,199,389,427,443-445,465,513-515,543-544,548,554,587,631,646,873,990,993,995,1025-1029,1110,1433,1720,1723,1755,1900,2000-2001,2049,2121,2717,3000,3128,3306,3389,3986,4899,5000,5009,5051,5060,5101,5190,5357,5432,5631,5666,5800,5900,6000-6001,6646,7070,8000,8008-8009,8080-8081,8443,8888,9100,9999-10000,32768,49152-49157" protocol="tcp" numservices="100" type="syn"></scaninfo><verbose level="0"></verbose><debugging level="0"></debugging><output type="interactive">
+Starting Nmap 5.59BETA1 ( http://nmap.org ) at 2011-08-12 14:50 CDT
+Nmap scan report for scanme.nmap.org (74.207.244.221)
+Host is up (0.38s latency).
+rDNS record for 74.207.244.221: li86-221.members.linode.com
+Not shown: 97 closed ports
+PORT STATE SERVICE
+22/tcp open ssh
+53/tcp open domain
+80/tcp open http
+
+Nmap done: 1 IP address (1 host up) scanned in 3.84 seconds
+</output><host comment=""><status state="up"></status><address addrtype="ipv4" vendor="" addr="74.207.244.221"></address><hostnames><hostname type="user" name="scanme.nmap.org"></hostname><hostname type="PTR" name="li86-221.members.linode.com"></hostname></hostnames><ports><extraports count="97" state="closed"></extraports><port protocol="tcp" portid="22"><state reason="syn-ack" state="open" reason_ttl="53"></state><service method="table" conf="3" name="ssh"></service></port><port protocol="tcp" portid="53"><state reason="syn-ack" state="open" reason_ttl="62"></state><service method="table" conf="3" name="domain"></service></port><port protocol="tcp" portid="80"><state reason="syn-ack" state="open" reason_ttl="53"></state><service method="table" conf="3" name="http"></service></port></ports><os></os><uptime lastboot="" seconds=""></uptime><tcpsequence index="" values="" difficulty=""></tcpsequence><ipidsequence values="" class=""></ipidsequence><tcptssequence values="" class=""></tcptssequence></host><runstats><finished timestr="Fri Aug 12 14:50:25 2011" time="1313178625"></finished><hosts down="0" total="1" up="1"></hosts></runstats></nmaprun> \ No newline at end of file
diff --git a/zenmap/test/xml_test17.xml b/zenmap/test/xml_test17.xml
new file mode 100644
index 0000000..afec223
--- /dev/null
+++ b/zenmap/test/xml_test17.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<?xml-stylesheet href="file:///usr/local/bin/../share/nmap/nmap.xsl" type="text/xsl"?><nmaprun start="1313178497" profile_name="" xmloutputversion="1.03" scanner="nmap" version="5.59BETA1" startstr="Fri Aug 12 14:48:17 2011" args="nmap -sU -T4 -F scanme.nmap.org"><scaninfo services="7,9,17,19,49,53,67-69,80,88,111,120,123,135-139,158,161-162,177,427,443,445,497,500,514-515,518,520,593,623,626,631,996-999,1022-1023,1025-1030,1433-1434,1645-1646,1701,1718-1719,1812-1813,1900,2000,2048-2049,2222-2223,3283,3456,3703,4444,4500,5000,5060,5353,5632,9200,10000,17185,20031,30718,31337,32768-32769,32771,32815,33281,49152-49154,49156,49181-49182,49185-49186,49188,49190-49194,49200-49201,65024" protocol="udp" numservices="100" type="udp"></scaninfo><verbose level="0"></verbose><debugging level="0"></debugging><output type="interactive">
+Starting Nmap 5.59BETA1 ( http://nmap.org ) at 2011-08-12 14:48 CDT
+Nmap scan report for scanme.nmap.org (74.207.244.221)
+Host is up (0.25s latency).
+rDNS record for 74.207.244.221: li86-221.members.linode.com
+Not shown: 96 closed ports
+PORT STATE SERVICE
+53/udp open domain
+68/udp open|filtered dhcpc
+123/udp open ntp
+5060/udp open|filtered sip
+
+Nmap done: 1 IP address (1 host up) scanned in 105.83 seconds
+</output><host comment=""><status state="up"></status><address addrtype="ipv4" vendor="" addr="74.207.244.221"></address><hostnames><hostname type="user" name="scanme.nmap.org"></hostname><hostname type="PTR" name="li86-221.members.linode.com"></hostname></hostnames><ports><extraports count="96" state="closed"></extraports><port protocol="udp" portid="53"><state reason="udp-response" state="open" reason_ttl="62"></state><service method="table" conf="3" name="domain"></service></port><port protocol="udp" portid="68"><state reason="no-response" state="open|filtered" reason_ttl="0"></state><service method="table" conf="3" name="dhcpc"></service></port><port protocol="udp" portid="123"><state reason="udp-response" state="open" reason_ttl="53"></state><service method="table" conf="3" name="ntp"></service></port><port protocol="udp" portid="5060"><state reason="no-response" state="open|filtered" reason_ttl="0"></state><service method="table" conf="3" name="sip"></service></port></ports><os></os><uptime lastboot="" seconds=""></uptime><tcpsequence index="" values="" difficulty=""></tcpsequence><ipidsequence values="" class=""></ipidsequence><tcptssequence values="" class=""></tcptssequence></host><runstats><finished timestr="Fri Aug 12 14:50:02 2011" time="1313178602"></finished><hosts down="0" total="1" up="1"></hosts></runstats></nmaprun> \ No newline at end of file
diff --git a/zenmap/test/xml_test2.xml b/zenmap/test/xml_test2.xml
new file mode 100644
index 0000000..a8c0fe7
--- /dev/null
+++ b/zenmap/test/xml_test2.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" ?>
+<!-- nmap 3.75 scan initiated Mon Jul 18 22:18:11 2005 as: nmap -sV -oX xml_test2.xml localhost -->
+<nmaprun scanner="nmap" args="nmap -sV -oX xml_test2.xml localhost" start="1121735891" version="3.75" xmloutputversion="1.01">
+<scaninfo type="connect" protocol="tcp" numservices="1663" services="1-1027,1029-1033,1040,1050,1058-1059,1067-1068,1076,1080,1083-1084,1103,1109-1110,1112,1127,1139,1155,1178,1212,1214,1220,1222,1234,1241,1248,1337,1346-1381,1383-1552,1600,1650-1652,1661-1672,1680,1720,1723,1755,1761-1764,1827,1900,1935,1984,1986-2028,2030,2032-2035,2038,2040-2049,2053,2064-2065,2067-2068,2105-2106,2108,2111-2112,2120-2121,2201,2232,2241,2301,2307,2401,2430-2433,2500-2501,2564,2600-2605,2627-2628,2638,2766,2784,2809,2903,2998,3000-3001,3005-3006,3049,3052,3064,3086,3128,3141,3264,3268-3269,3292,3306,3333,3372,3389,3421,3455-3457,3462,3531,3632,3689,3900,3984-3986,3999-4000,4008,4045,4132-4133,4144,4224,4321,4333,4343,4444,4480,4500,4557,4559,4660,4672,4899,4987,4998,5000-5003,5010-5011,5050,5100-5102,5145,5190-5193,5232,5236,5300-5305,5308,5400,5405,5432,5490,5510,5520,5530,5540,5550,5555,5631-5632,5680,5713-5717,5800-5803,5900-5903,5977-5979,5997-6009,6017,6050,6101,6103,6105-6106,6110-6112,6141-6148,6346,6400-6401,6502,6543-6544,6547-6548,6558,6588,6666-6668,6699,6969,7000-7010,7070,7100,7200-7201,7273,7326,7464,7597,8000,8007,8009,8080-8082,8443,8888,8892,9090,9100,9111,9152,9535,9876,9991-9992,9999-10000,10005,10082-10083,11371,12000,12345-12346,13701-13702,13705-13706,13708-13718,13720-13722,13782-13783,15126,16959,17007,17300,18000,18181-18185,18187,19150,20005,22273,22289,22305,22321,22370,26208,27000-27010,27374,27665,31337,32770-32780,32786-32787,38037,38292,43188,44334,44442-44443,47557,49400,54320,61439-61441,65301" />
+<verbose level="0" />
+<debugging level="0" />
+<host><status state="up" />
+<address addr="127.0.0.1" addrtype="ipv4" />
+<hostnames><hostname name="localhost.localdomain" type="PTR" /></hostnames>
+<ports><extraports state="closed" count="1659" />
+<port protocol="tcp" portid="80"><state state="open" /><service name="http" product="Apache httpd" version="2.0.53" method="probed" conf="10" /></port>
+<port protocol="tcp" portid="111"><state state="open" /><service name="rpcbind" version="2" extrainfo="rpc #100000" method="probed" conf="10" /></port>
+<port protocol="tcp" portid="631"><state state="open" /><service name="ipp" product="CUPS 1.1" method="probed" conf="10" /></port>
+<port protocol="tcp" portid="5432"><state state="open" /><service name="postgres" method="table" conf="3" /></port>
+</ports>
+</host>
+<runstats><finished time="1121735896" /><hosts up="1" down="0" total="1" />
+<!-- Nmap run completed at Mon Jul 18 22:18:16 2005; 1 IP address (1 host up) scanned in 5.681 seconds -->
+</runstats></nmaprun>
diff --git a/zenmap/test/xml_test3.xml b/zenmap/test/xml_test3.xml
new file mode 100644
index 0000000..bcfaf24
--- /dev/null
+++ b/zenmap/test/xml_test3.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" ?>
+<!-- nmap 3.75 scan initiated Mon Jul 18 22:23:15 2005 as: nmap -sV -p80,22 -oX xml_test3.xml localhost -->
+<nmaprun scanner="nmap" args="nmap -sV -p80,22 -oX xml_test3.xml localhost" start="1121736195" version="3.75" xmloutputversion="1.01">
+<scaninfo type="connect" protocol="tcp" numservices="2" services="22,80" />
+<verbose level="0" />
+<debugging level="0" />
+<host>
+ <status state="up" />
+ <address addr="127.0.0.1" addrtype="ipv4" />
+ <hostnames>
+ <hostname name="localhost.localdomain" type="PTR" />
+ </hostnames>
+ <ports>
+ <extraports state="unknown" count="0" />
+ <port protocol="tcp" portid="22">
+ <state state="closed" />
+ <service name="ssh" method="table" conf="3" />
+ </port>
+ <port protocol="tcp" portid="80">
+ <state state="open" />
+ <service name="http" product="Apache httpd" version="2.0.53" method="probed" conf="10" />
+ </port>
+ </ports>
+</host>
+<runstats><finished time="1121736201" /><hosts up="1" down="0" total="1" />
+<!-- Nmap run completed at Mon Jul 18 22:23:21 2005; 1 IP address (1 host up) scanned in 5.177 seconds -->
+</runstats></nmaprun>
diff --git a/zenmap/test/xml_test4.xml b/zenmap/test/xml_test4.xml
new file mode 100644
index 0000000..acade61
--- /dev/null
+++ b/zenmap/test/xml_test4.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" ?>
+<!-- nmap 3.75 scan initiated Mon Jul 18 22:26:57 2005 as: nmap -sV -p80,22 -oX xml_test4.xml 10.0.0.1-254 -->
+<nmaprun scanner="nmap" args="nmap -sV -p80,22 -oX xml_test4.xml 10.0.0.1-254" start="1121736417" version="3.75" xmloutputversion="1.01">
+<scaninfo type="connect" protocol="tcp" numservices="2" services="22,80" />
+<verbose level="0" />
+<debugging level="0" />
+<host><status state="up" />
+<address addr="10.0.0.100" addrtype="ipv4" />
+<hostnames><hostname name="canopo" type="PTR" /></hostnames>
+<ports><extraports state="unknown" count="0" />
+<port protocol="tcp" portid="22"><state state="open" /><service name="ssh" product="OpenSSH" version="3.9p1" extrainfo="protocol 1.99" method="probed" conf="10" /></port>
+<port protocol="tcp" portid="80"><state state="open" /><service name="http" product="Apache httpd" version="2.0.52" extrainfo="(Red Hat)" method="probed" conf="10" /></port>
+</ports>
+</host>
+<host><status state="up" />
+<address addr="10.0.0.138" addrtype="ipv4" />
+<hostnames><hostname name="SpeedTouch.canopo" type="PTR" /></hostnames>
+<ports><extraports state="unknown" count="0" />
+<port protocol="tcp" portid="22"><state state="closed" /><service name="ssh" method="table" conf="3" /></port>
+<port protocol="tcp" portid="80"><state state="open" /><service name="http" method="table" conf="3" /></port>
+</ports>
+</host>
+<host><status state="up" />
+<address addr="10.0.0.140" addrtype="ipv4" />
+<hostnames><hostname name="servidor.canopo" type="PTR" /></hostnames>
+<ports><extraports state="unknown" count="0" />
+<port protocol="tcp" portid="22"><state state="open" /><service name="ssh" product="OpenSSH" version="3.9p1" extrainfo="protocol 1.99" method="probed" conf="10" /></port>
+<port protocol="tcp" portid="80"><state state="open" /><service name="http" product="Apache httpd" version="2.0.52" extrainfo="(Red Hat)" method="probed" conf="10" /></port>
+</ports>
+</host>
+<host><status state="up" />
+<address addr="10.0.0.150" addrtype="ipv4" />
+<hostnames />
+<ports><extraports state="unknown" count="0" />
+<port protocol="tcp" portid="22"><state state="closed" /><service name="ssh" method="table" conf="3" /></port>
+<port protocol="tcp" portid="80"><state state="open" /><service name="http" product="Apache httpd" version="2.0.53" method="probed" conf="10" /></port>
+</ports>
+</host>
+<runstats><finished time="1121736527" /><hosts up="4" down="250" total="254" />
+<!-- Nmap run completed at Mon Jul 18 22:28:47 2005; 254 IP addresses (4 hosts up) scanned in 110.027 seconds -->
+</runstats></nmaprun>
diff --git a/zenmap/test/xml_test5.xml b/zenmap/test/xml_test5.xml
new file mode 100644
index 0000000..9a54970
--- /dev/null
+++ b/zenmap/test/xml_test5.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" ?>
+<!-- nmap 3.75 scan initiated Mon Jul 18 22:38:31 2005 as: nmap -sV -sU -p80,22 -oX xml_test5.xml 10.0.0.100-180 -->
+<nmaprun scanner="nmap" args="nmap -sV -sU -p80,22 -oX xml_test5.xml 10.0.0.100-180" start="1121737111" version="3.75" xmloutputversion="1.01">
+<scaninfo type="udp" protocol="udp" numservices="2" services="22,80" />
+<verbose level="0" />
+<debugging level="0" />
+<host><status state="up" />
+<address addr="10.0.0.100" addrtype="ipv4" />
+<address addr="00:E0:7D:F5:00:7D" addrtype="mac" vendor="Netronix" />
+<hostnames><hostname name="canopo" type="PTR" /></hostnames>
+<ports><extraports state="unknown" count="0" />
+<port protocol="udp" portid="22"><state state="closed" /><service name="ssh" method="table" conf="3" /></port>
+<port protocol="udp" portid="80"><state state="closed" /><service name="http" method="table" conf="3" /></port>
+</ports>
+</host>
+<host><status state="up" />
+<address addr="10.0.0.138" addrtype="ipv4" />
+<address addr="00:90:D0:1C:85:AD" addrtype="mac" vendor="Thomson Belgium" />
+<hostnames><hostname name="SpeedTouch.canopo" type="PTR" /></hostnames>
+<ports><extraports state="unknown" count="0" />
+<port protocol="udp" portid="22"><state state="closed" /><service name="ssh" method="table" conf="3" /></port>
+<port protocol="udp" portid="80"><state state="closed" /><service name="http" method="table" conf="3" /></port>
+</ports>
+</host>
+<host><status state="up" />
+<address addr="10.0.0.140" addrtype="ipv4" />
+<address addr="00:E0:7D:F5:00:7D" addrtype="mac" vendor="Netronix" />
+<hostnames><hostname name="servidor.canopo" type="PTR" /></hostnames>
+<ports><extraports state="unknown" count="0" />
+<port protocol="udp" portid="22"><state state="closed" /><service name="ssh" method="table" conf="3" /></port>
+<port protocol="udp" portid="80"><state state="closed" /><service name="http" method="table" conf="3" /></port>
+</ports>
+</host>
+<host><status state="up" />
+<address addr="10.0.0.150" addrtype="ipv4" />
+<hostnames />
+<ports><extraports state="unknown" count="0" />
+<port protocol="udp" portid="22"><state state="closed" /><service name="ssh" method="table" conf="3" /></port>
+<port protocol="udp" portid="80"><state state="closed" /><service name="http" method="table" conf="3" /></port>
+</ports>
+</host>
+<runstats><finished time="1121737113" /><hosts up="4" down="77" total="81" />
+<!-- Nmap run completed at Mon Jul 18 22:38:33 2005; 81 IP addresses (4 hosts up) scanned in 2.056 seconds -->
+</runstats></nmaprun>
diff --git a/zenmap/test/xml_test6.xml b/zenmap/test/xml_test6.xml
new file mode 100644
index 0000000..710987b
--- /dev/null
+++ b/zenmap/test/xml_test6.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0" ?>
+<!-- nmap 3.75 scan initiated Mon Jul 18 22:38:39 2005 as: nmap -sV -sU -sS -p80,22 -oX xml_test6.xml 10.0.0.100-180 -->
+<nmaprun scanner="nmap" args="nmap -sV -sU -sS -p80,22 -oX xml_test6.xml 10.0.0.100-180" start="1121737119" version="3.75" xmloutputversion="1.01">
+<scaninfo type="syn" protocol="tcp" numservices="2" services="22,80" />
+<scaninfo type="udp" protocol="udp" numservices="2" services="22,80" />
+<verbose level="0" />
+<debugging level="0" />
+<host><status state="up" />
+<address addr="10.0.0.100" addrtype="ipv4" />
+<address addr="00:E0:7D:F5:00:7D" addrtype="mac" vendor="Netronix" />
+<hostnames><hostname name="canopo" type="PTR" /></hostnames>
+
+<ports>
+ <extraports state="unknown" count="0" />
+ <port protocol="tcp" portid="22">
+ <state state="open" />
+ <service name="ssh" product="OpenSSH" version="3.9p1" extrainfo="protocol 1.99" method="probed" conf="10" />
+ </port>
+ <port protocol="udp" portid="22">
+ <state state="closed" />
+ <service name="ssh" method="table" conf="3" />
+ </port>
+ <port protocol="tcp" portid="80">
+ <state state="open" />
+ <service name="http" product="Apache httpd" version="2.0.52" extrainfo="(Red Hat)" method="probed" conf="10" />
+ </port>
+ <port protocol="udp" portid="80">
+ <state state="closed" />
+ <service name="http" method="table" conf="3" />
+ </port>
+</ports>
+
+</host>
+<host><status state="up" />
+<address addr="10.0.0.138" addrtype="ipv4" />
+<address addr="00:90:D0:1C:85:AD" addrtype="mac" vendor="Thomson Belgium" />
+<hostnames><hostname name="SpeedTouch.canopo" type="PTR" /></hostnames>
+<ports><extraports state="unknown" count="0" />
+<port protocol="tcp" portid="22"><state state="closed" /><service name="ssh" method="table" conf="3" /></port>
+<port protocol="udp" portid="22"><state state="closed" /><service name="ssh" method="table" conf="3" /></port>
+<port protocol="tcp" portid="80"><state state="open" /><service name="http" method="table" conf="3" /></port>
+<port protocol="udp" portid="80"><state state="closed" /><service name="http" method="table" conf="3" /></port>
+</ports>
+</host>
+<host><status state="up" />
+<address addr="10.0.0.140" addrtype="ipv4" />
+<address addr="00:E0:7D:F5:00:7D" addrtype="mac" vendor="Netronix" />
+<hostnames><hostname name="servidor.canopo" type="PTR" /></hostnames>
+<ports><extraports state="unknown" count="0" />
+<port protocol="tcp" portid="22"><state state="open" /><service name="ssh" product="OpenSSH" version="3.9p1" extrainfo="protocol 1.99" method="probed" conf="10" /></port>
+<port protocol="udp" portid="22"><state state="closed" /><service name="ssh" method="table" conf="3" /></port>
+<port protocol="tcp" portid="80"><state state="open" /><service name="http" product="Apache httpd" version="2.0.52" extrainfo="(Red Hat)" method="probed" conf="10" /></port>
+<port protocol="udp" portid="80"><state state="closed" /><service name="http" method="table" conf="3" /></port>
+</ports>
+</host>
+<host><status state="up" />
+<address addr="10.0.0.150" addrtype="ipv4" />
+<hostnames />
+<ports><extraports state="unknown" count="0" />
+<port protocol="tcp" portid="22"><state state="closed" /><service name="ssh" method="table" conf="3" /></port>
+<port protocol="udp" portid="22"><state state="closed" /><service name="ssh" method="table" conf="3" /></port>
+<port protocol="tcp" portid="80"><state state="open" /><service name="http" product="Apache httpd" version="2.0.53" method="probed" conf="10" /></port>
+<port protocol="udp" portid="80"><state state="closed" /><service name="http" method="table" conf="3" /></port>
+</ports>
+</host>
+<runstats><finished time="1121737192" /><hosts up="4" down="77" total="81" />
+<!-- Nmap run completed at Mon Jul 18 22:39:52 2005; 81 IP addresses (4 hosts up) scanned in 72.369 seconds -->
+</runstats></nmaprun>
diff --git a/zenmap/test/xml_test7.xml b/zenmap/test/xml_test7.xml
new file mode 100644
index 0000000..46ab054
--- /dev/null
+++ b/zenmap/test/xml_test7.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" ?>
+<!-- nmap 3.75 scan initiated Mon Jul 18 22:49:43 2005 as: nmap -sV -v -p80,22 -oX xml_test7.xml 10.0.0.100-180 -->
+<nmaprun scanner="nmap" args="nmap -sV -v -p80,22 -oX xml_test7.xml 10.0.0.100-180" start="1121737783" version="3.75" xmloutputversion="1.01">
+<scaninfo type="connect" protocol="tcp" numservices="2" services="22,80" />
+<verbose level="1" />
+<debugging level="0" />
+<host><status state="up" />
+<address addr="10.0.0.100" addrtype="ipv4" />
+<hostnames><hostname name="canopo" type="PTR" /></hostnames>
+<ports><extraports state="unknown" count="0" />
+<port protocol="tcp" portid="22"><state state="open" /><service name="ssh" product="OpenSSH" version="3.9p1" extrainfo="protocol 1.99" method="probed" conf="10" /></port>
+<port protocol="tcp" portid="80"><state state="open" /><service name="http" product="Apache httpd" version="2.0.52" extrainfo="(Red Hat)" method="probed" conf="10" /></port>
+</ports>
+</host>
+<host><status state="up" />
+<address addr="10.0.0.138" addrtype="ipv4" />
+<hostnames><hostname name="SpeedTouch.canopo" type="PTR" /></hostnames>
+<ports><extraports state="unknown" count="0" />
+<port protocol="tcp" portid="22"><state state="closed" /><service name="ssh" method="table" conf="3" /></port>
+<port protocol="tcp" portid="80"><state state="open" /><service name="http" method="table" conf="3" /></port>
+</ports>
+</host>
+<host><status state="up" />
+<address addr="10.0.0.140" addrtype="ipv4" />
+<hostnames><hostname name="servidor.canopo" type="PTR" /></hostnames>
+<ports><extraports state="unknown" count="0" />
+<port protocol="tcp" portid="22"><state state="open" /><service name="ssh" product="OpenSSH" version="3.9p1" extrainfo="protocol 1.99" method="probed" conf="10" /></port>
+<port protocol="tcp" portid="80"><state state="open" /><service name="http" product="Apache httpd" version="2.0.52" extrainfo="(Red Hat)" method="probed" conf="10" /></port>
+</ports>
+</host>
+<host><status state="up" />
+<address addr="10.0.0.150" addrtype="ipv4" />
+<hostnames />
+<ports><extraports state="unknown" count="0" />
+<port protocol="tcp" portid="22"><state state="closed" /><service name="ssh" method="table" conf="3" /></port>
+<port protocol="tcp" portid="80"><state state="open" /><service name="http" product="Apache httpd" version="2.0.53" method="probed" conf="10" /></port>
+</ports>
+</host>
+<runstats><finished time="1121737849" /><hosts up="4" down="77" total="81" />
+<!-- Nmap run completed at Mon Jul 18 22:50:49 2005; 81 IP addresses (4 hosts up) scanned in 66.760 seconds -->
+</runstats></nmaprun>
diff --git a/zenmap/test/xml_test8.xml b/zenmap/test/xml_test8.xml
new file mode 100644
index 0000000..90bcc58
--- /dev/null
+++ b/zenmap/test/xml_test8.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" ?>
+<!-- nmap 3.75 scan initiated Mon Jul 18 22:54:35 2005 as: nmap -sV -v -d -p80,22 -oX xml_test8.xml 10.0.0.100-180 -->
+<nmaprun scanner="nmap" args="nmap -sV -v -d -p80,22 -oX xml_test8.xml 10.0.0.100-180" start="1121738075" version="3.75" xmloutputversion="1.01">
+<scaninfo type="connect" protocol="tcp" numservices="2" services="22,80" />
+<verbose level="2" />
+<debugging level="1" />
+<host><status state="up" />
+<address addr="10.0.0.100" addrtype="ipv4" />
+<hostnames><hostname name="canopo" type="PTR" /></hostnames>
+<ports><extraports state="unknown" count="0" />
+<port protocol="tcp" portid="22"><state state="open" /><service name="ssh" product="OpenSSH" version="3.9p1" extrainfo="protocol 1.99" method="probed" conf="10" /></port>
+<port protocol="tcp" portid="80"><state state="open" /><service name="http" product="Apache httpd" version="2.0.52" extrainfo="(Red Hat)" method="probed" conf="10" /></port>
+</ports>
+</host>
+<host><status state="up" />
+<address addr="10.0.0.138" addrtype="ipv4" />
+<hostnames><hostname name="SpeedTouch.canopo" type="PTR" /></hostnames>
+<ports><extraports state="unknown" count="0" />
+<port protocol="tcp" portid="22"><state state="closed" /><service name="ssh" method="table" conf="3" /></port>
+<port protocol="tcp" portid="80"><state state="open" /><service name="http" method="table" conf="3" /></port>
+</ports>
+</host>
+<host><status state="up" />
+<address addr="10.0.0.140" addrtype="ipv4" />
+<hostnames><hostname name="servidor.canopo" type="PTR" /></hostnames>
+<ports><extraports state="unknown" count="0" />
+<port protocol="tcp" portid="22"><state state="open" /><service name="ssh" product="OpenSSH" version="3.9p1" extrainfo="protocol 1.99" method="probed" conf="10" /></port>
+<port protocol="tcp" portid="80"><state state="open" /><service name="http" product="Apache httpd" version="2.0.52" extrainfo="(Red Hat)" method="probed" conf="10" /></port>
+</ports>
+</host>
+<host><status state="up" />
+<address addr="10.0.0.150" addrtype="ipv4" />
+<hostnames />
+<ports><extraports state="unknown" count="0" />
+<port protocol="tcp" portid="22"><state state="closed" /><service name="ssh" method="table" conf="3" /></port>
+<port protocol="tcp" portid="80"><state state="open" /><service name="http" product="Apache httpd" version="2.0.53" method="probed" conf="10" /></port>
+</ports>
+</host>
+<runstats><finished time="1121738141" /><hosts up="4" down="77" total="81" />
+<!-- Nmap run completed at Mon Jul 18 22:55:41 2005; 81 IP addresses (4 hosts up) scanned in 66.460 seconds -->
+</runstats></nmaprun>
diff --git a/zenmap/test/xml_test9.xml b/zenmap/test/xml_test9.xml
new file mode 100644
index 0000000..48485ed
--- /dev/null
+++ b/zenmap/test/xml_test9.xml
@@ -0,0 +1,84 @@
+<?xml version="1.0" ?>
+<!-- nmap 3.75 scan initiated Mon Jul 18 23:11:23 2005 as: nmap -sV -v -v -v -d -d -O -p80,22 -oX xml_test9.xml 10.0.0.100-180 -->
+<nmaprun scanner="nmap" args="nmap -sV -v -v -v -d -d -O -p80,22 -oX xml_test9.xml 10.0.0.100-180" start="1121739083" version="3.75" xmloutputversion="1.01">
+<scaninfo type="syn" protocol="tcp" numservices="2" services="22,80" />
+<verbose level="5" />
+<debugging level="2" />
+<host><status state="up" />
+<address addr="10.0.0.100" addrtype="ipv4" />
+<address addr="00:E0:7D:F5:00:7D" addrtype="mac" vendor="Netronix" />
+<hostnames><hostname name="canopo" type="PTR" /></hostnames>
+<ports><extraports state="unknown" count="0" />
+<port protocol="tcp" portid="22"><state state="open" /><service name="ssh" product="OpenSSH" version="3.9p1" extrainfo="protocol 1.99" method="probed" conf="10" /></port>
+<port protocol="tcp" portid="80"><state state="open" /><service name="http" product="Apache httpd" version="2.0.52" extrainfo="(Red Hat)" method="probed" conf="10" /></port>
+</ports>
+<os><portused state="open" proto="tcp" portid="22" />
+<osclass type="general purpose" vendor="Linux" osfamily="Linux" osgen="2.4.X" accuracy="100" />
+<osclass type="general purpose" vendor="Linux" osfamily="Linux" osgen="2.5.X" accuracy="100" />
+<osclass type="general purpose" vendor="Linux" osfamily="Linux" osgen="2.6.X" accuracy="100" />
+<osmatch name="Linux 2.4.18 - 2.6.7" accuracy="100" />
+</os>
+<uptime seconds="209980" lastboot="Sat Jul 16 12:52:52 2005" />
+<tcpsequence index="4310523" class="random positive increments" difficulty="Good luck!" values="E2D760AD,E2E59C0F,E3457AA2,E294986A,E28A3A45,E27C9419" />
+<ipidsequence class="All zeros" values="0,0,0,0,0,0" />
+<tcptssequence class="1000HZ" values="C840990,C8409FF,C840A6E,C840ADD,C840B4C,C840BBB" />
+</host>
+<host><status state="up" />
+<address addr="10.0.0.138" addrtype="ipv4" />
+<address addr="00:90:D0:1C:85:AD" addrtype="mac" vendor="Thomson Belgium" />
+<hostnames><hostname name="SpeedTouch.canopo" type="PTR" /></hostnames>
+<ports><extraports state="unknown" count="0" />
+<port protocol="tcp" portid="22"><state state="closed" /><service name="ssh" method="table" conf="3" /></port>
+<port protocol="tcp" portid="80"><state state="open" /><service name="http" method="table" conf="3" /></port>
+</ports>
+<os><portused state="open" proto="tcp" portid="80" />
+<portused state="closed" proto="tcp" portid="22" />
+<osclass type="broadband router" vendor="Alcatel" osfamily="embedded" accuracy="100" />
+<osmatch name="Alcatel Speed Touch *DSL modem/router" accuracy="100" />
+</os>
+<uptime seconds="34093" lastboot="Mon Jul 18 13:44:21 2005" />
+<tcpsequence index="1" class="64K rule" difficulty="Trivial joke" values="4C4D601,4C6CA01,4C7C401,4C8BE01,4C9B801,4CAB201" />
+<ipidsequence class="Incremental" values="6D7,6D8,6D9,6DA,6DB,6DC" />
+<tcptssequence class="2HZ" values="10A59,10A5A,10A5A,10A5A,10A5A,10A5A" />
+</host>
+<host><status state="up" />
+<address addr="10.0.0.140" addrtype="ipv4" />
+<address addr="00:E0:7D:F5:00:7D" addrtype="mac" vendor="Netronix" />
+<hostnames><hostname name="servidor.canopo" type="PTR" /></hostnames>
+<ports><extraports state="unknown" count="0" />
+<port protocol="tcp" portid="22"><state state="open" /><service name="ssh" product="OpenSSH" version="3.9p1" extrainfo="protocol 1.99" method="probed" conf="10" /></port>
+<port protocol="tcp" portid="80"><state state="open" /><service name="http" product="Apache httpd" version="2.0.52" extrainfo="(Red Hat)" method="probed" conf="10" /></port>
+</ports>
+<os><portused state="open" proto="tcp" portid="22" />
+<osclass type="general purpose" vendor="Linux" osfamily="Linux" osgen="2.4.X" accuracy="100" />
+<osclass type="general purpose" vendor="Linux" osfamily="Linux" osgen="2.5.X" accuracy="100" />
+<osclass type="general purpose" vendor="Linux" osfamily="Linux" osgen="2.6.X" accuracy="100" />
+<osmatch name="Linux 2.4.18 - 2.6.7" accuracy="100" />
+</os>
+<uptime seconds="209985" lastboot="Sat Jul 16 12:52:51 2005" />
+<tcpsequence index="1351396" class="random positive increments" difficulty="Good luck!" values="E347AB00,E37465BF,E3249AA6,E35AC707,E3015E55,E3640321" />
+<ipidsequence class="All zeros" values="0,0,0,0,0,0" />
+<tcptssequence class="1000HZ" values="C841C39,C841CA8,C841D18,C841D87,C841DF6,C841E65" />
+</host>
+<host><status state="up" />
+<address addr="10.0.0.150" addrtype="ipv4" />
+<hostnames />
+<ports><extraports state="unknown" count="0" />
+<port protocol="tcp" portid="22"><state state="closed" /><service name="ssh" method="table" conf="3" /></port>
+<port protocol="tcp" portid="80"><state state="open" /><service name="http" product="Apache httpd" version="2.0.53" method="probed" conf="10" /></port>
+</ports>
+<os><portused state="open" proto="tcp" portid="80" />
+<portused state="closed" proto="tcp" portid="22" />
+<osclass type="general purpose" vendor="Linux" osfamily="Linux" osgen="2.4.X" accuracy="100" />
+<osclass type="general purpose" vendor="Linux" osfamily="Linux" osgen="2.5.X" accuracy="100" />
+<osclass type="general purpose" vendor="Linux" osfamily="Linux" osgen="2.6.X" accuracy="100" />
+<osmatch name="Linux 2.5.25 - 2.6.3 or Gentoo 1.2 Linux 2.4.19 rc1-rc7)" accuracy="100" />
+</os>
+<uptime seconds="11809" lastboot="Mon Jul 18 19:55:55 2005" />
+<tcpsequence index="3756994" class="random positive increments" difficulty="Good luck!" values="69122F00,69482CCE,687FC128,68DC90DB,68A2545D,68D07062" />
+<ipidsequence class="All zeros" values="0,0,0,0,0,0" />
+<tcptssequence class="1000HZ" values="B42EE6,B42F55,B42FC4,B43033,B430A2,B43111" />
+</host>
+<runstats><finished time="1121739164" /><hosts up="4" down="77" total="81" />
+<!-- Nmap run completed at Mon Jul 18 23:12:44 2005; 81 IP addresses (4 hosts up) scanned in 81.153 seconds -->
+</runstats></nmaprun>