Skip to content

Commit 43ccf85

Browse files
committed
fixing a bad link on the dashboard page for users/hosts
1 parent 1c90380 commit 43ccf85

File tree

10 files changed

+21
-17
lines changed

10 files changed

+21
-17
lines changed

MythicReactUI/CHANGELOG.MD

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ 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-
## 0.1.60] - 2024-01-29
7+
## [0.1.61] - 2024-01-29
8+
9+
### Changed
10+
11+
- Fixed a bug with clicking users/hosts on the main home dashboard page going to a blank search page
12+
13+
## [0.1.60] - 2024-01-29
814

915
### Changed
1016

MythicReactUI/src/components/pages/Home/CallbacksCard.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,15 @@ export function CallbacksCard() {
185185
if(search[0] === "*"){
186186
search = search.substring(1);
187187
}
188-
navigate("/new/search?searchField=User&search=" + search);
188+
navigate("/new/search?tab=callbacks&searchField=User&search=" + search);
189189
}
190190

191191
}
192192
const handleHostContextClick = (host) => {
193193
let search = host.split(" ");
194194
search = search[search.length - 1];
195195
if(search.length > 0){
196-
navigate("/new/search?searchField=Host&search=" + search);
196+
navigate("/new/search?tab=callbacks&searchField=Host&search=" + search);
197197
}
198198

199199
}

MythicReactUI/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import jwt_decode from 'jwt-decode';
1515
import {meState} from './cache';
1616

1717
export const mythicVersion = "3.2.16";
18-
export const mythicUIVersion = "0.1.60";
18+
export const mythicUIVersion = "0.1.61";
1919

2020
let fetchingNewToken = false;
2121

Mythic_CLI/src/cmd/internal/serviceExecution.go

+2-5
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,9 @@ func DockerHealth(containers []string) {
131131

132132
func DockerBuildReactUI() error {
133133
if config.GetMythicEnv().GetBool("MYTHIC_REACT_DEBUG") {
134-
err := manager.GetManager().BuildUI()
135-
if err != nil {
136-
log.Fatalf("[-] Failed to build new UI from debug build")
137-
}
134+
return manager.GetManager().BuildUI()
138135
}
139-
log.Printf("[-] Not using MYTHIC_REACT_DEBUG to generate new UI, aborting...\n")
136+
log.Fatalf("[-] Not using MYTHIC_REACT_DEBUG to generate new UI, aborting...\n")
140137
return nil
141138
}
142139

Mythic_CLI/src/cmd/internal/serviceMetadata.go

+1
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,7 @@ func Add3rdPartyService(service string, additionalConfigs map[string]interface{}
581581
volumeName + ":/Mythic/",
582582
}
583583
// blow away the old volume just in case to make sure we don't carry over old data
584+
log.Printf("[*] Removing old volume if it exists")
584585
manager.GetManager().RemoveVolume(volumeName)
585586
// add our new volume to the list of volumes if needed
586587
volumes, _ := manager.GetManager().GetVolumes()
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"files": {
33
"main.css": "/new/static/css/main.00d51b79.css",
4-
"main.js": "/new/static/js/main.3c53c679.js",
4+
"main.js": "/new/static/js/main.2da5cab2.js",
55
"static/media/[email protected]": "/new/static/media/[email protected]",
66
"static/media/mythic_red_small.svg": "/new/static/media/mythic_red_small.793b41cc7135cdede246661ec232976b.svg",
77
"index.html": "/new/index.html",
88
"main.00d51b79.css.map": "/new/static/css/main.00d51b79.css.map",
9-
"main.3c53c679.js.map": "/new/static/js/main.3c53c679.js.map"
9+
"main.2da5cab2.js.map": "/new/static/js/main.2da5cab2.js.map"
1010
},
1111
"entrypoints": [
1212
"static/css/main.00d51b79.css",
13-
"static/js/main.3c53c679.js"
13+
"static/js/main.2da5cab2.js"
1414
]
1515
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/new/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><link rel="apple-touch-icon" href="/new/logo192.png"/><link rel="manifest" href="/new/manifest.json"/><title>Mythic</title><script defer="defer" src="/new/static/js/main.3c53c679.js"></script><link href="/new/static/css/main.00d51b79.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
1+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/new/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><link rel="apple-touch-icon" href="/new/logo192.png"/><link rel="manifest" href="/new/manifest.json"/><title>Mythic</title><script defer="defer" src="/new/static/js/main.2da5cab2.js"></script><link href="/new/static/css/main.00d51b79.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

mythic-react-docker/mythic/public/static/js/main.3c53c679.js mythic-react-docker/mythic/public/static/js/main.2da5cab2.js

+3-3
Large diffs are not rendered by default.

mythic-react-docker/mythic/public/static/js/main.3c53c679.js.map mythic-react-docker/mythic/public/static/js/main.2da5cab2.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)