sullo / nikto

Nikto web server scanner
Other
8.61k stars 1.24k forks source link

Bug: Invalid JSON when no web server found #774

Closed undergroundwires closed 2 years ago

undergroundwires commented 2 years ago

Expected behavior

Valid JSON without extra bracket in the end.

Actual behavior

{"id": "000029","OSVDB": "0","url":"/","msg":"No web server found on **.**.**.**:2053"}}

Extra data: line 1 column 89 (char 88)

Steps to reproduce

  1. CLI arguments: -Format json -output 'nikto-output.json'
  2. Situation: IP is alive, port exists according to nmap it is HTTPS port, but the browser returns cipher error, probably bad configured.

Nikto version

2.1.6

sullo commented 2 years ago

If 2.1.6: Please perform a git pull as this change may have fixed it.

I Also recommend running 2.5.0.