Giter Site home page Giter Site logo

mailspoof's People

Contributors

carlospolop avatar jarrahg avatar serain avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mailspoof's Issues

Check if should scan aspf and adkim issues

Are there vulns worth tracking here?

adkim:  (plain-text; OPTIONAL; default is "r".)  Indicates whether
      strict or relaxed DKIM Identifier Alignment mode is required by
      the Domain Owner.  See Section 3.1.1 for details.  Valid values
      are as follows:

      r: relaxed mode

      s: strict mode

   aspf:  (plain-text; OPTIONAL; default is "r".)  Indicates whether
      strict or relaxed SPF Identifier Alignment mode is required by the
      Domain Owner.  See Section 3.1.2 for details.  Valid values are as
      follows:

      r: relaxed mode

      s: strict mode

https://tools.ietf.org/html/rfc7489

"The DNS response does not contain an answer to the question"

Getting the following error:
"dns.resolver.NoAnswer: The DNS response does not contain an answer to the question: [DOMAIN.COM]. IN TXT"

Happening with multiple domains in a list. Domains exist and are registered but are not being found. A catch would also be nice to continue on resolving other domains and see results.

Doesn't find the DNS server

Traceback (most recent call last):
File "./mailspoof", line 10, in
sys.exit(main())
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mailspoof/init.py", line 42, in main
'issues': spoof_check(domain)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mailspoof/scanners.py", line 249, in call
return self.spf_check(domain) + self.dmarc_check(domain)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mailspoof/scanners.py", line 40, in call
spf_record = self.fetch(domain)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mailspoof/scanners.py", line 225, in call
txt_records = self.resolver.query(domain, 'TXT')
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dns/resolver.py", line 1041, in query
timeout = self._compute_timeout(start)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dns/resolver.py", line 858, in _compute_timeout
raise Timeout(timeout=duration)
dns.exception.Timeout: The DNS operation timed out after 5.004148006439209 seconds

Recurse SPF check breaks if no TXT response to included domain

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/dns/resolver.py", line 215, in __init__
    rdclass, rdtype)
  File "/usr/local/lib/python3.6/site-packages/dns/message.py", line 352, in find_rrset
    raise KeyError
KeyError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/dns/resolver.py", line 225, in __init__
    dns.rdatatype.CNAME)
  File "/usr/local/lib/python3.6/site-packages/dns/message.py", line 352, in find_rrset
    raise KeyError
KeyError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/mailspoof", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/site-packages/mailspoof/__init__.py", line 42, in main
    'issues': spoof_check(domain)
  File "/usr/local/lib/python3.6/site-packages/mailspoof/scanners.py", line 249, in __call__
    return self.spf_check(domain) + self.dmarc_check(domain)
  File "/usr/local/lib/python3.6/site-packages/mailspoof/scanners.py", line 65, in __call__
    included_domains, nb_lookups = self._get_include_domains(domain)
  File "/usr/local/lib/python3.6/site-packages/mailspoof/scanners.py", line 129, in _get_include_domains
    _recurse(domain)
  File "/usr/local/lib/python3.6/site-packages/mailspoof/scanners.py", line 127, in _recurse
    _recurse(include)
  File "/usr/local/lib/python3.6/site-packages/mailspoof/scanners.py", line 101, in _recurse
    spf_record = self.fetch(domain)
  File "/usr/local/lib/python3.6/site-packages/mailspoof/scanners.py", line 225, in __call__
    txt_records = self.resolver.query(domain, 'TXT')
  File "/usr/local/lib/python3.6/site-packages/dns/resolver.py", line 1053, in query
    raise_on_no_answer)
  File "/usr/local/lib/python3.6/site-packages/dns/resolver.py", line 234, in __init__
    raise NoAnswer(response=response)
dns.resolver.NoAnswer: The DNS response does not contain an answer to the question: mail.ciphr247.com. IN TXT```

Add debug logging

There's bound to be issues and there's no logging to facilitate debugging.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.