Merge pull request #1191 from geeknik/patch-54

Create netrc.yaml
patch-1
PD-Team 2021-04-02 15:19:06 +05:30 committed by GitHub
commit 9034e0d082
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,34 @@
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
requests:
- method: GET
path:
- "{{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])?)*\\.?"