nuclei-templates/http/exposures/configs/netrc.yaml

43 lines
1.1 KiB
YAML
Raw Normal View History

2021-04-01 23:04:42 +00:00
id: netrc
info:
name: Netrc - Config File Discovery
2021-04-01 23:04:42 +00:00
author: geeknik
severity: high
description: Netrc configuration file was discovered.
reference:
- https://www.gnu.org/software/inetutils/manual/html_node/The-_002enetrc-file.html
metadata:
max-request: 2
2023-10-14 11:27:55 +00:00
tags: netrc,config,exposure
2021-04-01 23:04:42 +00:00
http:
2021-04-01 23:04:42 +00:00
- method: GET
path:
- "{{BaseURL}}/.netrc"
2021-05-19 12:43:28 +00:00
- "{{BaseURL}}/_netrc"
2021-04-01 23:04:42 +00:00
matchers-condition: and
matchers:
- type: status
status:
- 200
2023-10-14 11:27:55 +00:00
2021-04-01 23:04:42 +00:00
- type: regex
regex:
- "machine [0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\\.?"
2023-10-14 11:27:55 +00:00
2021-04-01 23:04:42 +00:00
- type: word
words:
- "login "
- "password "
condition: and
extractors:
- type: regex
part: body
regex:
- "machine [0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\\.?"
# digest: 490a00463044022072f3810d5161d773a7e963bf1431f25dc27b0af216a44b5d3ebc90f6bbc4b9f402207701413414bce54d3da7716463e173f5192dfe85efd4dcaa10f91901a398163e:922c64590222798bb761d5b6d8e72950