Skip to content

Commit

Permalink
Fixing bug with last checkin times when restarting
Browse files Browse the repository at this point in the history
  • Loading branch information
its-a-feature committed Aug 30, 2024
1 parent fef7336 commit 6daf1cf
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.3.1-rc2] - 2024-08-30

### Changed

- Fixed a bug where all callbacks would have their last checkin reset when restarting Mythic

## [3.3.1-rc1] - 2024-08-28

### Changed
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.1-rc1
3.3.1-rc2
2 changes: 1 addition & 1 deletion mythic-docker/src/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.1-rc1
3.3.1-rc2
6 changes: 5 additions & 1 deletion mythic-docker/src/rabbitmq/util_callback_graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,16 @@ func (g *cbGraph) Add(source databaseStructs.Callback, destination databaseStruc
} else {
for _, dest := range g.adjMatrix[source.ID] {
if dest.DestinationId == destination.ID && dest.C2ProfileName == c2profileName {
g.lock.Unlock()
//logging.LogDebug("Found existing p2p connection, not adding new one to memory")
if dest.DestinationId == source.ID {
return
}
updateTime := time.Now().UTC()
if isCallbackStreaming(source.ID) {
updateTime = time.UnixMicro(0)
}
g.lock.Unlock()

callbackIDs := g.getAllChildIDs(source.ID)
go updateTimes(updateTime, callbackIDs)
return
Expand Down

0 comments on commit 6daf1cf

Please sign in to comment.