Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for DNS CAA query #1564

Merged
merged 1 commit into from
Feb 3, 2022
Merged

Adding support for DNS CAA query #1564

merged 1 commit into from
Feb 3, 2022

Conversation

Mzack9999
Copy link
Member

@Mzack9999 Mzack9999 commented Feb 2, 2022

Proposed changes

This PR adds support for CAA query type in DNS protocol

Checklist

  • Pull request is created against the dev branch
  • All checks passed (lint, unit/integration/regression tests etc.) with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

How to reproduce

template.yaml

id: caa-example

info:
  name: CAA Example
  author: pdteam
  severity: info
  tags: dns,caa

dns:
  - name: "{{FQDN}}"
    type: CAA

    matchers:
      - type: word
        words:
          - "IN\tCAA"

    extractors:
      - type: regex
        group: 1
        regex:
          - "IN\tCAA\t(.+)"

run with:

$ echo google.com | go run . -t template.yaml 

                     __     _
   ____  __  _______/ /__  (_)
  / __ \/ / / / ___/ / _ \/ /
 / / / / /_/ / /__/ /  __/ /
/_/ /_/\__,_/\___/_/\___/_/   2.6.0-dev

                projectdiscovery.io

[WRN] Use with caution. You are responsible for your actions.
[WRN] Developers assume no liability and are not responsible for any misuse or damage.
[INF] Using Nuclei Engine 2.6.0-dev (development)
[INF] Using Nuclei Templates 8.8.4 (latest)
[INF] Templates added in last update: 56
[INF] Templates loaded for scan: 1
[2022-02-02 07:56:33] [caa-example] [dns] [info] google.com [0 issue "pki.goog"]

@Mzack9999 Mzack9999 added the Type: Enhancement Most issues will probably ask for additions or changes. label Feb 2, 2022
@Mzack9999 Mzack9999 self-assigned this Feb 2, 2022
@Mzack9999 Mzack9999 linked an issue Feb 2, 2022 that may be closed by this pull request
@Mzack9999 Mzack9999 added the Status: Review Needed The issue has a PR attached to it which needs to be reviewed label Feb 2, 2022
@ehsandeep ehsandeep merged commit 04f8f84 into dev Feb 3, 2022
@ehsandeep ehsandeep deleted the issue-1542-caa-query branch February 3, 2022 05:53
@ehsandeep ehsandeep added Status: Completed Nothing further to be done with this issue. Awaiting to be closed. and removed Status: Review Needed The issue has a PR attached to it which needs to be reviewed labels Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Completed Nothing further to be done with this issue. Awaiting to be closed. Type: Enhancement Most issues will probably ask for additions or changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for DNS CAA record in DNS template
3 participants