Thanks for the quick response.

get_udp_port_state() is returning always TRUE to me even with UDP ports
where nothing is listening. Why? Also, I do not find any UDP port scanner
on my OpenVAS installation. I only have an NVT called "OpenVAS TCP scanner"
but it is useless for my purpose.

2016-03-10 11:16 GMT+01:00 Michael Meyer <michael.me...@greenbone.net>:

> *** Míkel Rodríguez wrote:
>
> > Hello. I need to develop an NVT which has to know if some UDP ports are
> > open or closed. How can I program that in NASL?
>
> udp_port = 53;
>
> if( get_udp_port_state( udp_port ) )
>   display( "Port open\n" );
> else
>   display( "Port closed\n" );
>
> get_*_port_state() relies on the result of the port scanner...
>
> HTH
>
> Micha
>
> --
> Michael Meyer                  OpenPGP Key: 0xAF069E9152A6EFA6
> http://www.greenbone.net/
> Greenbone Networks GmbH, Neuer Graben 17, 49074 Osnabrück | AG
> Osnabrück, HR B 202460
> Geschäftsführer: Lukas Grunwald, Dr. Jan-Oliver Wagner
> _______________________________________________
> Openvas-plugins mailing list
> Openvas-plugins@wald.intevation.org
> https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-plugins
>
_______________________________________________
Openvas-plugins mailing list
Openvas-plugins@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-plugins

Reply via email to