mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 14:35:26 +00:00
30 lines
684 B
YAML
30 lines
684 B
YAML
|
|
id: dns-ssl-http-with-variables
|
||
|
|
|
||
|
|
info:
|
||
|
|
name: multi protocol request with dynamic values
|
||
|
|
author: pdteam
|
||
|
|
severity: info
|
||
|
|
|
||
|
|
|
||
|
|
variables:
|
||
|
|
cname_filtered: '{{trim_suffix(dns_cname,".ghost.io.")}}'
|
||
|
|
|
||
|
|
dns:
|
||
|
|
- name: "{{FQDN}}" # DNS Request
|
||
|
|
type: cname
|
||
|
|
|
||
|
|
ssl:
|
||
|
|
- address: "{{Hostname}}" # ssl request
|
||
|
|
|
||
|
|
http:
|
||
|
|
- method: GET # http request
|
||
|
|
path:
|
||
|
|
- "{{BaseURL}}"
|
||
|
|
|
||
|
|
matchers:
|
||
|
|
- type: dsl
|
||
|
|
dsl:
|
||
|
|
- contains(http_body,'ProjectDiscovery.io') # check for http string
|
||
|
|
- cname_filtered == 'projectdiscovery' # check for cname (extracted information from dns response)
|
||
|
|
- ssl_subject_cn == 'blog.projectdiscovery.io'
|
||
|
|
condition: and
|