Skip to content

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

Open
olivierlemoal wants to merge 1 commit intogophish:masterfrom
olivierlemoal:master
Open

Use go-smtp for UTF8 support and LOGIN authentication implementation#3
olivierlemoal wants to merge 1 commit intogophish:masterfrom
olivierlemoal:master

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