diff --git a/go.mod b/go.mod index ac14ed09..aea51ed9 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/PuerkitoBio/goquery v1.5.0 github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d // indirect - github.com/dmarushkin/go-qrcode/v2 v2.0.0-20230324202517-0750e1cfc814 + github.com/dmarushkin/go-qrcode/v2 v2.0.0-20230616071929-fef537719631 github.com/emersion/go-imap v1.0.4 github.com/emersion/go-message v0.12.0 github.com/go-sql-driver/mysql v1.5.0 diff --git a/go.sum b/go.sum index 1e91ea14..9b61950c 100644 --- a/go.sum +++ b/go.sum @@ -17,6 +17,8 @@ github.com/denisenkom/go-mssqldb v0.0.0-20191124224453-732737034ffd h1:83Wprp6RO github.com/denisenkom/go-mssqldb v0.0.0-20191124224453-732737034ffd/go.mod h1:xbL0rPBG9cCiLr28tMa8zpbdarY27NDyej4t/EjAShU= github.com/dmarushkin/go-qrcode/v2 v2.0.0-20230324202517-0750e1cfc814 h1:hpD+/7ob6MgQScaAIGjNoI0qv3YoW39wv/OCh8/XHto= github.com/dmarushkin/go-qrcode/v2 v2.0.0-20230324202517-0750e1cfc814/go.mod h1:iolhtalMTUbMmz5vOjYJ2pvJwAhOp4456HwDf77tSeY= +github.com/dmarushkin/go-qrcode/v2 v2.0.0-20230616071929-fef537719631 h1:djoC0V0OEE4ngGtifpcw0kA8nZepPcqSCMjV855xVgI= +github.com/dmarushkin/go-qrcode/v2 v2.0.0-20230616071929-fef537719631/go.mod h1:iolhtalMTUbMmz5vOjYJ2pvJwAhOp4456HwDf77tSeY= github.com/emersion/go-imap v1.0.4 h1:uiCAIHM6Z5Jwkma1zdNDWWXxSCqb+/xHBkHflD7XBro= github.com/emersion/go-imap v1.0.4/go.mod h1:yKASt+C3ZiDAiCSssxg9caIckWF/JG7ZQTO7GAmvicU= github.com/emersion/go-message v0.11.1/go.mod h1:C4jnca5HOTo4bGN9YdqNQM9sITuT3Y0K6bSUw9RklvY= diff --git a/models/template_context.go b/models/template_context.go index 12bc8eb3..6ba1d411 100644 --- a/models/template_context.go +++ b/models/template_context.go @@ -61,7 +61,7 @@ func NewPhishingTemplateContext(ctx TemplateContext, r BaseRecipient, rid string phishURL.RawQuery = q.Encode() qrc, _ := qrcode.New(phishURL.String()) - url_qr := qrc.GetUnicodeStr() + url_qr := qrc.GetHtmlStr() trackingURL, _ := url.Parse(templateURL) trackingURL.Path = path.Join(trackingURL.Path, "/track") diff --git a/models/template_context_test.go b/models/template_context_test.go index bef51caf..1adf42a5 100644 --- a/models/template_context_test.go +++ b/models/template_context_test.go @@ -36,7 +36,7 @@ func (s *ModelsSuite) TestNewTemplateContext(c *check.C) { } qrc, _ := qrcode.New(fmt.Sprintf("%s?rid=%s", ctx.URL, r.RId)) - url_qr := qrc.GetUnicodeStr() + url_qr := qrc.GetHtmlStr() expected := PhishingTemplateContext{ URL: fmt.Sprintf("%s?rid=%s", ctx.URL, r.RId),