Buenas estoy tratando de parsear los resultados de un escaneo de red con nmap, cabe aclarar que es para un lab que estoy haciendo.
Obtengo como resultado:
<!-- Nmap 4.20 scan initiated Tue Oct 2 14:33:46 2007 as: nmap -sS -oX tcp.xml -iL ips.lst -->
<nmaprun scanner="nmap" args="nmap -sS -oX tcp.xml -iL ips.lst" start="1191346426" startstr="Tue Oct 2 14:33:46 2007" version="4.20" xmloutputversion="1.01">
<scaninfo type="syn" protocol="tcp" numservices="1697" 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, ...