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

Unable to log to elastic search 6.x #251

Closed rhodejo closed 6 years ago

rhodejo commented 6 years ago
$ ./WhatWeb/whatweb 127.0.0.1 --log-elastic-host 127.0.0.1:9200 
http://127.0.0.1 ERROR: Connection refused - connect(2) for "127.0.0.1" port 80
http://127.0.0.1 [ Unassigned] 

406 Not Acceptable
{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}

Apparently this was introduced last year when elasticsearch 6.0 was released: https://www.elastic.co/blog/strict-content-type-checking-for-elasticsearch-rest-requests

Is there any workaround or can whatweb be updated to work with elasticsearch 6.x

urbanadventurer commented 6 years ago

Same as closed issue #253