Path: blob/dev/integration_tests/protocols/network/net-https-timeout.yaml
2070 views
id: net-https-timeout12info:3name: Example Network template which times out4author: pdteam5severity: high6description: Example Network template to send HTTPS request which times out789tcp:10- host:11- "tls://{{Hostname}}"12port: 44313inputs:14# noticable difference between this and net-https.yaml is that here we don't send the Connection: close header15# and hence connection will remain open until server closes it. This can be a DOS vector in nuclei16# as it waits for server to close the connection. now we have set a default timeout of 5 seconds and if server responds but doesn't close the connection17# then nuclei will close connection but doesn't fail the request since we already have response data from server18# this feature is only required for `read-all: true` to work properly19- data: "GET / HTTP/1.1\r\nHost: {{Hostname}}\r\n\r\n"20read-all: true21extractors:22- type: dsl23dsl:24- "len(data)"2526