Re: [Plugins-writers] Plugin Order?

From: George A. Theall (theall@private)
Date: Mon May 15 2006 - 12:45:01 PDT


On Fri, May 12, 2006 at 12:02:26PM -0700, HObbES wrote:

> The first plugin it picks is a PHP plugin, and it runs that even if a
> host is dead.  Obviously, it shouldn't do that on a dead host because
> the required service WWW is not enabled.

You probably want to make sure that the port is open; eg,

  port = get_http_port(default:80);
  if (!get_port_state(port)) exit(0);

You probably also want to add a dependency on http_version.nasl in this
case.

George
-- 
theall@private
_______________________________________________
Plugins-writers mailing list
Plugins-writers@private
http://mail.nessus.org/mailman/listinfo/plugins-writers



This archive was generated by hypermail 2.1.3 : Mon May 15 2006 - 12:45:41 PDT