$nessus->preferences( { "SMB account" => 'username', "SMB password" =>
'password' });

I've noticed that the syntax is different for defining plugin_set, such
as:
 
$nessus->plugin_set("10835;10861");

 
So do the plugin preferences get lumped into "preferences" or are they
defined separately? The entries look very different in the .nessusrc
file with the plugin preferences section being labeled plugins_prefs.
The section names in the .nessusrc don't seem to match up exactly with
what is used in scanlite. 
 
The .nessusrc entry for plugin preferences SMB credentials looks like:
 
begin(PLUGINS_PREFS)
Login configurations[entry]:SMB account : = myuser
Login configurations[password]:SMB password : = mypw
end(PLUGINS_PREFS)

While the server preferences look like:
 
begin(SERVER_PREFS)
silent_dependencies = yes
auto_enable_dependencies = yes
safe_checks = yes
end(SERVER_PREFS)

Thanks for any input,
Steve 
>>> Dave King <[EMAIL PROTECTED]> 3/14/2007 11:26 AM >>>

I haven't messed with scanlite for a little while, but from what I
remember it should be something like this

use Net::Nessus::ScanLite;
my $nessus = Net::Nessus::ScanLite->new( host => "some.host.net" port
=>
1234, ssl => 1, );

$nessus->preferences( { "SMB account" => 'username', "SMB password" =>
'password' });

then you would continue on with the plugins and such as shown on this
page
http://search.cpan.org/~jpb/Net-Nessus-ScanLite-0.01/lib/Net/Nessus/ScanLite.pm


One problem you may run into with the perl Nessus modules is that they
don't support Note messages.  It does holes and infos just fine, but
Notes will simply be skipped over.  I patched my own
Net::Nessus::Messages file to convert Notes to Infos and I could look
in
that and let you know which line had to be changed (it seems like it
was
a pretty easy fix).

If you're not tied to Perl, then you may want to check out Ruby's
nessuslibs.  I wrote this about a year ago and need to go back and
finish it up, but it should be more functional than any of the perl
modules.  It should do all the basics anyways.  It's found at
http://rubyforge.org/projects/nessuslibs/ and if anyone does try it
out
let me know if you have any suggestions on how I could make it better.

Dave



Steve Reagan wrote:
> Does anyone know the syntax for supplying plugins_prefs from
scanlite?
> Specifically, I'm trying to configure a SMB user/password.
>  
> An alternative would be if I could make the server override the
> scanlite settings and use the SMB user/password in the .nessusrc
file.
> A big thanks to anyone that can offer some input.
>  
> Steve
>
------------------------------------------------------------------------
>
> _______________________________________________
> Nessus mailing list
> [email protected] 
> http://mail.nessus.org/mailman/listinfo/nessus 

_______________________________________________
Nessus mailing list
[email protected]
http://mail.nessus.org/mailman/listinfo/nessus

Reply via email to