Skip to content
KitploitKITPLOIT
工具博客
Log in
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
工具/GitHubGitHub/mattkeeley/spoofy
PhishingPenetration TestingEmail SecurityDNS Analysis
GitHubmattkeeley/spoofy

Spoofy

Bulk domain spoofability checker using authoritative SPF and DMARC record analysis with custom, real-world tested spoof logic and optional DKIM enumeration.

查看仓库
76982223天前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
内容在请求的语言中不可用。显示英文版本。



Spoofy

forthebadge forthebadge forthebadge

WHAT

Spoofy is a program that checks if a list of domains can be spoofed based on SPF and DMARC records. You may be asking, "Why do we need another tool that can check if a domain can be spoofed?"

Well, Spoofy is different and here is why:

  1. Custom, manually tested spoof logic (No guessing or speculating, real world test results)
  2. Standards-based record discovery: RFC 7208 SPF evaluation and the RFC 9989 DMARC tree walk, including sp/np for subdomains
  3. Accurate bulk lookups over a shared, caching resolver with failover (1.1.1.1, 8.8.8.8, 9.9.9.9)
  4. SPF DNS query and void lookup counter, plus detection of unregistered SPF include domains
  5. Optional DKIM selector enumeration via API

PASSING TESTS

Spoofy CI

HOW TO USE

Spoofy requires Python 3.9+. Install it from PyPI:

pip3 install spoofy
spoofy -d example.com

Or run it from a clone with pip3 install -r requirements.txt and ./spoofy.py in place of spoofy. Usage is shown below:

Usage:
    spoofy -d [DOMAIN] -o [stdout, xls or json] -t [NUMBER_OF_THREADS] [--dkim] [--dns-server IP]
    OR
    spoofy -iL [DOMAIN_LIST] -o [stdout, xls or json] -t [NUMBER_OF_THREADS] [--dkim] [--dns-server IP]

Options:
    -d            : Process a single domain.
    -iL           : Provide a file containing a list of domains to process (blank lines and # comments are skipped).
    -o            : Specify the output format: stdout (default), xls, or json.
    -t            : Set the number of threads to use (default: 4).
    --dkim        : Enable DKIM selector enumeration via API (optional).
    --dns-server  : Query this resolver instead of 1.1.1.1, 8.8.8.8 and 9.9.9.9.

Examples:
    spoofy -d example.com -t 10
    spoofy -d example.com --dkim
    spoofy -iL domains.txt -o xls
    spoofy -iL domains.txt -o json --dkim

HOW DO YOU KNOW ITS SPOOFABLE

(The spoofability table lists every combination of SPF and DMARC configurations that impact deliverability to the inbox, except for DKIM modifiers.) Download Here

CodeResultSPOOFING_POSSIBLE
0Spoofing possibletrue
1Subdomain spoofing possibletrue
2Organizational domain spoofing possibletrue
3Spoofing might be possible (p=quarantine with pct < 100)null
4Spoofing might be possible (mailbox dependent)null
5Organizational domain spoofing might be possible (mailbox dependent)null
6Subdomain spoofing might be possible (mailbox dependent)null
7Subdomain spoofing possible, organizational domain spoofing might be possibletrue
8Spoofing is not possiblefalse
9Unable to determine (a DNS lookup failed)null

The verdict is the tested code for the domain's SPF all mechanism and the DMARC p, sp and aspf tags as the record writes them. spoofy/master_table.py holds the spreadsheet as data (python3 -m spoofy.master_table rewrites it after the spreadsheet changes), and test.py checks that every row is reproduced. Inputs the table does not cover are handled as follows:

  • An enforcing p with aspf but no sp (24 untested combinations): sp defaults to p, so the tested row with sp written out is used.
  • A DMARC record inherited from a parent domain (a subdomain without its own _dmarc record): the subdomain outcome tested for the parent's SPF and DMARC records, with np in place of sp when the subdomain does not exist.
  • pct below 100 with p=quarantine: code 3, since the unsampled mail gets p=none. With p=reject the unsampled mail is still quarantined, so pct does not change the verdict.
  • t=y (RFC 9989 testing mode): the policy drops one level (reject to quarantine, quarantine to none) before the lookup.
  • A failed DNS lookup: code 9 instead of treating the record as missing.

METHODOLOGY

The creation of the spoofability table involved listing every relevant SPF and DMARC configuration, combining them, and then conducting SPF and DMARC information collection using an early version of Spoofy on a large number of US government domains. Testing if an SPF and DMARC combination was spoofable or not was done using the email security pentesting suite at emailspooftest using Microsoft 365. However, the initial testing was conducted using Protonmail and Gmail, but these services were found to utilize reverse lookup checks that affected the results, particularly for subdomain spoof testing. As a result, Microsoft 365 was used for the testing, as it offered greater control over the handling of mail.

After the initial testing using Microsoft 365, some combinations were retested using Protonmail and Gmail due to the differences in their handling of banners in emails. Protonmail and Gmail can place spoofed mail in the inbox with a banner or in spam without a banner, leading to some SPF and DMARC combinations being reported as "Mailbox Dependent" when using Spoofy. In contrast, Microsoft 365 places both conditions in spam. The testing and data collection process took several days to complete, after which a good master table was compiled and used as the basis for the Spoofy spoofability logic.

DISCLAIMER

This tool is only for testing and academic purposes and can only be used where strict consent has been given. Do not use it for illegal purposes! It is the end user’s responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this tool and software.

LICENSE

This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License - see the LICENSE file for details

下载工具