feat: Created Hugo detection

patch-1
Muhammad Daffa 2022-10-05 19:29:44 +07:00 committed by GitHub
parent b244065a5d
commit a033fc4d81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
id: hugo-detect
info:
name: Detect Hugo
author: daffainfo
severity: info
description: Hugo is a fast and modern static site generator written in Go
tags: tech,hugo
requests:
- method: GET
path:
- "{{BaseURL}}/index.htm"
extractors:
- type: regex
group: 1
regex:
- '(?m)<meta name=generator content="Hugo ([0-9.]+)">'
matchers-condition: and
matchers:
- type: status
status:
- 200
- type: word
part: body
words:
- '<meta name=generator content="Hugo'