urbanadventurer / WhatWeb

Next generation web scanner
https://www.morningstarsecurity.com/research/whatweb
GNU General Public License v2.0
5.47k stars 902 forks source link

--log-json option generates a empty object in array report #289

Closed aaaguirrep closed 4 years ago

aaaguirrep commented 4 years ago

Hi, I am using --log-json option and the file shows an empty object in array report.

Usage Version: 0.5.1

#whatweb https://example.com --log-json=report.json
#cat report.json
[
{"target":"https://example.com","http_status":200,"request_config":{"headers":{"User-Agent":"WhatWeb/0.5.1"}},"plugins":{"HttpOnly":{"string":["__cfduid"]},"Country":{"string":["UNITED STATES"],"module":["US"]},"Cookies":{"string":["__cfduid"]},"Title":{"string":["Example website"]},"HTML5":{},"IP":{"string":["x.x.x.x."]},"HTTPServer":{"string":["cloudflare"]},"CloudFlare":{},"UncommonHeaders":{"string":["x-served-by,x-cache-hits,x-timer,cf-cache-status,expect-ct,cf-ray"]},"Strict-Transport-Security":{"string":["max-age=31556926"]},"Script":{"string":["acdcde2-text/javascript"]}}},
{}
]

Regards, Arsenio

urbanadventurer commented 4 years ago

I've just fixed this 😄