Update and rename apache-answer-version-detection-regex.yaml to http/technologies/apache/apache-answer-detect.yaml

patch-2
Dhiyaneshwaran 2024-05-13 13:48:06 +05:30 committed by GitHub
parent bafb1f984e
commit 0a786be1ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 44 additions and 28 deletions

View File

@ -1,28 +0,0 @@
id: apache-answer-version-detection-regex
info:
name: Apache Answer Version Detection with Regex
author: Mohammad Reza Omrani | @omranisecurity
severity: info
description: Extracts the version of Apache Answer from the API endpoint using regex.
requests:
- method: GET
path:
- "{{BaseURL}}/answer/api/v1/siteinfo/"
headers:
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0
Referer: "{{BaseURL}}/users/login"
matchers-condition: and
matchers:
- type: status
status:
- 200
extractors:
- type: regex
part: body
name: version
regex:
- '"version":"([^"]+)"'

View File

@ -0,0 +1,44 @@
id: apache-answer-detect
info:
name: Apache Answer - Detection
author: omranisecurity
severity: info
description: |
Detects Apache Answer version through API endpoit
reference:
- https://answer.apache.org/
metadata:
shodan-query: html:"Apache Answer"
fofa-query: body="Apache Answer"
verified: true
max-request: 1
tags: detect,tech,apache
http:
- method: GET
path:
- "{{BaseURL}}/answer/api/v1/siteinfo"
matchers-condition: and
matchers:
- type: word
part: body
words:
- '"code":'
- type: word
part: header
words:
- application/json
- type: status
status:
- 200
extractors:
- type: regex
part: body
name: version
regex:
- '"version":"([^"]+)"'