mirror of https://github.com/gophish/gophish
added support for document tracker
parent
34b8773cdb
commit
63c753de39
|
@ -171,6 +171,7 @@ func processCampaign(c *models.Campaign) {
|
||||||
// Attach the files
|
// Attach the files
|
||||||
for _, a := range c.Template.Attachments {
|
for _, a := range c.Template.Attachments {
|
||||||
e.Attach(func(a models.Attachment) (string, gomail.FileSetting) {
|
e.Attach(func(a models.Attachment) (string, gomail.FileSetting) {
|
||||||
|
//
|
||||||
Attach, _ := base64.StdEncoding.DecodeString(a.Content)
|
Attach, _ := base64.StdEncoding.DecodeString(a.Content)
|
||||||
Attach2 := bytes.Replace(Attach, []byte("{{.RId}}"), []byte(t.RId), -1)
|
Attach2 := bytes.Replace(Attach, []byte("{{.RId}}"), []byte(t.RId), -1)
|
||||||
a.Content = base64.StdEncoding.EncodeToString([]byte(Attach2))
|
a.Content = base64.StdEncoding.EncodeToString([]byte(Attach2))
|
||||||
|
|
Loading…
Reference in New Issue