Discussion:
New error in my nessus.dump file
Chad I. Uretsky
2005-07-14 18:21:42 UTC
Permalink
Okay,

I'm eagerly awaiting 2.2.5, but in the meantime have decided to attempt
fixing my current installation of 2.2.4. As such, I removed all bpfs except
bpf0 - bpf3 (what I originally had). Recompiled my OS kernel (FreeBSD 4.8)
using my previous configuration. Uninstalled and reinstalled Nessus. BPF
server is back, nessusd is running. Whenever I run a scan (and I'm using
log_whole_attack and turned on debugging in my nessusrc file for
troubleshooting), I'm seeing the following error:

(/usr/local/lib/nessus/plugins/netstat_portscan.nasl) Undefined function
'get_hostname'

As a result, Nessus doesn't run ANY plugins against my hosts. It scans, it
finds ports, it just won't run plugins.

Anyone have any thoughts?

Chad Uretsky
Lead Network and Security Engineer, IT | NetIQ Corporation
Direct 713.418.5200 | Fax 713.548.1771 | www.netiq.com
<http://www.netiq.com>
1233 West Loop South | Suite 1800 | Houston, TX, 77345
George A. Theall
2005-07-15 01:12:17 UTC
Permalink
Post by Chad I. Uretsky
Whenever I
run a scan (and I'm using log_whole_attack and turned on debugging in my
(/usr/local/lib/nessus/plugins/netstat_portscan.nasl) Undefined function
'get_hostname'
This is being logged in nessusd.dump, right?

Also, what's the revision of that plugin (netstat_portscan.nasl)? 1.9 is
the latest.

George
--
***@tenablesecurity.com
George A. Theall
2005-07-15 02:00:02 UTC
Permalink
Post by Chad I. Uretsky
Whenever I
run a scan (and I'm using log_whole_attack and turned on debugging in my
(/usr/local/lib/nessus/plugins/netstat_portscan.nasl) Undefined function
'get_hostname'
It turns out this was a problem introduced in ssh_func.inc yesterday and
fixed a few hours ago. Update your plugins if you haven't already and
this should be fixed.

George
--
***@tenablesecurity.com
Chad I. Uretsky
2005-07-15 13:07:32 UTC
Permalink
Okay, well, when I had that yesterday, I decided to try installing from the
gzip files instead of using the installer script. That fixed the
'get_hostname' problem, but I ended up with a new bpf problem. Since you
posted this, I've decided to uninstall and reinstall Nessus again (using the
installer script this time). When it starts the installation, it recognizes
that gtk isn't available and says that it will install without the gui.
Great, this is what I want. However, as the script continues, I see the
following:

exec.c: In function `execute_nasl_script':
exec.c:1822: warning: assignment discards qualifiers from pointer target
type
nasl_func.c: In function `insert_nasl_func':
nasl_func.c:100: warning: passing arg 4 of `qsort' from incompatible pointer
type

Just a few lines after that, I also see:

x -- Configuring the sources for your system
configure: warning: **** gtk not found

Is any of this stuff normal or typical? The compilation errors look
feasible, but I'm not sure if that's just how the code is written and the
compiler is mistaken. As far as the configure warning, I would think that
configure would recognize that gtk wasn't installed and would not need to
display this warning. Am I incorrect?

Thanks.

Chad Uretsky
Lead Network and Security Engineer, IT | NetIQ Corporation





-----Original Message-----
From: nessus-***@list.nessus.org [mailto:nessus-***@list.nessus.org]
On Behalf Of George A. Theall
Sent: Thursday, July 14, 2005 9:00 PM
To: ***@list.nessus.org
Subject: Re: New error in my nessus.dump file
Post by Chad I. Uretsky
Whenever I
run a scan (and I'm using log_whole_attack and turned on debugging in
(/usr/local/lib/nessus/plugins/netstat_portscan.nasl) Undefined
function 'get_hostname'
It turns out this was a problem introduced in ssh_func.inc yesterday and
fixed a few hours ago. Update your plugins if you haven't already and this
should be fixed.

George
--
***@tenablesecurity.com _______________________________________________
Nessus mailing list
***@list.nessus.org http://mail.nessus.org/mailman/listinfo/nessus
Chad I. Uretsky
2005-07-15 15:18:10 UTC
Permalink
Okay, follow-up....

Looks like that install did work, and I can even get Nessus to detect
plugins 18027, 18028, and 18502 now. However, it appears that somehow,
auto_enable_dependencies got broken. The server will not automatically scan
for dependencies. If I manually turn on plugins 10150, 11011, 10785, and
12213, then the plugins will work. Without them, regardles of the fact that
I have auto_enable_dependencies set to 'yes' in both nessusd.conf and the rc
file I'm using for the scans, it does not launch the necessary plugins.

Also, and I'm not sure if this is related in any way, I found a typo in
11011 (cifs445.nasl). In this script, 'script_dependencies' is misspelled
as 'script_dependencie' (missing the final 's').

Thank you George and Renaud for all your help!

Chad



-----Original Message-----
From: nessus-***@list.nessus.org [mailto:nessus-***@list.nessus.org]
On Behalf Of Chad I. Uretsky
Sent: Friday, July 15, 2005 8:08 AM
To: 'George A. Theall'; '***@list.nessus.org'
Subject: RE: New error in my nessus.dump file


Okay, well, when I had that yesterday, I decided to try installing from the
gzip files instead of using the installer script. That fixed the
'get_hostname' problem, but I ended up with a new bpf problem. Since you
posted this, I've decided to uninstall and reinstall Nessus again (using the
installer script this time). When it starts the installation, it recognizes
that gtk isn't available and says that it will install without the gui.
Great, this is what I want. However, as the script continues, I see the
following:

exec.c: In function `execute_nasl_script':
exec.c:1822: warning: assignment discards qualifiers from pointer target
type
nasl_func.c: In function `insert_nasl_func':
nasl_func.c:100: warning: passing arg 4 of `qsort' from incompatible pointer
type

Just a few lines after that, I also see:

x -- Configuring the sources for your system
configure: warning: **** gtk not found

Is any of this stuff normal or typical? The compilation errors look
feasible, but I'm not sure if that's just how the code is written and the
compiler is mistaken. As far as the configure warning, I would think that
configure would recognize that gtk wasn't installed and would not need to
display this warning. Am I incorrect?

Thanks.

Chad Uretsky
Lead Network and Security Engineer, IT | NetIQ Corporation





-----Original Message-----
From: nessus-***@list.nessus.org [mailto:nessus-***@list.nessus.org]
On Behalf Of George A. Theall
Sent: Thursday, July 14, 2005 9:00 PM
To: ***@list.nessus.org
Subject: Re: New error in my nessus.dump file
Post by Chad I. Uretsky
Whenever I
run a scan (and I'm using log_whole_attack and turned on debugging in
(/usr/local/lib/nessus/plugins/netstat_portscan.nasl) Undefined
function 'get_hostname'
It turns out this was a problem introduced in ssh_func.inc yesterday and
fixed a few hours ago. Update your plugins if you haven't already and this
should be fixed.

George
--
***@tenablesecurity.com _______________________________________________
Nessus mailing list
***@list.nessus.org http://mail.nessus.org/mailman/listinfo/nessus
George A. Theall
2005-07-15 20:23:07 UTC
Permalink
Post by Chad I. Uretsky
However, it appears that somehow,
auto_enable_dependencies got broken.
Make sure it's also enabled in nessusd.conf. If you need to change it,
you'll need to restart nessusd for the change to take effect.
Post by Chad I. Uretsky
Also, and I'm not sure if this is related in any way, I found a typo in
11011 (cifs445.nasl). In this script, 'script_dependencies' is misspelled
as 'script_dependencie' (missing the final 's').
Actually, the misspelling is legal syntax -- I suspect too many plugins
were written before the error was noticed and fixed.

George
--
***@tenablesecurity.com
Chad I. Uretsky
2005-07-15 20:28:54 UTC
Permalink
Auto_enable_dependencies is enabled in nessusd.conf. I did check that
previously, and even restarted nessusd to make sure that it was loaded.
Still, this problem continues.

Thanks.

Chad



-----Original Message-----
From: nessus-***@list.nessus.org [mailto:nessus-***@list.nessus.org]
On Behalf Of George A. Theall
Sent: Friday, July 15, 2005 3:23 PM
To: ***@list.nessus.org
Subject: Re: New error in my nessus.dump file
Post by Chad I. Uretsky
However, it appears that somehow,
auto_enable_dependencies got broken.
Make sure it's also enabled in nessusd.conf. If you need to change it,
you'll need to restart nessusd for the change to take effect.
Post by Chad I. Uretsky
Also, and I'm not sure if this is related in any way, I found a typo
in 11011 (cifs445.nasl). In this script, 'script_dependencies' is
misspelled as 'script_dependencie' (missing the final 's').
Actually, the misspelling is legal syntax -- I suspect too many plugins were
written before the error was noticed and fixed.

George
--
***@tenablesecurity.com _______________________________________________
Nessus mailing list
***@list.nessus.org http://mail.nessus.org/mailman/listinfo/nessus
George A. Theall
2005-07-16 00:20:22 UTC
Permalink
Post by Chad I. Uretsky
Auto_enable_dependencies is enabled in nessusd.conf. I did check that
previously, and even restarted nessusd to make sure that it was loaded.
Still, this problem continues.
Sorry, I missed that before.

I'm not really sure what could be going on then... Is it possible that
the setting occurs more than once in either file? Or that you're reusing
knowledge base results from an earlier scan/


George
--
***@tenablesecurity.com
Chad I. Uretsky
2005-07-16 21:46:01 UTC
Permalink
I've checked the nessusd.conf and my rc file. I don't see anything that
would disable auto_enable_dependencies, nor do I see anything that should
cause Nessus to reuse kb results from an earlier scan (all kb options are
set to 'no').

Thanks again for your help, George.

Chad



-----Original Message-----
From: nessus-***@list.nessus.org [mailto:nessus-***@list.nessus.org]
On Behalf Of George A. Theall
Sent: Friday, July 15, 2005 7:20 PM
To: ***@list.nessus.org
Subject: Re: New error in my nessus.dump file
Post by Chad I. Uretsky
Auto_enable_dependencies is enabled in nessusd.conf. I did check that
previously, and even restarted nessusd to make sure that it was
loaded. Still, this problem continues.
Sorry, I missed that before.

I'm not really sure what could be going on then... Is it possible that the
setting occurs more than once in either file? Or that you're reusing
knowledge base results from an earlier scan/


George
--
***@tenablesecurity.com _______________________________________________
Nessus mailing list
***@list.nessus.org http://mail.nessus.org/mailman/listinfo/nessus
George A. Theall
2005-07-18 15:28:00 UTC
Permalink
Post by Chad I. Uretsky
I've checked the nessusd.conf and my rc file. I don't see anything that
would disable auto_enable_dependencies, nor do I see anything that should
cause Nessus to reuse kb results from an earlier scan (all kb options are
set to 'no').
Hmm, try this: remove the directory /usr/local/lib/nessus/plugins/.desc,
restart nesssud, and rerun a scan. Does auto_enable_dependencies work
this time? It also might not be a bad idea to remove / rotate
nessusd.dump to avoid confusing things.

Also, what does "nessusd -d" report?

George
--
***@tenablesecurity.com
Mercer, Jeff
2005-07-18 19:28:50 UTC
Permalink
I enabled OS identification in the NMAP settings and it does now list the
Cisco IOS version in the results. But doesn't explicitly indicate it's a
WAP.

nessusd -d:
This is Nessus 2.2.4 for Linux 2.4.22-2fsmp
compiled with gcc version 3.2.2 20030217 (Yellow Dog Linux 3.0 3.2.2-2a)
Current setup :
nasl : 2.2.4
libnessus : 2.2.4
SSL support : enabled
SSL is used for client / server communication
Running as euid : 0

Did the other changes you suggested and re-ran the scan. It finds all the
open ports but doesn't seem to identify the WAPs specifically, just says
it's a Cisco IOS...
Post by Chad I. Uretsky
-----Original Message-----
Sent: Monday, July 18, 2005 11:28 AM
Subject: Re: New error in my nessus.dump file
Post by Chad I. Uretsky
I've checked the nessusd.conf and my rc file. I don't see
anything that
Post by Chad I. Uretsky
would disable auto_enable_dependencies, nor do I see
anything that should
Post by Chad I. Uretsky
cause Nessus to reuse kb results from an earlier scan (all
kb options are
Post by Chad I. Uretsky
set to 'no').
Hmm, try this: remove the directory
/usr/local/lib/nessus/plugins/.desc,
restart nesssud, and rerun a scan. Does auto_enable_dependencies work
this time? It also might not be a bad idea to remove / rotate
nessusd.dump to avoid confusing things.
Also, what does "nessusd -d" report?
George
--
_______________________________________________
Nessus mailing list
http://mail.nessus.org/mailman/listinfo/nessus
George A. Theall
2005-07-18 19:55:48 UTC
Permalink
Post by Mercer, Jeff
I enabled OS identification in the NMAP settings and it does now list the
Cisco IOS version in the results. But doesn't explicitly indicate it's a
WAP.
Does it just report "Cisco IOS" or is there something else, like a model
number?

Also, which version of nmap are you using? If older than 3.75, try
upgrading as there was a significant improvement on OS signatures made then.


George
--
***@tenablesecurity.com
Chad I. Uretsky
2005-07-19 18:53:45 UTC
Permalink
Ok, I tried removing /usr/local/lib/nessus/plugins/.desc and restarted
nessusd, but auto_enable_dependencies is still not working. I've also
updated my plugins (today), and now it looks like plugin 12213
(tcp_seq_window.nasl) is no longer working. :-(

Oh, I use newsyslog to automatically rotate nessusd.dump (as well as
nessusd.message), and I HUP nessus every night a few minutes after the log
rotation so that it will connect back to the log file (I've noticed that if
I don't HUP the process, nessusd will stop writing to its logs).

Here's the results of nessusd -d:

========================================
This is Nessus 2.2.4 for FreeBSD 4.8-RELEASE-p7
compiled with gcc version 2.95.4 20020320 [FreeBSD]
Current setup :
nasl : 2.2.4
libnessus : 2.2.4
SSL support : enabled
SSL is used for client / server communication
Running as euid : 0


Include these infos in your bug reports
========================================


I hope the fixes coming Friday in 2.2.5 take care of this.

Thanks again for the help.

Chad



-----Original Message-----
From: nessus-***@list.nessus.org [mailto:nessus-***@list.nessus.org]
On Behalf Of George A. Theall
Sent: Monday, July 18, 2005 10:28 AM
To: ***@list.nessus.org
Subject: Re: New error in my nessus.dump file
Post by Chad I. Uretsky
I've checked the nessusd.conf and my rc file. I don't see anything
that would disable auto_enable_dependencies, nor do I see anything
that should cause Nessus to reuse kb results from an earlier scan (all
kb options are set to 'no').
Hmm, try this: remove the directory /usr/local/lib/nessus/plugins/.desc,
restart nesssud, and rerun a scan. Does auto_enable_dependencies work this
time? It also might not be a bad idea to remove / rotate nessusd.dump to
avoid confusing things.

Also, what does "nessusd -d" report?

George
--
***@tenablesecurity.com _______________________________________________
Nessus mailing list
***@list.nessus.org http://mail.nessus.org/mailman/listinfo/nessus
Loading...