*** Sylvain Faivre wrote:

> The site listens on port 443, so I tried to change this line in the
> script, as I found no way to set this value on the command line :
> #port = get_http_port( default:80 );
> port = get_http_port( default:443 );

This will not work on cli. Use the following:

replace_kb_item(name: "Transports/TCP/443", value:2); # (¹)
port = get_http_port( default:443 );

> The script still gives no output, and nothing is written to the
> OpenVAS log. The NASL language seems to lack any instruction to
> generate output, so I don't know how to troubleshoot this further ?

buf = http_send_recv( port:port, data:req, bodyonly:FALSE );
display("BUF: ", buf, "\n");

Micha

¹
2 = ENCAPS_SSLv23 -> Request compatibility options
3 = ENCAPS_SSLv2  -> SSL version 2
4 = ENCAPS_SSLv3  -> SSL version 3
5 = ENCAPS_TLSv1  -> TLS version 1.0
6 = ENCAPS_TLSv11 -> TLS version 1.1
7 = ENCAPS_TLSv12 -> TLS version 1.2

-- 
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-discuss mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to