Skip to content

Commit

Permalink
Corrected syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
domwhewell-sage committed May 7, 2024
1 parent ada9b0b commit 701f1fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (w SubmittedDetails) SendEmail() error {
func (w SubmittedDetails) SendGraphql() error {
var output string
if !viper.GetBool("ghostwriter.disable_credentials") {
output := "Email: " + w.Email + "\nUsername: " + w.Username + "\nPassword: " + w.Password
output = "Email: " + w.Email + "\nUsername: " + w.Username + "\nPassword: " + w.Password
}
oplog_entry := ghostwriter_oplog_entry{SourceIp: w.Address, UserContext: w.UserAgent, Description: "User ID: " + string(w.ID) + "\nCampaign ID: " + string(w.CampaignID), Output: output, Comments: SubmittedData}
return sendGraphql(oplog_entry)
Expand Down Expand Up @@ -188,7 +188,7 @@ func (w ClickDetails) SendEmail() error {
func (w ClickDetails) SendGraphql() error {
var output string
if !viper.GetBool("ghostwriter.disable_credentials") {
output := "Email: " + w.Email
output = "Email: " + w.Email
}
oplog_entry := ghostwriter_oplog_entry{SourceIp: w.Address, UserContext: w.UserAgent, Description: "User ID: " + string(w.ID) + "\nCampaign ID: " + string(w.CampaignID), Output: output, Comments: ClickedLink}
return sendGraphql(oplog_entry)
Expand Down Expand Up @@ -254,7 +254,7 @@ func (w OpenedDetails) SendEmail() error {
func (w OpenedDetails) SendGraphql() error {
var output string
if !viper.GetBool("ghostwriter.disable_credentials") {
output := "Email: " + w.Email
output = "Email: " + w.Email
}
oplog_entry := ghostwriter_oplog_entry{SourceIp: w.Address, UserContext: w.UserAgent, Description: "User ID: " + string(w.ID) + "\nCampaign ID: " + string(w.CampaignID), Output: output, Comments: EmailOpened}
return sendGraphql(oplog_entry)
Expand Down

0 comments on commit 701f1fe

Please sign in to comment.