Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
projectdiscovery
GitHub Repository: projectdiscovery/nuclei
Path: blob/dev/integration_tests/protocols/network/net-https-timeout.yaml
2070 views
1
id: net-https-timeout
2
3
info:
4
name: Example Network template which times out
5
author: pdteam
6
severity: high
7
description: Example Network template to send HTTPS request which times out
8
9
10
tcp:
11
- host:
12
- "tls://{{Hostname}}"
13
port: 443
14
inputs:
15
# noticable difference between this and net-https.yaml is that here we don't send the Connection: close header
16
# and hence connection will remain open until server closes it. This can be a DOS vector in nuclei
17
# 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 connection
18
# then nuclei will close connection but doesn't fail the request since we already have response data from server
19
# this feature is only required for `read-all: true` to work properly
20
- data: "GET / HTTP/1.1\r\nHost: {{Hostname}}\r\n\r\n"
21
read-all: true
22
extractors:
23
- type: dsl
24
dsl:
25
- "len(data)"
26