On Mon Sep 20 2004 at 16:43, Davide Messana wrote:

> If I disable netstat scanner, ssh_get_info.nasl is
> able to acquire the shared socket (but it too seems to forget to
> release it!).

Try this patch (you'll have to disable signature checking):
--- nessus-plugins/scripts/netstat_portscan.nasl	8 Sep 2004 14:36:30 -0000	1.14
+++ nessus-plugins/scripts/netstat_portscan.nasl	20 Sep 2004 15:34:17 -0000
@@ -68,9 +68,14 @@
  if ("LISTENING" >!< buf && "0.0.0.0:0" >!< buf && "*.*" >!< buf)
  {
  buf = ssh_cmd(socket:sock, cmd:"netstat -a -n", timeout:60);
+   if (! buf) {
+   {
+    display("could not send command\n");
  ssh_release_connection();
- if (! buf) { display("could not send command\n"); exit(0); }
+    exit(0);
+   }
  }
+  ssh_release_connection();
 }
 }
 
_______________________________________________
Nessus mailing list
[EMAIL PROTECTED]
http://mail.nessus.org/mailman/listinfo/nessus

Reply via email to