Closed nodauf closed 3 years ago
rearranged things so the json is now valid if the host can't be connected to, as well as add the host meta information.
{"host":"localhost","ip":"127.0.0.1","port":"22","banner":"","vulnerabilities":[{"id": "000029","method":"TCP","url":"","msg":"Unable to connect to localhost:22."}]}
Expected behavior
The json report should be valid.
Actual behavior
When nikto is run on a port where there is no webserver the output is
At the end there too many is a
}
. One came from report_item and the other from report_closeSteps to reproduce
nc -lvp 8080
nikto -host http://localhost:8080 -ask no -o /tmp/out.json
Nikto version