{"action":"created","issue":{"url":"https://api.github.com/repos/Johnhhorton/node-nmap/issues/23","repository_url":"https://api.github.com/repos/Johnhhorton/node-nmap","labels_url":"https://api.github.com/repos/Johnhhorton/node-nmap/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/Johnhhorton/node-nmap/issues/23/comments","events_url":"https://api.github.com/repos/Johnhhorton/node-nmap/issues/23/events","html_url":"https://github.com/Johnhhorton/node-nmap/issues/23","id":183969712,"number":23,"title":"Include vendor in nmap result output","user":{"login":"tbwiss","id":8817964,"avatar_url":"https://avatars.githubusercontent.com/u/8817964?v=3","gravatar_id":"","url":"https://api.github.com/users/tbwiss","html_url":"https://github.com/tbwiss","followers_url":"https://api.github.com/users/tbwiss/followers","following_url":"https://api.github.com/users/tbwiss/following{/other_user}","gists_url":"https://api.github.com/users/tbwiss/gists{/gist_id}","starred_url":"https://api.github.com/users/tbwiss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbwiss/subscriptions","organizations_url":"https://api.github.com/users/tbwiss/orgs","repos_url":"https://api.github.com/users/tbwiss/repos","events_url":"https://api.github.com/users/tbwiss/events{/privacy}","received_events_url":"https://api.github.com/users/tbwiss/received_events","type":"User","site_admin":false},"labels":[{"id":283683375,"url":"https://api.github.com/repos/Johnhhorton/node-nmap/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":{"login":"Johnhhorton","id":12238902,"avatar_url":"https://avatars.githubusercontent.com/u/12238902?v=3","gravatar_id":"","url":"https://api.github.com/users/Johnhhorton","html_url":"https://github.com/Johnhhorton","followers_url":"https://api.github.com/users/Johnhhorton/followers","following_url":"https://api.github.com/users/Johnhhorton/following{/other_user}","gists_url":"https://api.github.com/users/Johnhhorton/gists{/gist_id}","starred_url":"https://api.github.com/users/Johnhhorton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Johnhhorton/subscriptions","organizations_url":"https://api.github.com/users/Johnhhorton/orgs","repos_url":"https://api.github.com/users/Johnhhorton/repos","events_url":"https://api.github.com/users/Johnhhorton/events{/privacy}","received_events_url":"https://api.github.com/users/Johnhhorton/received_events","type":"User","site_admin":false},"assignees":[{"login":"Johnhhorton","id":12238902,"avatar_url":"https://avatars.githubusercontent.com/u/12238902?v=3","gravatar_id":"","url":"https://api.github.com/users/Johnhhorton","html_url":"https://github.com/Johnhhorton","followers_url":"https://api.github.com/users/Johnhhorton/followers","following_url":"https://api.github.com/users/Johnhhorton/following{/other_user}","gists_url":"https://api.github.com/users/Johnhhorton/gists{/gist_id}","starred_url":"https://api.github.com/users/Johnhhorton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Johnhhorton/subscriptions","organizations_url":"https://api.github.com/users/Johnhhorton/orgs","repos_url":"https://api.github.com/users/Johnhhorton/repos","events_url":"https://api.github.com/users/Johnhhorton/events{/privacy}","received_events_url":"https://api.github.com/users/Johnhhorton/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-10-19T13:58:57Z","updated_at":"2016-10-29T04:54:09Z","closed_at":"2016-10-29T04:54:09Z","body":"Could you please include the following line of code in the index.js file:\r\n\r\n`tempHostList[hostLoopIter].vendor = xmlInput[hostLoopIter][\"address\"][addressLoopIter][\"$\"][\"vendor\"];`\r\n\r\nIt adds the vendor to the result array of the nmap scan. \r\n\r\n```\r\nfor (var addressLoopIter = 0; addressLoopIter < xmlInput[hostLoopIter][\"address\"].length; addressLoopIter++) {\r\n                        //If IPv4, Mac, or unknown.  Get the type and add it or log the type found.\r\n                        if (xmlInput[hostLoopIter][\"address\"][addressLoopIter][\"$\"][\"addrtype\"] === 'ipv4') {\r\n                            tempHostList[hostLoopIter].ip = xmlInput[hostLoopIter][\"address\"][addressLoopIter][\"$\"][\"addr\"];\r\n                        }\r\n                        else if (xmlInput[hostLoopIter][\"address\"][addressLoopIter][\"$\"][\"addrtype\"] === 'mac') {\r\n                            tempHostList[hostLoopIter].mac = xmlInput[hostLoopIter][\"address\"][addressLoopIter][\"$\"][\"addr\"];\r\n\t\t                           **NEW LINE OF CODE HERE**\r\n                        }\r\n                        else {\r\n                        }\r\n```\r\n\r\nThank you very much!"},"comment":{"url":"https://api.github.com/repos/Johnhhorton/node-nmap/issues/comments/257071074","html_url":"https://github.com/Johnhhorton/node-nmap/issues/23#issuecomment-257071074","issue_url":"https://api.github.com/repos/Johnhhorton/node-nmap/issues/23","id":257071074,"user":{"login":"Johnhhorton","id":12238902,"avatar_url":"https://avatars.githubusercontent.com/u/12238902?v=3","gravatar_id":"","url":"https://api.github.com/users/Johnhhorton","html_url":"https://github.com/Johnhhorton","followers_url":"https://api.github.com/users/Johnhhorton/followers","following_url":"https://api.github.com/users/Johnhhorton/following{/other_user}","gists_url":"https://api.github.com/users/Johnhhorton/gists{/gist_id}","starred_url":"https://api.github.com/users/Johnhhorton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Johnhhorton/subscriptions","organizations_url":"https://api.github.com/users/Johnhhorton/orgs","repos_url":"https://api.github.com/users/Johnhhorton/repos","events_url":"https://api.github.com/users/Johnhhorton/events{/privacy}","received_events_url":"https://api.github.com/users/Johnhhorton/received_events","type":"User","site_admin":false},"created_at":"2016-10-29T04:54:09Z","updated_at":"2016-10-29T04:54:09Z","body":"Closing."}}
{"actor":{"display_login":"Johnhhorton"}}