Merge pull request #782 from hahwul/master

Create github-page-files.yml
patch-1
Sandeep Singh 2021-07-30 18:15:28 +05:30 committed by GitHub
commit 162cf14687
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,32 @@
id: github-gemfile-files
info:
name: Github Gemfiles
author: hahwul
severity: info
description: Find github page files(Gemfile / Gemfile.lock)
tags: github,exposure
requests:
- method: GET
path:
- "{{BaseURL}}/Gemfile"
- "{{BaseURL}}/Gemfile.lock"
matchers-condition: or
matchers:
- type: dsl
dsl:
- 'contains(body, "https://rubygems.org")'
- 'contains(body, "source")'
- 'contains(body, "gem")'
- 'status_code == 200'
condition: and
- type: dsl
dsl:
- 'contains(body, "https://rubygems.org")'
- 'contains(body, "remote")'
- 'contains(body, "specs")'
- 'status_code == 200'
condition: and

View File

@ -0,0 +1,26 @@
id: github-page-config
info:
name: Github pages config file
author: hahwul
severity: info
description: Find github pages config file.
tags: github,exposure
requests:
- method: GET
path:
- "{{BaseURL}}/_config.yml"
matchers-condition: and
matchers:
- type: status
status:
- 200
- type: word
words:
- "jekyll"
- "title"
- "baseurl"
condition: and