You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`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?"
16
15
17
16
Well, Spoofy is different and here is why:
17
+
18
18
> 1. Authoritative lookups on all lookups with known fallback (Cloudflare DNS)
19
19
> 2. Accurate bulk lookups
20
-
> 3. Custom, manually tested spoof logic (No guessing or speculating, real world test results)
21
-
> 4. SPF lookup counter
20
+
> 3. Custom, manually tested spoof logic (No guessing or speculating, real world test results)
`Spoofy` requires **Python 3+**. Python 2 is not supported. Usage is shown below:
28
30
29
31
```console
30
32
Usage:
31
-
./spoofy.py -d [DOMAIN] -o [stdout or xls]
33
+
./spoofy.py -d [DOMAIN] -o [stdout or xls] -t [NUMBER_OF_THREADS]
32
34
OR
33
-
./spoofy.py -iL [DOMAIN_LIST] -o [stdout or xls]
34
-
35
+
./spoofy.py -iL [DOMAIN_LIST] -o [stdout or xls] -t [NUMBER_OF_THREADS]
36
+
37
+
Options:
38
+
-d : Process a single domain.
39
+
-iL : Provide a file containing a list of domains to process.
40
+
-o : Specify the output format: stdout (default) or xls.
41
+
-t : Set the number of threads to use (default: 4).
42
+
43
+
Examples:
44
+
./spoofy.py -d example.com -t 10
45
+
./spoofy.py -iL domains.txt -o xls
46
+
35
47
Install Dependencies:
36
48
pip3 install -r requirements.txt
37
49
```
38
50
39
51
## HOW DO YOU KNOW ITS SPOOFABLE
52
+
40
53
(The spoofability table lists every combination of SPF and DMARC configurations that impact deliverability to the inbox, except for DKIM modifiers.)
41
54
[Download Here](/files/Master_Table.xlsx)
42
55
43
-
## METHODOLOGY
56
+
## METHODOLOGY
57
+
44
58
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](https://emailspooftest.com/) 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.
45
59
46
60
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.
@@ -63,7 +77,6 @@ Logo: cobracode
63
77
64
78
Tool was inspired by [Bishop Fox's](https://github.com/BishopFox/) project called [spoofcheck](https://github.com/BishopFox/spoofcheck/).
65
79
66
-
67
80
## LICENSE
68
81
69
82
This project is licensed under the Creative Commons Zero v1.0 Universal - see the [LICENSE](LICENSE) file for details
0 commit comments