Add html-generator-detect (#3608)

* Add html-generator-detect

* Update html-generator-detect.yaml

* Update html-generator-detect.yaml

* minor updates

Co-authored-by: Prince Chaddha <prince@projectdiscovery.io>
Co-authored-by: sandeep <sandeep@projectdiscovery.io>
patch-1
Daniel 2022-01-28 11:08:24 +01:00 committed by GitHub
parent adee4b14a9
commit 371406340f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,35 @@
id: metatag-cms
info:
name: Metatag CMS Detection
author: dadevel
severity: info
description: Generic CMS Detection using html meta generator tag
reference: https://www.w3schools.com/tags/att_meta_name.asp
tags: tech,cms
requests:
- method: GET
path:
- "{{BaseURL}}"
redirects: true
max-redirects: 2
matchers-condition: and
matchers:
- type: word
part: header
words:
- 'text/html'
- type: regex
part: body
regex:
- '(?i)<meta\s+?name="?generator"?\s+?content="[^"]+?"'
extractors:
- type: regex
part: body
group: 1
regex:
- '(?i)<meta\s+?name="?generator"?\s+?content="([^"]+?)"'