Skip to content

Conversation

@fruitl00p
Copy link
Contributor

It's now a CLI-able code: SPFlatten.py yourdomain.com
also fixed the missing allMechanism
also fixed the redirect / recursion issue (i.e. facebook.com)
lookup output is now debug output

Salt-n-Pepa

It's now a CLI-able code: `SPFlatten.py yourdomain.com`
also fixed the missing allMechanism
also fixed the redirect / recursion issue (i.e. facebook.com)
lookup output is now debug output
@drzraf
Copy link

drzraf commented Mar 22, 2021

LGTM.
@0x9090 : merge?

By the way, argparse would be good too.
Another good thing would be to parse command-line provided SPF records instead of the domain... because oneoften needs flattening before updating (possibly overflowing) SPF RR.

drzraf pushed a commit to drzraf/SPFlatten that referenced this pull request Mar 22, 2021
- use argparse & logging
- ability to handle an inlined SPF record (root domain name is optional)
- Get rid of all the globals that made variable/state tracking impossible and handle recursion in a clean way
- Rewritten on top of 0x9090#3
@drzraf drzraf mentioned this pull request Mar 22, 2021
@0x9090 0x9090 merged commit 8502950 into 0x9090:master Mar 22, 2021
@fruitl00p fruitl00p deleted the CLI_able branch March 23, 2021 07:55
@fruitl00p
Copy link
Contributor Author

@drzraf thanks for the merge. I'm not a Python afficianado per se and your suggestions seem right ;) I'll follow #4 ;)
Thanks for the merge!

drzraf pushed a commit to drzraf/SPFlatten that referenced this pull request Mar 26, 2021
- use argparse & logging
- ability to handle an inlined SPF record (root domain name is optional)
- Get rid of all the globals that made variable/state tracking impossible and handle recursion in a clean way
- Rewritten on top of 0x9090#3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants