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