Hey, thanks Dave. It seems like it is close (scan takes longer now and
plugins are launching in the log file), but still not passing the
credentials correctly for some reason. Below is what I'm using right now
and I've tried a combination of spaces before and after the ":" to see
if it was just being picky (as eluded to in one of the archived
threads). If you can think of anything else, please let me know. I'm
working with ScanLite because it is part of a product package I'm
integrating and I don't really have the option of choosing another
module, without re-writing a lot of their scripts. Thanks again for all
your help thus far.
$nessus->preferences( { "Login configurations[entry]:SMB account :" =>
'myuser',
"Login configurations[password]:SMB password
:" => 'mypass',
auto_enable_dependencies =>
'yes',host_expansion => 'none',
safe_checks => 'yes',log_whole_attack =>
'yes',checks_read_timeout => 1 });
>>> Dave King <[EMAIL PROTECTED]> 3/14/2007 4:26 PM >>>
If I remember right when preferences get sent to the server they all
get
sent together, I'm pretty sure the separation is mostly for
organizational purposes for the .nessusrc file and for Nessus Clients,
but the server just needs all the prefs and doesn't care how they're
separated. Maybe someone form the Nessus team or NessusClient team
could verify this. It may be though that you need to use the longer
name like is in the .nessusrc file. so instead of what I said before
it
should be
$nessus->preferences( { "Login configurations[entry]:SMB account" =>
'username', "Login configurations[password]:SMB password" => 'password'
});
You can always try it and a plugin (I believe it's 10394
<index.php?view=single&id=10394>) will tell you if you're logged into
the host correctly. If you still can't get it to work let me know and
in the next couple of days I can look at my scanlite setup and see how
I
was running it.
Laters,
Dave
Steve Reagan wrote:
> $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
>
<http://search.cpan.org/%7Ejpb/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
_______________________________________________
Nessus mailing list
[email protected]
http://mail.nessus.org/mailman/listinfo/nessus