Hello! I have read that this function get_http_port(default) reads the KB item “Services/www”, verifies that the port is open, that there is an HTTP server behind it, and returns it. My questions are:
1. Does this function verifies HTTPS server (that the port 443 is open)? 2. If I want this function to return server behind it and I don't know the port, should I write just "port = get_http_port(default)" and its done? Or should I indicate first of all port 80 and if "if (!get_port_state(port))" then indicate port 443 and so...? 3. If I don't have any dependencies of other plugins and at the begining I do a port = get_http_port(default: 80); why is that it works? What is in the KB at this moment if I haven't write in it anything? How does this exactly works? Thank you very much for your time
_______________________________________________ Openvas-plugins mailing list Openvas-plugins@wald.intevation.org https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-plugins