On Wed, 14 Jan 2009 21:25:46 -0000, maddaemon@gmail.com
<maddaemon@gmail.com> wrote:
[results from a direct connection]
Headers show the following (using both 80 & 443)
HTTP/1.1 301 Moved Permanently
Date: Wed, 14 Jan 2009 21:16:02 GMT
Server: Apache
Location: https://tracker.mydomain.tld
Connection: close
Content-Type: text/html; charset=iso-8859-1
And that'll be the problem; the code from nikto does:
if (defined $result{'whisker'}{'data'} && $result{'whisker'}->{'data'}
=~ /speaking plain HTTP to an SSL/)
Of course, the 301 doesn't return any data so it doesn't think that it's a
valid port. Looks like we have a bug, but I'm not 100% certain of how to
fix it; maybe we should check for error code, then check the appropriate
header (e.g. in this case Location).
Could you do me a favour and got to
http://trac2.assembla.com/Nikto_2/newticket and raise a ticket for me so
that I don't lose track of what I'm doing (you don't need an assembla
account to raise a ticket, though you won't be able to track it
automagically if you don't).
dave
Also, on this particular system (FreeBSD 7.0-RELEASE i386), it doesn't seem to find *any* servers:
Just a quick follow-up on this, I tried doing a scan on some public
sites, and I keep getting the same error:
MadDaemon?@darkhorse [~]# nikto -h www.microsoft.com -D d
- Nikto v2.03/2.04
D:Thu Jan 15 12:48:25 2009 - Target
id:1:ident:www.microsoft.com:ports_in:80:vhost:=:
D:Thu Jan 15 12:48:25 2009 - Target id:1:ident:www.microsoft.com:ports_in:80:
+ No web server found on 207.46.193.254:80
+ 1 host(s) tested
Test Options: -h www.microsoft.com -D d
D:Thu Jan 15 12:48:26 2009 T:Thu Jan 15 12:48:26 2009: Ending
MadDaemon?@darkhorse [~]# nikto -h www.oracle.com -D d
- Nikto v2.03/2.04
D:Thu Jan 15 12:51:06 2009 - Target
id:1:ident:www.oracle.com:ports_in:80:vhost:=:
D:Thu Jan 15 12:51:06 2009 - Target id:1:ident:www.oracle.com:ports_in:80:
+ No web server found on 141.146.8.66:80
+ 1 host(s) tested
Test Options: -h www.oracle.com -D d
D:Thu Jan 15 12:51:07 2009 T:Thu Jan 15 12:51:07 2009: Ending
MadDaemon?@darkhorse [~]# nikto -h www.freebsd.org -D d
- Nikto v2.03/2.04
D:Thu Jan 15 12:51:59 2009 - Target
id:1:ident:www.freebsd.org:ports_in:80:vhost:=:
D:Thu Jan 15 12:51:59 2009 - Target id:1:ident:www.freebsd.org:ports_in:80:
+ No web server found on 69.147.83.33:80
+ 1 host(s) tested
Test Options: -h www.freebsd.org -D d
D:Thu Jan 15 12:51:59 2009 T:Thu Jan 15 12:51:59 2009: Ending
MadDaemon?@darkhorse [~]# pkg_info | grep nikto
nikto-2.03 Web and CGI vulnerability scanner with SSL support
MadDaemon?@darkhorse [~]# uname -rsm
FreeBSD 7.0-RELEASE i386
MadDaemon?@darkhorse [~]# cat /usr/ports/security/nikto/distinfo
MD5 (nikto-2.03.tar.bz2) = 8f286a7943b12a341088f005f832d087
SHA256 (nikto-2.03.tar.bz2) = 61b78434560c5c311f38c47e7e6816012c9c83a3cfdf4a978ceaaf34718a3b73
SIZE (nikto-2.03.tar.bz2) = 399643