js处理nmap扫描(banner扫描--系统类型探测)结果

友链

现在看来,我应该是造了一个轮子,github上有一个开源的可以对nmap扫描结果进行美化的
https://github.com/honze-net/nmap-bootstrap-xsl

https://gitee.com/wochinijiamile/suiyi/blob/master/nmap-bootstrap.xsl

使用linux的xsltproc工具指定该xsl文件可以直接将scannme.xml转换成美观的html格式
xsltproc -o scanme.html nmap-bootstrap.xsl scanme.xml

nmap banner扫描的命令

nmap -sS -sV -O -p1024,1026,1394,2000,21,22,3306,443,4443,4444,4568,5245,5247,554,58000,6030,6048,6049,6060,6061,6301,6302,6303,80,8000,8001,8002,8081,8090,8091,81,82,8291,8292,90,9000,9051,9052,9096,9097,95,99 -T5 -oX nmap-results.xml -iL 1.txt

使用-p指定1.txt中主机的共有端口,因为nmap没办法单独指定ip和端口,所以不可避免地会出现一些无效的端口,不过影响不是很大

这个代码要结合另一个python代码(用于将xml格式的nmap扫描结果处理成json格式)使用,后面会更新出来

处理xml为json的python代码

import json
import xmltodict
f = open("nmap_output.xml")
xml_content = f.read()
f.close()
print(json.dumps(xmltodict.parse(xml_content), indent=4, sort_keys=True))

首先看一下处理结果:
js处理nmap扫描(banner扫描--系统类型探测)结果_第1张图片
现在还存在一些问题,就是直接使用JavaScript的JSON.parse会出现转换错误问题,因为nmap的banner扫描结果中有些键的值中包含有",会导致转换json格式的时候出现错误,但是这个肯定是有解决方案的,因为json在线编辑就可以正常处理,回头可以研究一下他的代码

另外就是需要将json内容中的@替换为空,不然会影响js代码的执行

最后附上处理的源代码和样例数据

<script>
var str =`[{
  "nmaprun": {
    "args": "nmap -sS -sV -O -p1024,1026,1394,2000,21,22,3306,443,4443,4444,4568,5245,5247,554,58000,6030,6048,6049,6060,6061,6301,6302,6303,80,8000,8001,8002,8081,8090,8091,81,82,8291,8292,90,9000,9051,9052,9096,9097,95,99 -T5 -oX nmap-results.xml -iL 1.txt",
    "scanner": "nmap",
    "start": "1592217224",
    "startstr": "Mon Jun 15 10:33:44 2020",
    "version": "7.60",
    "xmloutputversion": "1.04",
    "debugging": {
      "level": "0"
    },
    "host": [
      {
        "endtime": "1592217510",
        "starttime": "1592217224",
        "address": {
          "addr": "10.146.180.10",
          "addrtype": "ipv4"
        },
        "hostnames": {
          "hostname": {
            "name": "10-146-180-10.dsl.contoso.com",
            "type": "PTR"
          }
        },
        "ipidsequence": {
          "class": "All zeros",
          "values": "0,0,0,0,0"
        },
        "os": {
          "osmatch": [
            {
              "accuracy": "96",
              "line": "62168",
              "name": "Linux 3.2 - 4.8",
              "osclass": [
                {
                  "accuracy": "96",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3"
                },
                {
                  "accuracy": "96",
                  "osfamily": "Linux",
                  "osgen": "4.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:4"
                }
              ]
            },
            {
              "accuracy": "94",
              "line": "63402",
              "name": "Android 4.2.2 (Linux 3.4)",
              "osclass": [
                {
                  "accuracy": "94",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "phone",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3.4"
                },
                {
                  "accuracy": "94",
                  "osfamily": "Android",
                  "osgen": "4.2.X",
                  "type": "phone",
                  "vendor": "Google",
                  "cpe": "cpe:/o:google:android:4.2.2"
                }
              ]
            },
            {
              "accuracy": "93",
              "line": "29023",
              "name": "Android 4.1.1",
              "osclass": {
                "accuracy": "93",
                "osfamily": "Android",
                "osgen": "4.1.X",
                "type": "media device",
                "vendor": "Google",
                "cpe": "cpe:/o:google:android:4.1.1"
              }
            },
            {
              "accuracy": "93",
              "line": "60500",
              "name": "Linux 3.10 - 4.8",
              "osclass": [
                {
                  "accuracy": "93",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3"
                },
                {
                  "accuracy": "93",
                  "osfamily": "Linux",
                  "osgen": "4.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:4"
                }
              ]
            },
            {
              "accuracy": "90",
              "line": "61998",
              "name": "Linux 3.2 - 3.16",
              "osclass": {
                "accuracy": "90",
                "osfamily": "Linux",
                "osgen": "3.X",
                "type": "general purpose",
                "vendor": "Linux",
                "cpe": "cpe:/o:linux:linux_kernel:3"
              }
            },
            {
              "accuracy": "90",
              "line": "32611",
              "name": "HP P2000 G3 NAS device",
              "osclass": {
                "accuracy": "90",
                "osfamily": "embedded",
                "type": "storage-misc",
                "vendor": "HP",
                "cpe": "cpe:/h:hp:p2000_g3"
              }
            },
            {
              "accuracy": "90",
              "line": "53781",
              "name": "Linux 2.6.32 - 3.10",
              "osclass": [
                {
                  "accuracy": "90",
                  "osfamily": "Linux",
                  "osgen": "2.6.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:2.6"
                },
                {
                  "accuracy": "90",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3"
                }
              ]
            },
            {
              "accuracy": "89",
              "line": "61379",
              "name": "Linux 3.18 (OpenWrt)",
              "osclass": {
                "accuracy": "89",
                "osfamily": "Linux",
                "osgen": "3.X",
                "type": "general purpose",
                "vendor": "Linux",
                "cpe": "cpe:/o:linux:linux_kernel:3.18"
              }
            },
            {
              "accuracy": "89",
              "line": "63758",
              "name": "OpenWrt Chaos Calmer 15.05 (Linux 3.18) or Designated Driver (Linux 4.1)",
              "osclass": [
                {
                  "accuracy": "89",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "WAP",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3.18"
                },
                {
                  "accuracy": "89",
                  "osfamily": "Linux",
                  "osgen": "4.X",
                  "type": "WAP",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:4.1"
                }
              ]
            },
            {
              "accuracy": "89",
              "line": "29322",
              "name": "Android 4.0",
              "osclass": {
                "accuracy": "89",
                "osfamily": "Android",
                "osgen": "4.X",
                "type": "phone",
                "vendor": "Google",
                "cpe": "cpe:/o:google:android:4.0"
              }
            }
          ],
          "portused": {
            "portid": "80",
            "proto": "tcp",
            "state": "open"
          }
        },
        "ports": {
          "extraports": {
            "count": "33",
            "state": "filtered",
            "extrareasons": {
              "count": "33",
              "reason": "no-responses"
            }
          },
          "port": [
            {
              "portid": "80",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "devicetype": "webcam",
                "method": "probed",
                "name": "http",
                "product": "Hikvision Network Video Recorder http admin"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "50",
                "state": "open"
              }
            },
            {
              "portid": "81",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "hosts2-ns"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "50",
                "state": "open"
              }
            },
            {
              "portid": "82",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "xfer"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "50",
                "state": "open"
              }
            },
            {
              "portid": "554",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "method": "probed",
                "name": "rtsp",
                "ostype": "Mac OS X",
                "product": "Apple AirTunes rtspd",
                "cpe": "cpe:/o:apple:mac_os_x"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "50",
                "state": "open"
              }
            },
            {
              "portid": "1024",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "method": "probed",
                "name": "rtsp",
                "ostype": "Mac OS X",
                "product": "Apple AirTunes rtspd",
                "cpe": "cpe:/o:apple:mac_os_x"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "50",
                "state": "open"
              }
            },
            {
              "portid": "1026",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "method": "probed",
                "name": "rtsp",
                "ostype": "Mac OS X",
                "product": "Apple AirTunes rtspd",
                "cpe": "cpe:/o:apple:mac_os_x"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "50",
                "state": "open"
              }
            },
            {
              "portid": "8000",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "method": "probed",
                "name": "ipcam",
                "product": "Hikvision IPCam control port"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "50",
                "state": "open"
              }
            },
            {
              "portid": "8001",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "method": "probed",
                "name": "ipcam",
                "product": "Hikvision IPCam control port"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "50",
                "state": "open"
              }
            },
            {
              "portid": "8002",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "method": "probed",
                "name": "ipcam",
                "product": "Hikvision IPCam control port"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "50",
                "state": "open"
              }
            }
          ]
        },
        "status": {
          "reason": "reset",
          "reason_ttl": "50",
          "state": "up"
        },
        "tcpsequence": {
          "difficulty": "Good luck!",
          "index": "222",
          "values": "F48C7E27,43B99765,D6EC4B75,9563B781,470F37FF"
        },
        "tcptssequence": {
          "class": "100HZ",
          "values": "12A9B33,12A9B8C,12A9C41,12A9C9D,12A9CF5"
        },
        "times": {
          "rttvar": "7478",
          "srtt": "108207",
          "to": "300000"
        },
        "uptime": {
          "lastboot": "Sat Jun 13 04:15:59 2020",
          "seconds": "195751"
        }
      },
      {
        "endtime": "1592217508",
        "starttime": "1592217224",
        "address": {
          "addr": "10.146.180.14",
          "addrtype": "ipv4"
        },
        "distance": {
          "value": "10"
        },
        "hostnames": {
          "hostname": {
            "name": "10-146-180-14.dsl.contoso.com",
            "type": "PTR"
          }
        },
        "ipidsequence": {
          "class": "All zeros",
          "values": "0,0,0,0,0,0"
        },
        "os": {
          "osmatch": [
            {
              "accuracy": "96",
              "line": "53781",
              "name": "Linux 2.6.32 - 3.10",
              "osclass": [
                {
                  "accuracy": "96",
                  "osfamily": "Linux",
                  "osgen": "2.6.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:2.6"
                },
                {
                  "accuracy": "96",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3"
                }
              ]
            },
            {
              "accuracy": "94",
              "line": "61998",
              "name": "Linux 3.2 - 3.16",
              "osclass": {
                "accuracy": "94",
                "osfamily": "Linux",
                "osgen": "3.X",
                "type": "general purpose",
                "vendor": "Linux",
                "cpe": "cpe:/o:linux:linux_kernel:3"
              }
            },
            {
              "accuracy": "93",
              "line": "53985",
              "name": "Linux 2.6.32 - 3.5",
              "osclass": [
                {
                  "accuracy": "93",
                  "osfamily": "Linux",
                  "osgen": "2.6.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:2.6"
                },
                {
                  "accuracy": "93",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3"
                }
              ]
            },
            {
              "accuracy": "93",
              "line": "62168",
              "name": "Linux 3.2 - 4.8",
              "osclass": [
                {
                  "accuracy": "93",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3"
                },
                {
                  "accuracy": "93",
                  "osfamily": "Linux",
                  "osgen": "4.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:4"
                }
              ]
            },
            {
              "accuracy": "92",
              "line": "53811",
              "name": "Linux 2.6.32 - 3.13",
              "osclass": [
                {
                  "accuracy": "92",
                  "osfamily": "Linux",
                  "osgen": "2.6.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:2.6"
                },
                {
                  "accuracy": "92",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3"
                }
              ]
            },
            {
              "accuracy": "92",
              "line": "8432",
              "name": "AVM FRITZ!Box (FritzOS 6.03)",
              "osclass": {
                "accuracy": "92",
                "osfamily": "FritzOS",
                "osgen": "6.X",
                "type": "WAP",
                "vendor": "AVM",
                "cpe": "cpe:/o:avm:fritzos:6.03"
              }
            },
            {
              "accuracy": "92",
              "line": "40441",
              "name": "Lexmark CS410dn printer",
              "osclass": {
                "accuracy": "92",
                "osfamily": "embedded",
                "type": "printer",
                "vendor": "Lexmark",
                "cpe": "cpe:/h:lexmark:cs410dn"
              }
            },
            {
              "accuracy": "92",
              "line": "55245",
              "name": "Linux 2.6.38 - 3.0",
              "osclass": [
                {
                  "accuracy": "92",
                  "osfamily": "Linux",
                  "osgen": "2.6.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:2.6"
                },
                {
                  "accuracy": "92",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3"
                }
              ]
            },
            {
              "accuracy": "91",
              "line": "54028",
              "name": "Linux 2.6.32 - 3.9",
              "osclass": [
                {
                  "accuracy": "91",
                  "osfamily": "Linux",
                  "osgen": "2.6.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:2.6"
                },
                {
                  "accuracy": "91",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3"
                }
              ]
            },
            {
              "accuracy": "91",
              "line": "29371",
              "name": "Android 4.2.2 (Linux 3.4)",
              "osclass": [
                {
                  "accuracy": "91",
                  "osfamily": "Android",
                  "osgen": "4.X",
                  "type": "phone",
                  "vendor": "Google",
                  "cpe": "cpe:/o:google:android:4.2.2"
                },
                {
                  "accuracy": "91",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "phone",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3.4"
                }
              ]
            }
          ],
          "portused": [
            {
              "portid": "2000",
              "proto": "tcp",
              "state": "open"
            },
            {
              "portid": "21",
              "proto": "tcp",
              "state": "closed"
            },
            {
              "portid": "38229",
              "proto": "udp",
              "state": "closed"
            }
          ]
        },
        "ports": {
          "extraports": {
            "count": "40",
            "state": "closed",
            "extrareasons": {
              "count": "40",
              "reason": "resets"
            }
          },
          "port": [
            {
              "portid": "2000",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "method": "probed",
                "name": "bandwidth-test",
                "product": "MikroTik bandwidth-test server"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "51",
                "state": "open"
              }
            },
            {
              "portid": "8291",
              "protocol": "tcp",
              "service": {
                "conf": "8",
                "method": "probed",
                "name": "tcpwrapped"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "51",
                "state": "open"
              }
            }
          ]
        },
        "status": {
          "reason": "echo-reply",
          "reason_ttl": "51",
          "state": "up"
        },
        "tcpsequence": {
          "difficulty": "Good luck!",
          "index": "233",
          "values": "F98A786D,54F13A5B,744AE9F5,66D89E2B,28E5E518,41F82E86"
        },
        "tcptssequence": {
          "class": "100HZ",
          "values": "16605760,166057BA,16605813,1660586E,166058C8,16605922"
        },
        "times": {
          "rttvar": "5850",
          "srtt": "105873",
          "to": "300000"
        },
        "uptime": {
          "lastboot": "Sat May  2 23:48:48 2020",
          "seconds": "3754182"
        }
      },
      {
        "endtime": "1592217508",
        "starttime": "1592217224",
        "address": {
          "addr": "10.146.180.162",
          "addrtype": "ipv4"
        },
        "distance": {
          "value": "30"
        },
        "hostnames": {
          "hostname": {
            "name": "10-146-180-162.dsl.contoso.com",
            "type": "PTR"
          }
        },
        "ipidsequence": {
          "class": "All zeros",
          "values": "0,0,0,0,0,0"
        },
        "os": {
          "osmatch": [
            {
              "accuracy": "96",
              "line": "53781",
              "name": "Linux 2.6.32 - 3.10",
              "osclass": [
                {
                  "accuracy": "96",
                  "osfamily": "Linux",
                  "osgen": "2.6.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:2.6"
                },
                {
                  "accuracy": "96",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3"
                }
              ]
            },
            {
              "accuracy": "93",
              "line": "53811",
              "name": "Linux 2.6.32 - 3.13",
              "osclass": [
                {
                  "accuracy": "93",
                  "osfamily": "Linux",
                  "osgen": "2.6.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:2.6"
                },
                {
                  "accuracy": "93",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3"
                }
              ]
            },
            {
              "accuracy": "93",
              "line": "53985",
              "name": "Linux 2.6.32 - 3.5",
              "osclass": [
                {
                  "accuracy": "93",
                  "osfamily": "Linux",
                  "osgen": "2.6.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:2.6"
                },
                {
                  "accuracy": "93",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3"
                }
              ]
            },
            {
              "accuracy": "93",
              "line": "62168",
              "name": "Linux 3.2 - 4.8",
              "osclass": [
                {
                  "accuracy": "93",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3"
                },
                {
                  "accuracy": "93",
                  "osfamily": "Linux",
                  "osgen": "4.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:4"
                }
              ]
            },
            {
              "accuracy": "92",
              "line": "52612",
              "name": "Linux 2.6.32",
              "osclass": {
                "accuracy": "92",
                "osfamily": "Linux",
                "osgen": "2.6.X",
                "type": "general purpose",
                "vendor": "Linux",
                "cpe": "cpe:/o:linux:linux_kernel:2.6.32"
              }
            },
            {
              "accuracy": "92",
              "line": "55290",
              "name": "Linux 2.6.38 - 3.0",
              "osclass": [
                {
                  "accuracy": "92",
                  "osfamily": "Linux",
                  "osgen": "2.6.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:2.6"
                },
                {
                  "accuracy": "92",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3"
                }
              ]
            },
            {
              "accuracy": "91",
              "line": "54028",
              "name": "Linux 2.6.32 - 3.9",
              "osclass": [
                {
                  "accuracy": "91",
                  "osfamily": "Linux",
                  "osgen": "2.6.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:2.6"
                },
                {
                  "accuracy": "91",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3"
                }
              ]
            },
            {
              "accuracy": "91",
              "line": "60082",
              "name": "Linux 3.10",
              "osclass": {
                "accuracy": "91",
                "osfamily": "Linux",
                "osgen": "3.X",
                "type": "general purpose",
                "vendor": "Linux",
                "cpe": "cpe:/o:linux:linux_kernel:3.10"
              }
            },
            {
              "accuracy": "91",
              "line": "61998",
              "name": "Linux 3.2 - 3.16",
              "osclass": {
                "accuracy": "91",
                "osfamily": "Linux",
                "osgen": "3.X",
                "type": "general purpose",
                "vendor": "Linux",
                "cpe": "cpe:/o:linux:linux_kernel:3"
              }
            },
            {
              "accuracy": "91",
              "line": "61524",
              "name": "Linux 3.2",
              "osclass": {
                "accuracy": "91",
                "osfamily": "Linux",
                "osgen": "3.X",
                "type": "general purpose",
                "vendor": "Linux",
                "cpe": "cpe:/o:linux:linux_kernel:3.2"
              }
            }
          ],
          "portused": [
            {
              "portid": "80",
              "proto": "tcp",
              "state": "open"
            },
            {
              "portid": "22",
              "proto": "tcp",
              "state": "closed"
            },
            {
              "portid": "39610",
              "proto": "udp",
              "state": "closed"
            }
          ]
        },
        "ports": {
          "extraports": {
            "count": "38",
            "state": "closed",
            "extrareasons": {
              "count": "38",
              "reason": "resets"
            }
          },
          "port": [
            {
              "portid": "21",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "ftp"
              },
              "state": {
                "reason": "no-response",
                "reason_ttl": "0",
                "state": "filtered"
              }
            },
            {
              "portid": "80",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "devicetype": "broadband router",
                "extrainfo": "ZTE ZXV10 W300 ADSL router http config",
                "method": "probed",
                "name": "http",
                "ostype": "Linux 2.4.17",
                "product": "Mini web server",
                "version": "1.0",
                "cpe": [
                  "cpe:/h:zte:zxv10_w300",
                  "cpe:/o:montavista:linux_kernel:2.4.17"
                ]
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "50",
                "state": "open"
              }
            },
            {
              "portid": "443",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "https"
              },
              "state": {
                "reason": "no-response",
                "reason_ttl": "0",
                "state": "filtered"
              }
            },
            {
              "portid": "58000",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "devicetype": "router",
                "method": "probed",
                "name": "http",
                "product": "ZTE H220N router http config",
                "version": "1.0",
                "cpe": "cpe:/h:zte:h220n"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "50",
                "state": "open"
              }
            }
          ]
        },
        "status": {
          "reason": "echo-reply",
          "reason_ttl": "50",
          "state": "up"
        },
        "tcpsequence": {
          "difficulty": "Good luck!",
          "index": "236",
          "values": "88E8010E,3D27EB68,E34E8868,63C5FB32,76B784A4,1AC80CA9"
        },
        "tcptssequence": {
          "class": "1000HZ",
          "values": "18EF4A8,18EF82D,18EFBB4,18EFF3B,18F02C5,18F0648"
        },
        "times": {
          "rttvar": "5749",
          "srtt": "321201",
          "to": "300000"
        },
        "uptime": {
          "lastboot": "Mon Jun 15 03:21:48 2020",
          "seconds": "26202"
        }
      },
      {
        "endtime": "1592217508",
        "starttime": "1592217224",
        "address": {
          "addr": "10.146.180.186",
          "addrtype": "ipv4"
        },
        "distance": {
          "value": "10"
        },
        "hostnames": {
          "hostname": {
            "name": "10-146-180-186.dsl.contoso.com",
            "type": "PTR"
          }
        },
        "ipidsequence": {
          "class": "Incremental",
          "values": "6E7F,6E80,6E81,6E82,6E83,6E84"
        },
        "os": {
          "osmatch": {
            "accuracy": "87",
            "line": "19926",
            "name": "D-Link DWL-624+ or DWL-2000AP, or TRENDnet TEW-432BRP WAP",
            "osclass": [
              {
                "accuracy": "87",
                "osfamily": "embedded",
                "type": "WAP",
                "vendor": "D-Link",
                "cpe": [
                  "cpe:/h:dlink:dwl-624%2b",
                  "cpe:/h:dlink:dwl-2000ap"
                ]
              },
              {
                "accuracy": "87",
                "osfamily": "embedded",
                "type": "WAP",
                "vendor": "TRENDnet",
                "cpe": "cpe:/h:trendnet:tew-432brp"
              }
            ]
          },
          "portused": [
            {
              "portid": "1394",
              "proto": "tcp",
              "state": "open"
            },
            {
              "portid": "22",
              "proto": "tcp",
              "state": "closed"
            },
            {
              "portid": "34106",
              "proto": "udp",
              "state": "closed"
            }
          ]
        },
        "ports": {
          "extraports": {
            "count": "26",
            "state": "filtered",
            "extrareasons": {
              "count": "26",
              "reason": "no-responses"
            }
          },
          "port": [
            {
              "portid": "22",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "ssh"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "242",
                "state": "closed"
              }
            },
            {
              "portid": "80",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "http"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "242",
                "state": "closed"
              }
            },
            {
              "portid": "81",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "hosts2-ns"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "242",
                "state": "closed"
              }
            },
            {
              "portid": "82",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "xfer"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "242",
                "state": "closed"
              }
            },
            {
              "portid": "90",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "dnsix"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "242",
                "state": "closed"
              }
            },
            {
              "portid": "95",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "supdup"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "242",
                "state": "closed"
              }
            },
            {
              "portid": "99",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "metagram"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "242",
                "state": "closed"
              }
            },
            {
              "portid": "443",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "https"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "242",
                "state": "closed"
              }
            },
            {
              "portid": "1024",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "kdm"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "242",
                "state": "closed"
              }
            },
            {
              "portid": "1026",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "LSA-or-nterm"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "242",
                "state": "closed"
              }
            },
            {
              "portid": "1394",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "method": "probed",
                "name": "http",
                "ostype": "Windows",
                "product": "Microsoft IIS httpd",
                "version": "8.5",
                "cpe": [
                  "cpe:/a:microsoft:iis:8.5",
                  "cpe:/o:microsoft:windows"
                ]
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "114",
                "state": "open"
              }
            },
            {
              "portid": "2000",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "cisco-sccp"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "242",
                "state": "closed"
              }
            },
            {
              "portid": "3306",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "mysql"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "242",
                "state": "closed"
              }
            },
            {
              "portid": "4443",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "pharos"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "242",
                "state": "closed"
              }
            },
            {
              "portid": "4444",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "method": "probed",
                "name": "http",
                "product": "Cisco ASA SSL VPN",
                "tunnel": "ssl"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "241",
                "state": "open"
              }
            },
            {
              "portid": "58000",
              "protocol": "tcp",
              "state": {
                "reason": "reset",
                "reason_ttl": "242",
                "state": "closed"
              }
            }
          ]
        },
        "status": {
          "reason": "echo-reply",
          "reason_ttl": "242",
          "state": "up"
        },
        "tcpsequence": {
          "difficulty": "Good luck!",
          "index": "237",
          "values": "F8852874,90BC4962,E1090BEB,28D361FC,1003AAEB,25326119"
        },
        "tcptssequence": {
          "class": "100HZ",
          "values": "3E851FED,3E852047,3E8520A1,3E8520FB,3E852155,3E8521AF"
        },
        "times": {
          "rttvar": "4837",
          "srtt": "105547",
          "to": "300000"
        },
        "uptime": {
          "lastboot": "Sat Feb 15 00:58:55 2020",
          "seconds": "10489175"
        }
      },
      {
        "endtime": "1592217510",
        "starttime": "1592217224",
        "address": {
          "addr": "10.146.180.206",
          "addrtype": "ipv4"
        },
        "hostnames": {
          "hostname": {
            "name": "10-146-180-206.dsl.contoso.com",
            "type": "PTR"
          }
        },
        "ipidsequence": {
          "class": "All zeros",
          "values": "0,0,0,0,0"
        },
        "os": {
          "osmatch": [
            {
              "accuracy": "100",
              "line": "53781",
              "name": "Linux 2.6.32 - 3.10",
              "osclass": [
                {
                  "accuracy": "100",
                  "osfamily": "Linux",
                  "osgen": "2.6.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:2.6"
                },
                {
                  "accuracy": "100",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3"
                }
              ]
            },
            {
              "accuracy": "100",
              "line": "61998",
              "name": "Linux 3.2 - 3.16",
              "osclass": {
                "accuracy": "100",
                "osfamily": "Linux",
                "osgen": "3.X",
                "type": "general purpose",
                "vendor": "Linux",
                "cpe": "cpe:/o:linux:linux_kernel:3"
              }
            }
          ],
          "portused": {
            "portid": "554",
            "proto": "tcp",
            "state": "open"
          }
        },
        "ports": {
          "extraports": {
            "count": "37",
            "state": "filtered",
            "extrareasons": {
              "count": "37",
              "reason": "no-responses"
            }
          },
          "port": [
            {
              "portid": "554",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "method": "probed",
                "name": "rtsp",
                "ostype": "Mac OS X",
                "product": "Apple AirTunes rtspd",
                "cpe": "cpe:/o:apple:mac_os_x"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "50",
                "state": "open"
              }
            },
            {
              "portid": "8000",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "method": "probed",
                "name": "ipcam",
                "product": "Hikvision IPCam control port"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "50",
                "state": "open"
              }
            },
            {
              "portid": "8001",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "devicetype": "webcam",
                "method": "probed",
                "name": "http",
                "product": "Hikvision Network Video Recorder http admin"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "50",
                "state": "open"
              }
            },
            {
              "portid": "8002",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "teradataordbms"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "50",
                "state": "open"
              }
            },
            {
              "portid": "8081",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "blackice-icecap"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "50",
                "state": "open"
              }
            }
          ]
        },
        "status": {
          "reason": "echo-reply",
          "reason_ttl": "51",
          "state": "up"
        },
        "tcpsequence": {
          "difficulty": "Good luck!",
          "index": "247",
          "values": "91CDF607,CA93E2CA,E570F4A0,BE86BBE6,20C8E18C"
        },
        "tcptssequence": {
          "class": "other",
          "values": "963D3,963F1,9649B,9644B,96469"
        },
        "times": {
          "rttvar": "130912",
          "srtt": "384051",
          "to": "300000"
        },
        "uptime": {
          "lastboot": "Mon Jun 15 09:51:21 2020",
          "seconds": "2829"
        }
      },
      {
        "endtime": "1592217510",
        "starttime": "1592217224",
        "address": {
          "addr": "10.146.180.218",
          "addrtype": "ipv4"
        },
        "distance": {
          "value": "30"
        },
        "hostnames": {
          "hostname": {
            "name": "10-146-180-218.dsl.contoso.com",
            "type": "PTR"
          }
        },
        "ipidsequence": {
          "class": "All zeros",
          "values": "0,0,0,0,0,0"
        },
        "os": {
          "osmatch": [
            {
              "accuracy": "94",
              "line": "64642",
              "name": "Linksys EA3500 WAP",
              "osclass": [
                {
                  "accuracy": "94",
                  "osfamily": "Linux",
                  "type": "WAP",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel"
                },
                {
                  "accuracy": "94",
                  "osfamily": "embedded",
                  "type": "WAP",
                  "vendor": "Linksys",
                  "cpe": "cpe:/h:linksys:ea3500"
                }
              ]
            },
            {
              "accuracy": "93",
              "line": "61194",
              "name": "Linux 3.16",
              "osclass": {
                "accuracy": "93",
                "osfamily": "Linux",
                "osgen": "3.X",
                "type": "general purpose",
                "vendor": "Linux",
                "cpe": "cpe:/o:linux:linux_kernel:3.16"
              }
            },
            {
              "accuracy": "91",
              "line": "62168",
              "name": "Linux 3.2 - 4.8",
              "osclass": [
                {
                  "accuracy": "91",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3"
                },
                {
                  "accuracy": "91",
                  "osfamily": "Linux",
                  "osgen": "4.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:4"
                }
              ]
            },
            {
              "accuracy": "89",
              "line": "60902",
              "name": "Linux 3.13",
              "osclass": {
                "accuracy": "89",
                "osfamily": "Linux",
                "osgen": "3.X",
                "type": "general purpose",
                "vendor": "Linux",
                "cpe": "cpe:/o:linux:linux_kernel:3.13"
              }
            },
            {
              "accuracy": "88",
              "line": "47445",
              "name": "Linux 2.6.18 - 2.6.32",
              "osclass": {
                "accuracy": "88",
                "osfamily": "Linux",
                "osgen": "2.6.X",
                "type": "general purpose",
                "vendor": "Linux",
                "cpe": "cpe:/o:linux:linux_kernel:2.6"
              }
            },
            {
              "accuracy": "88",
              "line": "87655",
              "name": "PheeNet WAP-854GP WAP",
              "osclass": {
                "accuracy": "88",
                "osfamily": "embedded",
                "type": "WAP",
                "vendor": "PheeNet",
                "cpe": "cpe:/h:pheenet:wap-854gp"
              }
            },
            {
              "accuracy": "88",
              "line": "63981",
              "name": "Linux 4.2",
              "osclass": {
                "accuracy": "88",
                "osfamily": "Linux",
                "osgen": "4.X",
                "type": "general purpose",
                "vendor": "Linux",
                "cpe": "cpe:/o:linux:linux_kernel:4.2"
              }
            },
            {
              "accuracy": "87",
              "line": "53781",
              "name": "Linux 2.6.32 - 3.10",
              "osclass": [
                {
                  "accuracy": "87",
                  "osfamily": "Linux",
                  "osgen": "2.6.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:2.6"
                },
                {
                  "accuracy": "87",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3"
                }
              ]
            },
            {
              "accuracy": "87",
              "line": "63758",
              "name": "OpenWrt Chaos Calmer 15.05 (Linux 3.18) or Designated Driver (Linux 4.1)",
              "osclass": [
                {
                  "accuracy": "87",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "WAP",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3.18"
                },
                {
                  "accuracy": "87",
                  "osfamily": "Linux",
                  "osgen": "4.X",
                  "type": "WAP",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:4.1"
                }
              ]
            },
            {
              "accuracy": "87",
              "line": "52612",
              "name": "Linux 2.6.32",
              "osclass": {
                "accuracy": "87",
                "osfamily": "Linux",
                "osgen": "2.6.X",
                "type": "general purpose",
                "vendor": "Linux",
                "cpe": "cpe:/o:linux:linux_kernel:2.6.32"
              }
            }
          ],
          "portused": [
            {
              "portid": "21",
              "proto": "tcp",
              "state": "open"
            },
            {
              "portid": "22",
              "proto": "tcp",
              "state": "closed"
            },
            {
              "portid": "35164",
              "proto": "udp",
              "state": "closed"
            }
          ]
        },
        "ports": {
          "port": [
            {
              "portid": "21",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "method": "probed",
                "name": "ftp",
                "ostype": "Unix",
                "product": "vsftpd",
                "version": "3.0.2",
                "cpe": "cpe:/a:vsftpd:vsftpd:3.0.2"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "50",
                "state": "open"
              }
            },
            {
              "portid": "22",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "ssh"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "51",
                "state": "closed"
              }
            },
            {
              "portid": "80",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "http"
              },
              "state": {
                "reason": "no-response",
                "reason_ttl": "0",
                "state": "filtered"
              }
            },
            {
              "portid": "81",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "hosts2-ns"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "51",
                "state": "closed"
              }
            },
            {
              "portid": "82",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "xfer"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "51",
                "state": "closed"
              }
            },
            {
              "portid": "90",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "devicetype": "media device",
                "method": "probed",
                "name": "http",
                "product": "Cross DVR httpd"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "47",
                "state": "open"
              }
            },
            {
              "portid": "95",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "supdup"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "47",
                "state": "open"
              }
            },
            {
              "portid": "99",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "metagram"
              },
              "state": {
                "reason": "no-response",
                "reason_ttl": "0",
                "state": "filtered"
              }
            },
            {
              "portid": "443",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "extrainfo": "(Ubuntu)",
                "method": "probed",
                "name": "http",
                "product": "Apache httpd",
                "tunnel": "ssl",
                "version": "2.4.7",
                "cpe": "cpe:/a:apache:http_server:2.4.7"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "50",
                "state": "open"
              }
            },
            {
              "portid": "554",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "rtsp"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "51",
                "state": "closed"
              }
            },
            {
              "portid": "1024",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "kdm"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "51",
                "state": "closed"
              }
            },
            {
              "portid": "1026",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "LSA-or-nterm"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "51",
                "state": "closed"
              }
            },
            {
              "portid": "1394",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "iclpv-nlc"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "51",
                "state": "closed"
              }
            },
            {
              "portid": "2000",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "method": "probed",
                "name": "bandwidth-test",
                "product": "MikroTik bandwidth-test server"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "51",
                "state": "open"
              }
            },
            {
              "portid": "3306",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "method": "probed",
                "name": "mysql",
                "product": "MySQL",
                "version": "5.7.30-0ubuntu0.18.04.1",
                "cpe": "cpe:/a:mysql:mysql:5.7.30-0ubuntu0.18.04.1"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "50",
                "state": "open"
              }
            },
            {
              "portid": "4443",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "pharos"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "51",
                "state": "closed"
              }
            },
            {
              "portid": "4444",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "krb524"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "51",
                "state": "closed"
              }
            },
            {
              "portid": "4568",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "bmc-reporting"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "48",
                "state": "open"
              }
            },
            {
              "portid": "5245",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "extrainfo": "(Ubuntu)",
                "method": "probed",
                "name": "http",
                "product": "Apache httpd",
                "version": "2.4.7",
                "cpe": "cpe:/a:apache:http_server:2.4.7"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "50",
                "state": "open"
              }
            },
            {
              "portid": "5247",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "extrainfo": "(Ubuntu)",
                "method": "probed",
                "name": "http",
                "product": "Apache httpd",
                "tunnel": "ssl",
                "version": "2.4.7",
                "cpe": "cpe:/a:apache:http_server:2.4.7"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "50",
                "state": "open"
              }
            },
            {
              "portid": "6030",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "x11"
              },
              "state": {
                "reason": "host-unreach",
                "reason_ttl": "49",
                "state": "filtered"
              }
            },
            {
              "portid": "6048",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "x11"
              },
              "state": {
                "reason": "no-response",
                "reason_ttl": "0",
                "state": "filtered"
              }
            },
            {
              "portid": "6049",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "x11"
              },
              "state": {
                "reason": "no-response",
                "reason_ttl": "0",
                "state": "filtered"
              }
            },
            {
              "portid": "6060",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "x11"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "46",
                "state": "open"
              }
            },
            {
              "portid": "6061",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "x11"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "46",
                "state": "open"
              }
            },
            {
              "portid": "6301",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "bmc_ctd_ldap"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "47",
                "state": "open"
              }
            },
            {
              "portid": "6302",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "method": "probed",
                "name": "http",
                "product": "uc-httpd",
                "version": "1.0.0"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "47",
                "state": "open"
              }
            },
            {
              "portid": "6303",
              "protocol": "tcp",
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "47",
                "state": "open"
              }
            },
            {
              "portid": "8000",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "http-alt"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "51",
                "state": "closed"
              }
            },
            {
              "portid": "8001",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "vcom-tunnel"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "51",
                "state": "closed"
              }
            },
            {
              "portid": "8002",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "teradataordbms"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "51",
                "state": "closed"
              }
            },
            {
              "portid": "8081",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "blackice-icecap"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "51",
                "state": "closed"
              }
            },
            {
              "portid": "8090",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "method": "probed",
                "name": "http",
                "product": "uc-httpd",
                "version": "1.0.0"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "50",
                "state": "open"
              }
            },
            {
              "portid": "8091",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "jamlink"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "51",
                "state": "closed"
              }
            },
            {
              "portid": "8291",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "unknown"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "51",
                "state": "closed"
              }
            },
            {
              "portid": "8292",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "blp3"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "51",
                "state": "open"
              }
            },
            {
              "portid": "9000",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "cslistener"
              },
              "state": {
                "reason": "reset",
                "reason_ttl": "51",
                "state": "closed"
              }
            },
            {
              "portid": "9051",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "method": "probed",
                "name": "http",
                "product": "uc-httpd",
                "version": "1.0.0"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "47",
                "state": "open"
              }
            },
            {
              "portid": "9052",
              "protocol": "tcp",
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "47",
                "state": "open"
              }
            },
            {
              "portid": "9096",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "devicetype": "media device",
                "method": "probed",
                "name": "http",
                "product": "Cross DVR httpd"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "48",
                "state": "open"
              }
            },
            {
              "portid": "9097",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "unknown"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "48",
                "state": "open"
              }
            },
            {
              "portid": "58000",
              "protocol": "tcp",
              "state": {
                "reason": "reset",
                "reason_ttl": "51",
                "state": "closed"
              }
            }
          ]
        },
        "status": {
          "reason": "echo-reply",
          "reason_ttl": "51",
          "state": "up"
        },
        "tcpsequence": {
          "difficulty": "Good luck!",
          "index": "232",
          "values": "594AD6A3,28C3220F,4B678780,36EE0EB,725B846F,AC52C50D"
        },
        "tcptssequence": {
          "class": "other",
          "values": "10E77901,10E779E5,10E77AC4,10E77BA7,10E77C87,10E77D68"
        },
        "times": {
          "rttvar": "94344",
          "srtt": "369996",
          "to": "300000"
        },
        "uptime": {
          "lastboot": "Thu May  7 16:20:39 2020",
          "seconds": "3349071"
        }
      },
      {
        "endtime": "1592217508",
        "starttime": "1592217224",
        "address": {
          "addr": "10.146.180.26",
          "addrtype": "ipv4"
        },
        "distance": {
          "value": "10"
        },
        "hostnames": {
          "hostname": {
            "name": "10-146-180-26.dsl.contoso.com",
            "type": "PTR"
          }
        },
        "ipidsequence": {
          "class": "Randomized",
          "values": "1417,DD62,36F3,B5EA,4A7,2D1C"
        },
        "os": {
          "osmatch": [
            {
              "accuracy": "95",
              "line": "15744",
              "name": "Cisco Aironet 1240AG or 1250 WAP, 1811 or 2800 router, or VG 224 VoIP adapter (IOS 12.4)",
              "osclass": [
                {
                  "accuracy": "95",
                  "osfamily": "IOS",
                  "osgen": "12.X",
                  "type": "router",
                  "vendor": "Cisco",
                  "cpe": [
                    "cpe:/h:cisco:1811_router",
                    "cpe:/h:cisco:2800_router",
                    "cpe:/o:cisco:ios:12.4"
                  ]
                },
                {
                  "accuracy": "95",
                  "osfamily": "embedded",
                  "type": "VoIP adapter",
                  "vendor": "Cisco",
                  "cpe": [
                    "cpe:/h:cisco:vg_224",
                    "cpe:/o:cisco:ios:12.4"
                  ]
                },
                {
                  "accuracy": "95",
                  "osfamily": "IOS",
                  "osgen": "12.X",
                  "type": "WAP",
                  "vendor": "Cisco",
                  "cpe": [
                    "cpe:/h:cisco:aironet_ap1240ag",
                    "cpe:/h:cisco:aironet_ap1250",
                    "cpe:/o:cisco:ios:12.4"
                  ]
                }
              ]
            },
            {
              "accuracy": "94",
              "line": "17171",
              "name": "Cisco Aironet 1200-series WAP router (IOS 12.3 - 12.4)",
              "osclass": {
                "accuracy": "94",
                "osfamily": "IOS",
                "osgen": "12.X",
                "type": "WAP",
                "vendor": "Cisco",
                "cpe": [
                  "cpe:/h:cisco:aironet_ap1200",
                  "cpe:/o:cisco:ios:12"
                ]
              }
            },
            {
              "accuracy": "94",
              "line": "17213",
              "name": "Cisco Aironet 1240AG WAP, C2600 or C2800 router, or C3560 switch (IOS 12.2 - 12.4)",
              "osclass": [
                {
                  "accuracy": "94",
                  "osfamily": "IOS",
                  "osgen": "12.X",
                  "type": "WAP",
                  "vendor": "Cisco",
                  "cpe": [
                    "cpe:/h:cisco:aironet_ap1240ag",
                    "cpe:/o:cisco:ios:12.4"
                  ]
                },
                {
                  "accuracy": "94",
                  "osfamily": "IOS",
                  "osgen": "12.X",
                  "type": "router",
                  "vendor": "Cisco",
                  "cpe": [
                    "cpe:/h:cisco:router_2600",
                    "cpe:/h:cisco:router_2800",
                    "cpe:/o:cisco:ios:12.4"
                  ]
                },
                {
                  "accuracy": "94",
                  "osfamily": "IOS",
                  "osgen": "12.X",
                  "type": "switch",
                  "vendor": "Cisco",
                  "cpe": [
                    "cpe:/h:cisco:catalyst_3560",
                    "cpe:/o:cisco:ios:12.2"
                  ]
                }
              ]
            },
            {
              "accuracy": "92",
              "line": "15881",
              "name": "Cisco IOS 12.4 or IOS-XE 15.3",
              "osclass": [
                {
                  "accuracy": "92",
                  "osfamily": "IOS",
                  "osgen": "12.X",
                  "type": "router",
                  "vendor": "Cisco",
                  "cpe": "cpe:/o:cisco:ios:12.4"
                },
                {
                  "accuracy": "92",
                  "osfamily": "IOS-XE",
                  "osgen": "15.X",
                  "type": "router",
                  "vendor": "Cisco",
                  "cpe": "cpe:/o:cisco:ios_xe:15.3"
                }
              ]
            },
            {
              "accuracy": "92",
              "line": "15609",
              "name": "Cisco 860 or 870 router (IOS 12.4)",
              "osclass": {
                "accuracy": "92",
                "osfamily": "IOS",
                "osgen": "12.X",
                "type": "router",
                "vendor": "Cisco",
                "cpe": [
                  "cpe:/h:cisco:860_router",
                  "cpe:/h:cisco:870_router",
                  "cpe:/o:cisco:ios:12.4"
                ]
              }
            },
            {
              "accuracy": "92",
              "line": "15629",
              "name": "Cisco 870 router (IOS 12.4)",
              "osclass": {
                "accuracy": "92",
                "osfamily": "IOS",
                "osgen": "12.X",
                "type": "router",
                "vendor": "Cisco",
                "cpe": [
                  "cpe:/h:cisco:870_router",
                  "cpe:/o:cisco:ios:12.4"
                ]
              }
            },
            {
              "accuracy": "92",
              "line": "15718",
              "name": "Cisco Aironet 1200-series WAP or 2610XM router (IOS 12.4)",
              "osclass": [
                {
                  "accuracy": "92",
                  "osfamily": "IOS",
                  "osgen": "12.X",
                  "type": "router",
                  "vendor": "Cisco",
                  "cpe": [
                    "cpe:/h:cisco:2610xm_router",
                    "cpe:/o:cisco:ios:12.4"
                  ]
                },
                {
                  "accuracy": "92",
                  "osfamily": "IOS",
                  "osgen": "12.X",
                  "type": "WAP",
                  "vendor": "Cisco",
                  "cpe": [
                    "cpe:/h:cisco:aironet_ap1200",
                    "cpe:/o:cisco:ios:12.4"
                  ]
                }
              ]
            },
            {
              "accuracy": "92",
              "line": "15494",
              "name": "Cisco 800-series, 1801, 2000-series, 3800, 4000, or 7000-series router; or 1100 or 1242G WAP (IOS 12.2 - 12.4)",
              "osclass": [
                {
                  "accuracy": "92",
                  "osfamily": "IOS",
                  "osgen": "12.X",
                  "type": "router",
                  "vendor": "Cisco",
                  "cpe": [
                    "cpe:/h:cisco:800_router",
                    "cpe:/h:cisco:1801_router",
                    "cpe:/h:cisco:2000_router",
                    "cpe:/h:cisco:3800_router",
                    "cpe:/h:cisco:4000_router",
                    "cpe:/h:cisco:7000_router",
                    "cpe:/o:cisco:ios:12"
                  ]
                },
                {
                  "accuracy": "92",
                  "osfamily": "IOS",
                  "osgen": "12.X",
                  "type": "WAP",
                  "vendor": "Cisco",
                  "cpe": [
                    "cpe:/h:cisco:aironet_ap1100",
                    "cpe:/h:cisco:aironet_ap1242g",
                    "cpe:/o:cisco:ios:12"
                  ]
                }
              ]
            },
            {
              "accuracy": "92",
              "line": "16852",
              "name": "Cisco Catalyst 2960, 3560, or 6500 switch (IOS 12.2)",
              "osclass": {
                "accuracy": "92",
                "osfamily": "IOS",
                "osgen": "12.X",
                "type": "switch",
                "vendor": "Cisco",
                "cpe": [
                  "cpe:/h:cisco:catalyst_2960",
                  "cpe:/h:cisco:catalyst_3560",
                  "cpe:/h:cisco:catalyst_6500",
                  "cpe:/o:cisco:ios:12.2"
                ]
              }
            },
            {
              "accuracy": "92",
              "line": "15208",
              "name": "Cisco 2801 router (IOS 12.4)",
              "osclass": {
                "accuracy": "92",
                "osfamily": "IOS",
                "osgen": "12.X",
                "type": "router",
                "vendor": "Cisco",
                "cpe": "cpe:/o:cisco:ios:12.4"
              }
            }
          ],
          "portused": [
            {
              "portid": "80",
              "proto": "tcp",
              "state": "open"
            },
            {
              "portid": "21",
              "proto": "tcp",
              "state": "closed"
            },
            {
              "portid": "41287",
              "proto": "udp",
              "state": "closed"
            }
          ]
        },
        "ports": {
          "extraports": {
            "count": "41",
            "state": "closed",
            "extrareasons": {
              "count": "41",
              "reason": "resets"
            }
          },
          "port": {
            "portid": "80",
            "protocol": "tcp",
            "service": {
              "conf": "10",
              "method": "probed",
              "name": "http",
              "ostype": "IOS",
              "product": "Cisco IOS http config",
              "cpe": "cpe:/o:cisco:ios"
            },
            "state": {
              "reason": "syn-ack",
              "reason_ttl": "243",
              "state": "open"
            }
          }
        },
        "status": {
          "reason": "echo-reply",
          "reason_ttl": "243",
          "state": "up"
        },
        "tcpsequence": {
          "difficulty": "Good luck!",
          "index": "237",
          "values": "70D17129,609274C6,210B0FA,5C7F2BA3,3EFC32C5,B6050CBD"
        },
        "tcptssequence": {
          "class": "none returned (unsupported)"
        },
        "times": {
          "rttvar": "3705",
          "srtt": "322336",
          "to": "300000"
        }
      },
      {
        "endtime": "1592217508",
        "starttime": "1592217224",
        "address": {
          "addr": "10.146.180.62",
          "addrtype": "ipv4"
        },
        "distance": {
          "value": "10"
        },
        "hostnames": {
          "hostname": {
            "name": "10-146-180-62.dsl.contoso.com",
            "type": "PTR"
          }
        },
        "ipidsequence": {
          "class": "All zeros",
          "values": "0,0,0,0,0,0"
        },
        "os": {
          "osmatch": [
            {
              "accuracy": "86",
              "line": "61998",
              "name": "Linux 3.2 - 3.16",
              "osclass": {
                "accuracy": "86",
                "osfamily": "Linux",
                "osgen": "3.X",
                "type": "general purpose",
                "vendor": "Linux",
                "cpe": "cpe:/o:linux:linux_kernel:3"
              }
            },
            {
              "accuracy": "86",
              "line": "23422",
              "name": "Epson Stylus Pro 400 printer",
              "osclass": {
                "accuracy": "86",
                "osfamily": "embedded",
                "type": "printer",
                "vendor": "Epson",
                "cpe": "cpe:/h:epson:stylus_pro_400"
              }
            },
            {
              "accuracy": "86",
              "line": "98574",
              "name": "Vodavi XTS-IP PBX",
              "osclass": {
                "accuracy": "86",
                "osfamily": "embedded",
                "type": "PBX",
                "vendor": "Vodavi",
                "cpe": "cpe:/h:vodavi:xts-ip"
              }
            },
            {
              "accuracy": "86",
              "line": "53781",
              "name": "Linux 2.6.32 - 3.10",
              "osclass": [
                {
                  "accuracy": "86",
                  "osfamily": "Linux",
                  "osgen": "2.6.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:2.6"
                },
                {
                  "accuracy": "86",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3"
                }
              ]
            }
          ],
          "portused": [
            {
              "portid": "8000",
              "proto": "tcp",
              "state": "open"
            },
            {
              "portid": "21",
              "proto": "tcp",
              "state": "closed"
            },
            {
              "portid": "43440",
              "proto": "udp",
              "state": "closed"
            }
          ]
        },
        "ports": {
          "extraports": {
            "count": "41",
            "state": "closed",
            "extrareasons": {
              "count": "41",
              "reason": "resets"
            }
          },
          "port": {
            "portid": "8000",
            "protocol": "tcp",
            "service": {
              "conf": "10",
              "method": "probed",
              "name": "ipcam",
              "product": "Hikvision IPCam control port"
            },
            "state": {
              "reason": "syn-ack",
              "reason_ttl": "50",
              "state": "open"
            }
          }
        },
        "status": {
          "reason": "echo-reply",
          "reason_ttl": "242",
          "state": "up"
        },
        "tcpsequence": {
          "difficulty": "Good luck!",
          "index": "225",
          "values": "CCD5E2D4,EE9D187B,BBD355D5,922503DC,AF63738A,B910260F"
        },
        "tcptssequence": {
          "class": "100HZ",
          "values": "12C0643,12C069E,12C06F8,12C0752,12C07AC,12C0805"
        },
        "times": {
          "rttvar": "6054",
          "srtt": "325037",
          "to": "300000"
        },
        "uptime": {
          "lastboot": "Sat Jun 13 04:00:28 2020",
          "seconds": "196682"
        }
      },
      {
        "endtime": "1592217508",
        "starttime": "1592217224",
        "address": {
          "addr": "10.146.180.74",
          "addrtype": "ipv4"
        },
        "distance": {
          "value": "33"
        },
        "hostnames": {
          "hostname": {
            "name": "10-146-180-74.dsl.contoso.com",
            "type": "PTR"
          }
        },
        "ipidsequence": {
          "class": "All zeros",
          "values": "0,0,0,0,0,0"
        },
        "os": {
          "osmatch": [
            {
              "accuracy": "87",
              "line": "83945",
              "name": "Nintendo Wii game console",
              "osclass": {
                "accuracy": "87",
                "osfamily": "embedded",
                "type": "game console",
                "vendor": "Nintendo",
                "cpe": "cpe:/h:nintendo:wii"
              }
            },
            {
              "accuracy": "86",
              "line": "23422",
              "name": "Epson Stylus Pro 400 printer",
              "osclass": {
                "accuracy": "86",
                "osfamily": "embedded",
                "type": "printer",
                "vendor": "Epson",
                "cpe": "cpe:/h:epson:stylus_pro_400"
              }
            },
            {
              "accuracy": "86",
              "line": "98574",
              "name": "Vodavi XTS-IP PBX",
              "osclass": {
                "accuracy": "86",
                "osfamily": "embedded",
                "type": "PBX",
                "vendor": "Vodavi",
                "cpe": "cpe:/h:vodavi:xts-ip"
              }
            }
          ],
          "portused": [
            {
              "portid": "554",
              "proto": "tcp",
              "state": "open"
            },
            {
              "portid": "21",
              "proto": "tcp",
              "state": "closed"
            },
            {
              "portid": "10613",
              "proto": "udp",
              "state": "closed"
            }
          ]
        },
        "ports": {
          "extraports": {
            "count": "39",
            "state": "closed",
            "extrareasons": {
              "count": "39",
              "reason": "resets"
            }
          },
          "port": [
            {
              "portid": "443",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "https"
              },
              "state": {
                "reason": "admin-prohibited",
                "reason_ttl": "241",
                "state": "filtered"
              }
            },
            {
              "portid": "554",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "method": "probed",
                "name": "rtsp",
                "ostype": "Mac OS X",
                "product": "Apple AirTunes rtspd",
                "cpe": "cpe:/o:apple:mac_os_x"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "49",
                "state": "open"
              }
            },
            {
              "portid": "8000",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "http-alt"
              },
              "state": {
                "reason": "no-response",
                "reason_ttl": "0",
                "state": "filtered"
              }
            }
          ]
        },
        "status": {
          "reason": "echo-reply",
          "reason_ttl": "241",
          "state": "up"
        },
        "tcpsequence": {
          "difficulty": "Good luck!",
          "index": "240",
          "values": "4FE787F5,D947FBE8,D8C14971,B93CC92E,84CFC612,567B0EC"
        },
        "tcptssequence": {
          "class": "none returned (unsupported)"
        },
        "times": {
          "rttvar": "4945",
          "srtt": "320225",
          "to": "300000"
        }
      },
      {
        "endtime": "1592217510",
        "starttime": "1592217224",
        "address": {
          "addr": "10.146.180.78",
          "addrtype": "ipv4"
        },
        "hostnames": {
          "hostname": {
            "name": "10-146-180-78.dsl.contoso.com",
            "type": "PTR"
          }
        },
        "ipidsequence": {
          "class": "All zeros",
          "values": "0,0,0,0,0,0"
        },
        "os": {
          "osmatch": [
            {
              "accuracy": "100",
              "line": "55826",
              "name": "Linux 2.6.8 - 2.6.30",
              "osclass": {
                "accuracy": "100",
                "osfamily": "Linux",
                "osgen": "2.6.X",
                "type": "general purpose",
                "vendor": "Linux",
                "cpe": "cpe:/o:linux:linux_kernel:2.6"
              }
            },
            {
              "accuracy": "100",
              "line": "57171",
              "name": "Dell iDRAC 6 remote access controller (Linux 2.6)",
              "osclass": [
                {
                  "accuracy": "100",
                  "osfamily": "Linux",
                  "osgen": "2.6.X",
                  "type": "remote management",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:2.6"
                },
                {
                  "accuracy": "100",
                  "osfamily": "iDRAC",
                  "osgen": "6",
                  "type": "remote management",
                  "vendor": "Dell",
                  "cpe": "cpe:/o:dell:idrac6_firmware"
                }
              ]
            }
          ],
          "portused": {
            "portid": "9000",
            "proto": "tcp",
            "state": "open"
          }
        },
        "ports": {
          "extraports": {
            "count": "41",
            "state": "filtered",
            "extrareasons": {
              "count": "41",
              "reason": "no-responses"
            }
          },
          "port": {
            "portid": "9000",
            "protocol": "tcp",
            "service": {
              "conf": "3",
              "method": "table",
              "name": "cslistener"
            },
            "state": {
              "reason": "syn-ack",
              "reason_ttl": "49",
              "state": "open"
            }
          }
        },
        "status": {
          "reason": "echo-reply",
          "reason_ttl": "50",
          "state": "up"
        },
        "tcpsequence": {
          "difficulty": "Good luck!",
          "index": "190",
          "values": "DC05113C,DB9692B8,DC3995EC,DB9E5980,DC3E3C54,DC5A7A95"
        },
        "tcptssequence": {
          "class": "100HZ",
          "values": "BE054C0,BE054FC,BE05519,BE05538,BE05557,BE05574"
        },
        "times": {
          "rttvar": "47588",
          "srtt": "323800",
          "to": "300000"
        },
        "uptime": {
          "lastboot": "Sat May 23 09:08:25 2020",
          "seconds": "1992605"
        }
      },
      {
        "endtime": "1592217510",
        "starttime": "1592217224",
        "address": {
          "addr": "10.146.180.82",
          "addrtype": "ipv4"
        },
        "distance": {
          "value": "30"
        },
        "hostnames": {
          "hostname": {
            "name": "10-146-180-82.dsl.contoso.com",
            "type": "PTR"
          }
        },
        "ipidsequence": {
          "class": "All zeros",
          "values": "0,0,0,0,0,0"
        },
        "os": {
          "osmatch": [
            {
              "accuracy": "96",
              "line": "53781",
              "name": "Linux 2.6.32 - 3.10",
              "osclass": [
                {
                  "accuracy": "96",
                  "osfamily": "Linux",
                  "osgen": "2.6.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:2.6"
                },
                {
                  "accuracy": "96",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3"
                }
              ]
            },
            {
              "accuracy": "94",
              "line": "61998",
              "name": "Linux 3.2 - 3.16",
              "osclass": {
                "accuracy": "94",
                "osfamily": "Linux",
                "osgen": "3.X",
                "type": "general purpose",
                "vendor": "Linux",
                "cpe": "cpe:/o:linux:linux_kernel:3"
              }
            },
            {
              "accuracy": "93",
              "line": "53985",
              "name": "Linux 2.6.32 - 3.5",
              "osclass": [
                {
                  "accuracy": "93",
                  "osfamily": "Linux",
                  "osgen": "2.6.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:2.6"
                },
                {
                  "accuracy": "93",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3"
                }
              ]
            },
            {
              "accuracy": "92",
              "line": "53811",
              "name": "Linux 2.6.32 - 3.13",
              "osclass": [
                {
                  "accuracy": "92",
                  "osfamily": "Linux",
                  "osgen": "2.6.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:2.6"
                },
                {
                  "accuracy": "92",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3"
                }
              ]
            },
            {
              "accuracy": "92",
              "line": "8432",
              "name": "AVM FRITZ!Box (FritzOS 6.03)",
              "osclass": {
                "accuracy": "92",
                "osfamily": "FritzOS",
                "osgen": "6.X",
                "type": "WAP",
                "vendor": "AVM",
                "cpe": "cpe:/o:avm:fritzos:6.03"
              }
            },
            {
              "accuracy": "92",
              "line": "40441",
              "name": "Lexmark CS410dn printer",
              "osclass": {
                "accuracy": "92",
                "osfamily": "embedded",
                "type": "printer",
                "vendor": "Lexmark",
                "cpe": "cpe:/h:lexmark:cs410dn"
              }
            },
            {
              "accuracy": "92",
              "line": "55245",
              "name": "Linux 2.6.38 - 3.0",
              "osclass": [
                {
                  "accuracy": "92",
                  "osfamily": "Linux",
                  "osgen": "2.6.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:2.6"
                },
                {
                  "accuracy": "92",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3"
                }
              ]
            },
            {
              "accuracy": "92",
              "line": "62168",
              "name": "Linux 3.2 - 4.8",
              "osclass": [
                {
                  "accuracy": "92",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3"
                },
                {
                  "accuracy": "92",
                  "osfamily": "Linux",
                  "osgen": "4.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:4"
                }
              ]
            },
            {
              "accuracy": "91",
              "line": "54028",
              "name": "Linux 2.6.32 - 3.9",
              "osclass": [
                {
                  "accuracy": "91",
                  "osfamily": "Linux",
                  "osgen": "2.6.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:2.6"
                },
                {
                  "accuracy": "91",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "general purpose",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3"
                }
              ]
            },
            {
              "accuracy": "91",
              "line": "29371",
              "name": "Android 4.2.2 (Linux 3.4)",
              "osclass": [
                {
                  "accuracy": "91",
                  "osfamily": "Android",
                  "osgen": "4.X",
                  "type": "phone",
                  "vendor": "Google",
                  "cpe": "cpe:/o:google:android:4.2.2"
                },
                {
                  "accuracy": "91",
                  "osfamily": "Linux",
                  "osgen": "3.X",
                  "type": "phone",
                  "vendor": "Linux",
                  "cpe": "cpe:/o:linux:linux_kernel:3.4"
                }
              ]
            }
          ],
          "portused": [
            {
              "portid": "2000",
              "proto": "tcp",
              "state": "open"
            },
            {
              "portid": "21",
              "proto": "tcp",
              "state": "closed"
            },
            {
              "portid": "42894",
              "proto": "udp",
              "state": "closed"
            }
          ]
        },
        "ports": {
          "extraports": {
            "count": "38",
            "state": "closed",
            "extrareasons": {
              "count": "38",
              "reason": "resets"
            }
          },
          "port": [
            {
              "portid": "2000",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "method": "probed",
                "name": "bandwidth-test",
                "product": "MikroTik bandwidth-test server"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "50",
                "state": "open"
              }
            },
            {
              "portid": "8090",
              "protocol": "tcp",
              "service": {
                "conf": "3",
                "method": "table",
                "name": "opsmessaging"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "49",
                "state": "open"
              }
            },
            {
              "portid": "8091",
              "protocol": "tcp",
              "service": {
                "conf": "10",
                "method": "probed",
                "name": "ipcam",
                "product": "Hikvision IPCam control port"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "49",
                "state": "open"
              }
            },
            {
              "portid": "8292",
              "protocol": "tcp",
              "service": {
                "conf": "8",
                "method": "probed",
                "name": "tcpwrapped"
              },
              "state": {
                "reason": "syn-ack",
                "reason_ttl": "50",
                "state": "open"
              }
            }
          ]
        },
        "status": {
          "reason": "echo-reply",
          "reason_ttl": "50",
          "state": "up"
        },
        "tcpsequence": {
          "difficulty": "Good luck!",
          "index": "210",
          "values": "D82DF72D,341F8C2,4EA01A81,45E4E940,1FD1093B,2FF5C501"
        },
        "tcptssequence": {
          "class": "100HZ",
          "values": "9A2662,9A26BC,9A2717,9A2770,9A27CA,9A2825"
        },
        "times": {
          "rttvar": "4587",
          "srtt": "321727",
          "to": "300000"
        },
        "uptime": {
          "lastboot": "Sun Jun 14 06:33:50 2020",
          "seconds": "101080"
        }
      }
    ],
    "runstats": {
      "finished": {
        "elapsed": "286.64",
        "exit": "success",
        "summary": "Nmap done at Mon Jun 15 10:38:30 2020; 12 IP addresses (11 hosts up) scanned in 286.64 seconds",
        "time": "1592217510",
        "timestr": "Mon Jun 15 10:38:30 2020"
      },
      "hosts": {
        "down": "1",
        "total": "12",
        "up": "11"
      }
    },
    "scaninfo": {
      "numservices": "42",
      "protocol": "tcp",
      "services": "21-22,80-82,90,95,99,443,554,1024,1026,1394,2000,3306,4443-4444,4568,5245,5247,6030,6048-6049,6060-6061,6301-6303,8000-8002,8081,8090-8091,8291-8292,9000,9051-9052,9096-9097,58000",
      "type": "syn"
    },
    "verbose": {
      "level": "0"
    }
  }
}
]`;
var asd = `


Nmap Banner Scan Result




Nmap Banner Scan Result

`var arr =JSON.parse(str); document.write(asd)for(var i=0;i<arr[0].nmaprun.host.length;i++){ document.write(""); document.write(""); document.write(""); document.write("");if(Array.isArray(arr[0].nmaprun.host[i].ports.port)==false){ document.write("");if(arr[0].nmaprun.host[i].ports.port.service != undefined){if(arr[0].nmaprun.host[i].ports.port.service.name != undefined){ document.write("");}else{ document.write("");}if(arr[0].nmaprun.host[i].ports.port.service.extrainfo != undefined){ document.write("");}else{ document.write("");}if(arr[0].nmaprun.host[i].ports.port.service.product != undefined){ document.write("");}else{ document.write("");}if(arr[0].nmaprun.host[i].ports.port.service.cpe != undefined){ document.write("");}else{ document.write("");}}else{ document.write(""); document.write(""); document.write(""); document.write("");} document.write("");}else{var flag =true;for(var j=0;j<arr[0].nmaprun.host[i].ports.port.length;j++){if(arr[0].nmaprun.host[i].ports.port[j].service != undefined){if(flag ==false){ document.write(""); document.write(""); document.write(""); document.write("");//以上用于占位,占3列} flag =false; document.write("");if(arr[0].nmaprun.host[i].ports.port[j].service.name != undefined){ document.write("");}else{ document.write("");}if(arr[0].nmaprun.host[i].ports.port[j].service.extrainfo != undefined){ document.write("");}else{ document.write("");}if(arr[0].nmaprun.host[i].ports.port[j].service.product != undefined){ document.write("");}else{ document.write("");}if(arr[0].nmaprun.host[i].ports.port[j].service.cpe != undefined){ document.write("");}else{ document.write("");} document.write("");}else{ document.write(""); document.write(""); document.write(""); document.write("");//以上用于占位,占3列 document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write("");}}}}var asfdwrfsgs =`
ip hostname os portid srv_name extrainfo product cpe
"); document.write(arr[0].nmaprun.host[i].address.addr); document.write(""); document.write(arr[0].nmaprun.host[i].hostnames.hostname.name); document.write(""); if(arr[0].nmaprun.host[i].os.osmatch != undefined) { if(Array.isArray(arr[0].nmaprun.host[i].os.osmatch) == false) document.write(arr[0].nmaprun.host[i].os.osmatch.name); else document.write(arr[0].nmaprun.host[i].os.osmatch[0].name); } else document.write("NA"); document.write(" "); document.write(arr[0].nmaprun.host[i].ports.port.portid); document.write(" "); document.write(arr[0].nmaprun.host[i].ports.port.service.name) document.write(" "); document.write("NA"); document.write(" "); document.write(arr[0].nmaprun.host[i].ports.port.service.extrainfo) document.write(" "); document.write("NA"); document.write(" "); document.write(arr[0].nmaprun.host[i].ports.port.service.product) document.write(" "); document.write("NA"); document.write(" "); document.write(arr[0].nmaprun.host[i].ports.port.service.cpe) document.write(" "); document.write("NA"); document.write(" "); document.write("NA"); document.write(""); document.write("NA"); document.write(""); document.write("NA"); document.write(""); document.write("NA"); document.write("
"); document.write(""); document.write(""); document.write(" "); document.write(arr[0].nmaprun.host[i].ports.port[j].portid) document.write(" "); document.write(arr[0].nmaprun.host[i].ports.port[j].service.name) document.write(" "); document.write("NA") document.write(" "); document.write(arr[0].nmaprun.host[i].ports.port[j].service.extrainfo) document.write(" "); document.write("NA") document.write(" "); document.write(arr[0].nmaprun.host[i].ports.port[j].service.product) document.write(" "); document.write("NA") document.write(" "); document.write(arr[0].nmaprun.host[i].ports.port[j].service.cpe) document.write(" "); document.write("NA") document.write("
"); document.write(""); document.write(""); document.write(" "); document.write(arr[0].nmaprun.host[i].ports.port[j].portid) document.write(""); arr[0].nmaprun.host[i].ports.port[j].state.reason == undefined ? document.write("NA") : document.write(arr[0].nmaprun.host[i].ports.port[j].state.reason); document.write(""); arr[0].nmaprun.host[i].ports.port[j].state.reason == undefined ? document.write("NA") : document.write(arr[0].nmaprun.host[i].ports.port[j].state.reason); document.write(""); arr[0].nmaprun.host[i].ports.port[j].state.reason == undefined ? document.write("NA") : document.write(arr[0].nmaprun.host[i].ports.port[j].state.reason); document.write(""); arr[0].nmaprun.host[i].ports.port[j].state.reason == undefined ? document.write("NA") : document.write(arr[0].nmaprun.host[i].ports.port[j].state.reason); document.write("
`
document.write(asfdwrfsgs) </script>

你可能感兴趣的:(安全,javascript,工具)