8000 fix(CLI/auditdom): a single CNAME record does not mean AXFR success by p-l- · Pull Request #1705 · ivre/ivre · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(CLI/auditdom): a single CNAME record does not mean AXFR success #1705

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

Merged
merged 1 commit into from
May 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ivre/analyzer/dns.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/env python

# This file is part of IVRE.
# Copyright 2011 - 2024 Pierre LALET <pierre@droids-corp.org>
# Copyright 2011 - 2025 Pierre LALET <pierre@droids-corp.org>
#
# IVRE is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -156,8 +156,9 @@ def test(self, v4: bool = True, v6: bool = True) -> Generator[NmapHost, None, No
srvname = srvname.rstrip(".")
if not res:
continue
if len(res) == 1 and res[0].rtype == "SOA":
if len(res) == 1 and res[0].rtype in {"SOA", "CNAME"}:
# SOA only: transfer failed
# CNAME only: no transfer actually performed
continue
LOGGER.info("AXFR success for %r on %r", self.domain, addr)
line_fmt = "| %%-%ds %%-%ds %%s" % (
Expand Down
0