Code Monkey home page Code Monkey logo

dkimscan's Introduction

dkimscan

A scanner for DKIM selectors.

This is some code I wrote in early 2012 that I realized I'd never gotten around to releasing. An extensive list of common selectors and selector patterns is built in. Please be aware that this sends a very high volume of queries and may take several minutes to run a full scan.

If you're aware of any popular selector patterns that I missed but are feasibly searchable, please share.

What is it good for?

  • Recon

    • Many email service providers and marketing companies have their customers add a predictable selector
    • Selector names and keys are sometimes reused across related domains
  • Find weak keys - There are still domains out there with unused but still published 512 and 768 bit RSA keys

dkimscan's People

Contributors

ryancdotorg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dkimscan's Issues

No socket returned from bgsend()

If an expected failure mode, might be good to trap this and provide guidance to the end user.

No socket returned from bgsend() at /usr/share/perl5/Net/DNS/Async.pm line 112, line 188.

async error: bad base64 decode

$ ./dkimscan.pl alpca.org

fqdn: default._domainkey.alpca.org

txt: "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA19OAUXQIu+Dk+6SWW1QACXUKHbn/Tmb27JeuQeM5kQ6WoUu9VdObRej7AR2AEFDaMwt9vgjKqqxf3Ag7sU2lGJOiNYRlJPLWLFxhD/WQ9pUURJ/clJODZNiZdXOM9cf1zrc5A9XjHKQ8hQNtzpgp0ymAvMZA01FVOBPt9OQxJ7ZLv3bQqxuNPYIvcQuPllsaI"
"gmtw2OjQDlL7ZbgC61Gq1LI+X2fFJ5aKvMJ/gaDL8bmB/VqidGvSNYeqvFZ8v2Am+fGZpgRpjytBsxOEt04hUam+xOS4BNvHYgq+SCG5l75cPs/GfXAwfo1B6fJ3g8G3o1iWWGzmbi7+2XFh+p2YwIDAQAB;"

key: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA19OAUXQIu+Dk+6SWW1QACXUKHbn/Tmb27JeuQeM5kQ6WoUu9VdObRej7AR2AEFDaMwt9vgjKqqxf3Ag7sU2lGJOiNYRlJPLWLFxhD/WQ9pUURJ/clJODZNiZdXOM9cf1zrc5A9XjHKQ8hQNtzpgp0ymAvMZA01FVOBPt9OQxJ7ZLv3bQqxuNPYIvcQuPllsaI===

Async died within Net::DNS::Async: RSA.xs:198: OpenSSL error: bad base64 decode at blib/lib/Crypt/OpenSSL/RSA.pm (autosplit into blib/lib/auto/Crypt/OpenSSL/RSA/new_public_key.al) line 88, line 12.

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.