Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use go-smtp for UTF8 support and LOGIN authentication implementation #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

olivierlemoal
Copy link

@olivierlemoal olivierlemoal commented Feb 4, 2021

This PR suggests using https://github.com/emersion/go-smtp and https://github.com/emersion/go-sasl/ libs for SMTP. It will benefits from :

  • Native support for LOGIN mechanism (no more custom implementation in auth.go)
  • Support for SMTPUTF8

SMTPUTF8 is great to add support for homoglyph attack in Gophish (see gophish/gophish#2110). However, this need both the sender SMTP server and the recipient mail server to support SMTPUTF8 (successfully tested with Office 365 and Gmail) :

result

One caveat though, CRAM-MD5 support is not enabled in go-smtp (but this could be externally implemented). See emersion/go-sasl#15

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.

1 participant