Skip to content

Commit cd582ea

Browse files
committed
slightly changing colors and removing !here tags
1 parent 93cdf40 commit cd582ea

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

C2_Profiles/basic_webhook/my_webhooks/initialize.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
package my_webhooks
22

33
import (
4+
"fmt"
45
"github.com/MythicMeta/MythicContainer/webhookstructs"
56
)
67

8+
const version = "0.0.2"
9+
710
func Initialize() {
811
myWebhooks := webhookstructs.WebhookDefinition{
912
Name: "MyBasicWebhooks",
10-
Description: "Basic webhook functionality for feedback, callbacks, alerts, and startup notifications",
13+
Description: fmt.Sprintf("Basic webhook functionality for feedback, callbacks, alerts, and startup notifications.\nVersion: %s", version),
1114
NewFeedbackFunction: newfeedbackWebhook,
1215
NewCallbackFunction: newCallbackWebhook,
1316
NewStartupFunction: newStartupMessage,

C2_Profiles/basic_webhook/my_webhooks/new_custom.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func newCustomMessage(input webhookstructs.NewCustomWebhookMessage) {
2121
}
2222

2323
newMessage.Attachments[0].Title = fmt.Sprintf("%s Message!", input.OperatorUsername)
24-
newMessage.Attachments[0].Color = "#ff0000"
24+
newMessage.Attachments[0].Color = "#84b4dc"
2525
// construct the fields list
2626
blockPieces := []webhookstructs.SlackWebhookMessageAttachmentBlockText{}
2727
for key, val := range input.Data {

C2_Profiles/basic_webhook/my_webhooks/new_feedback.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func newfeedbackWebhook(input webhookstructs.NewFeedbackWebookMessage) {
2424
newMessage.Attachments[0].Title = "Bug Report!"
2525
newMessage.Attachments[0].Color = "#ff0000"
2626
if newMessage.Attachments[0].Blocks != nil {
27-
(*newMessage.Attachments[0].Blocks)[0].Text.Text = fmt.Sprintf("<!here> *%s* submitted a bug report! :bug:", input.OperatorUsername)
27+
(*newMessage.Attachments[0].Blocks)[0].Text.Text = fmt.Sprintf("*%s* submitted a bug report! :bug:", input.OperatorUsername)
2828
}
2929

3030
case "feature_request":
@@ -43,7 +43,7 @@ func newfeedbackWebhook(input webhookstructs.NewFeedbackWebookMessage) {
4343
newMessage.Attachments[0].Title = "We got caught! :bomb:"
4444
newMessage.Attachments[0].Color = "#ff0000"
4545
if newMessage.Attachments[0].Blocks != nil {
46-
(*newMessage.Attachments[0].Blocks)[0].Text.Text = fmt.Sprintf("<!here> *%s* noticed we were detected! :bomb:", input.OperatorUsername)
46+
(*newMessage.Attachments[0].Blocks)[0].Text.Text = fmt.Sprintf("*%s* noticed we were detected! :bomb:", input.OperatorUsername)
4747
}
4848
default:
4949
newMessage.Attachments[0].Title = "Unknown Type"

C2_Profiles/basic_webhook/my_webhooks/new_startup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func newStartupMessage(input webhookstructs.NewStartupWebhookMessage) {
2121
}
2222

2323
newMessage.Attachments[0].Title = "Mythic Webhook Started!"
24-
newMessage.Attachments[0].Color = "#ff0000"
24+
newMessage.Attachments[0].Color = "#85b089"
2525
if newMessage.Attachments[0].Blocks != nil {
2626
(*newMessage.Attachments[0].Blocks)[0].Text.Text = fmt.Sprintf("Mythic Started!") // add <!here> to do an @here in the channel
2727
}

0 commit comments

Comments
 (0)