[Nikto-discuss] Bug: Nikto eating input from non-tty stdin
Sullo
csullo at gmail.com
Fri Apr 15 08:53:31 CDT 2011
On Fri, Apr 15, 2011 at 9:45 AM, Serge van den Boom
<svdb at madison-gurkha.com> wrote:
> Nikto eats characters from stdin, which is undesirable when this is not
> a tty. For instance, the following Bourne shell script fragment will not
> work:
> generateTargets | while read -r TARGET; do
> nikto.pl -Display V -Format txt -host "$TARGET" -output
> nikto-"$TARGET".txt
> done
>
> After the first host, one or more characters from the beginning of "$TARGET"
> may be cut for the following target.
This should work just fine. If characters are being dropped from
$TARGET than it seems like they are getting chopped out from
generateTargets and not inside nikto. If you preface your nikto.pl
line with an 'echo' to see what it's calling, is $TARGET intact or is
it mangled already?
I just tested out your script, replacing generateTargets with a simple
file cat, and it seems to work fine.
-Sullo
--
http://www.cirt.net | http://www.osvdb.org/
More information about the Nikto-discuss
mailing list