FS#62570 - [nikto] Launch script switches directory, breaking output options

Attached to Project: Community Packages
Opened by Drew Noel (drewmnoel) - Tuesday, 07 May 2019, 19:19 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:00 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

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 .
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:00 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/nikto/issues/1
Comment by krav (kravlin) - Thursday, 21 October 2021, 18:04 GMT
There's a fix for this bug, by switching the contents of /usr/bin/nikto to

#!/bin/sh
exec /usr/bin/perl /usr/share/nikto/nikto.pl "$@"

is there a chance this can be pushed out to the package? I know it's a low, but I'm really tired of fixing it every time I install nikto on a new VM.
Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.

Loading...