Launch script switches directory, breaking output options

Task Info (Flyspray)
Opened By Drew Noel (drewmnoel)
Task ID 62570
Type Bug Report
Project Community Packages
Category Packages
Version None
OS All
Opened 2019-05-07 19:19:11 UTC
Status Assigned
Assignee Levente Polyak (anthraxx)

Details

Description: The script that is installed to /usr/bin/ contains a "cd" to another directory (/usr/share/nikto/). This means that when a user gives an output flag to nikto, nikto attempts to write the output to /usr/share/nikto/, rather than the user's real working directory.

Additional info:

  • Nikto v2.1.6

Reproduction Examples (as a non-privileged user):

  1. nikto -host https://example.com -output example.txt
  2. nikto -host https://example.com -Save .