forked from geeknik/the-nuclei-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netrc.yaml
35 lines (31 loc) · 980 Bytes
/
netrc.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
id: netrc
info:
name: netrc config file
author: geeknik
description: The .netrc file contains login and initialization information used by the auto-login process.
reference: https://www.gnu.org/software/inetutils/manual/html_node/The-_002enetrc-file.html
severity: high
tags: netrc,config,exposure
requests:
- method: GET
path:
- "{{BaseURL}}/.netrc"
- "{{BaseURL}}/_netrc"
matchers-condition: and
matchers:
- type: status
status:
- 200
- 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])?)*\\.?"
- 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])?)*\\.?"