Skip to content

Commit 3748d68

Browse files
committed
fix for c2 logo tracking
1 parent e8efb8a commit 3748d68

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

CHANGELOG.MD

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [3.4.10] - 2025-10-31
8+
9+
### Changed
10+
11+
- Fixed an issue with c2 profile logos not getting reset if removed
12+
713
## [3.4.9] - 2025-10-30
814

915
### Changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.4.9
1+
3.4.10

mythic-docker/src/rabbitmq/recv_c2_sync.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,10 @@ func c2Sync(in C2SyncMessage) error {
139139
c2Profile.Description = in.Profile.Description
140140
c2Profile.Deleted = false
141141
c2Profile.SemVer = in.Profile.SemVer
142-
if in.Profile.AgentIcon != nil || in.Profile.DarkModeAgentIcon != nil {
142+
if (in.Profile.AgentIcon != nil && len(*in.Profile.AgentIcon) > 0) || (in.Profile.DarkModeAgentIcon != nil && len(*in.Profile.DarkModeAgentIcon) > 0) {
143143
c2Profile.HasLogo = true
144+
} else {
145+
c2Profile.HasLogo = false
144146
}
145147
if statement, err := database.DB.PrepareNamed(`INSERT INTO c2profile
146148
("name",author,container_running,is_p2p,is_server_routed,description, running, deleted, has_logo, semver)
@@ -168,7 +170,7 @@ func c2Sync(in C2SyncMessage) error {
168170
c2Profile.Description = in.Profile.Description
169171
c2Profile.Deleted = false
170172
c2Profile.SemVer = in.Profile.SemVer
171-
if in.Profile.AgentIcon != nil || in.Profile.DarkModeAgentIcon != nil {
173+
if (in.Profile.AgentIcon != nil && len(*in.Profile.AgentIcon) > 0) || (in.Profile.DarkModeAgentIcon != nil && len(*in.Profile.DarkModeAgentIcon) > 0) {
172174
c2Profile.HasLogo = true
173175
} else {
174176
c2Profile.HasLogo = false

mythic-docker/src/utils/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/spf13/viper"
1212
)
1313

14-
const mythicServerVersion = "3.4.9"
14+
const mythicServerVersion = "3.4.10"
1515

1616
type Config struct {
1717
// server configuration

0 commit comments

Comments
 (0)