I am going to make a modification to the tcp ping capability to support a
list of destination ports.

I have looked at the code and I think I see two different ways to do this. 

I can modify the ping_host.nasl to use the ereg_replace function to parse
the port list and loop through a comma delimited list, calling tcp_ping
until the host is either alive or the list is exhausted.  I don't like this,
because it seems pretty inefficient, and doesn't extend the capability for
anything else.

I could also make a modification to the tcp_ping function in
libnasl/nasl/nessus_extensions.c.  But this requires changes to the code
which kind of negates the beauty of nasl.  Any thoughts on the preferred way
to make this change?

Dion




Reply via email to