Hi All,
 
I am trying to use Net::Nessus and Net::Nessus::ScanLite modules to launch Nessus attack scripts. I installed Net_SSLeay and couple of more modules such as Net::Telnet etc. required with Net::Nessus. Then I tried to execute nessusc with following options but it gave me error.

[EMAIL PROTECTED] root]# nessusc --user=atish --password=msuncc --target=localhost --host=localhost --port=3001 --verbose
Cannot connect to the Nessus server running at localhost, port 3001:
problem connecting to "localhost", port 3001:
Connection refused at /usr/lib/perl5/site_perl/5.8.0/Net/Nessus/Client.pm line 137
 
[EMAIL PROTECTED] root]# nessusc --user=atish --password=msuncc --target=localhost --host=localhost --port=1241 --verbose
Cannot connect to the Nessus server running at localhost, port 1241:
Error while requesting NTP proto 1.1:  at
/usr/lib/perl5/site_perl/5.8.0/Net/Nessus/Client.pm line 151.
 
[EMAIL PROTECTED] root]#


I tried port 1241 because I was able to connect to nessusd using nessus on port 1241.

I don't know why is it not able to connect. Line 137 in client.pm is as follows. (for port 3001)

#137  my $sock = $attr{'socket'} =
#138      Net::Telnet->new('Binmode' => 1,
#139                       'Host' => $host,
#140                       'Port' => $port,
#141                       'Dump_Log' => $attr{'Dump_Log'},
#142                       'Input_Log' => $attr{'Input_Log'},
#143                       'Output_Log' => $attr{'Output_Log'},
#144                       'Telnetmode' => 0,
#145                       'Timeout' => ($attr{'Timeout'} || 300))
#146       or Carp::croak("Cannot connect: $!");  

and line 151 is as follows. (for port 1241)

#150   my $line = $sock->getline();
#151   die "Error while requesting NTP proto $proto: $!" unless defined($line);


Please let me know what's going wrong in executing this  script.
 
Thank you in advance.
Atish.


Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
_______________________________________________
Nessus mailing list
[EMAIL PROTECTED]
http://mail.nessus.org/mailman/listinfo/nessus

Reply via email to