Skip to content

Commit

Permalink
fixing a bad link on the dashboard page for users/hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
its-a-feature committed Jan 29, 2024
1 parent 1c90380 commit 43ccf85
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 17 deletions.
8 changes: 7 additions & 1 deletion MythicReactUI/CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ 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).

## 0.1.60] - 2024-01-29
## [0.1.61] - 2024-01-29

### Changed

- Fixed a bug with clicking users/hosts on the main home dashboard page going to a blank search page

## [0.1.60] - 2024-01-29

### Changed

Expand Down
4 changes: 2 additions & 2 deletions MythicReactUI/src/components/pages/Home/CallbacksCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,15 +185,15 @@ export function CallbacksCard() {
if(search[0] === "*"){
search = search.substring(1);
}
navigate("/new/search?searchField=User&search=" + search);
navigate("/new/search?tab=callbacks&searchField=User&search=" + search);
}

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

}
Expand Down
2 changes: 1 addition & 1 deletion MythicReactUI/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import jwt_decode from 'jwt-decode';
import {meState} from './cache';

export const mythicVersion = "3.2.16";
export const mythicUIVersion = "0.1.60";
export const mythicUIVersion = "0.1.61";

let fetchingNewToken = false;

Expand Down
7 changes: 2 additions & 5 deletions Mythic_CLI/src/cmd/internal/serviceExecution.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,9 @@ func DockerHealth(containers []string) {

func DockerBuildReactUI() error {
if config.GetMythicEnv().GetBool("MYTHIC_REACT_DEBUG") {
err := manager.GetManager().BuildUI()
if err != nil {
log.Fatalf("[-] Failed to build new UI from debug build")
}
return manager.GetManager().BuildUI()
}
log.Printf("[-] Not using MYTHIC_REACT_DEBUG to generate new UI, aborting...\n")
log.Fatalf("[-] Not using MYTHIC_REACT_DEBUG to generate new UI, aborting...\n")
return nil
}

Expand Down
1 change: 1 addition & 0 deletions Mythic_CLI/src/cmd/internal/serviceMetadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@ func Add3rdPartyService(service string, additionalConfigs map[string]interface{}
volumeName + ":/Mythic/",
}
// blow away the old volume just in case to make sure we don't carry over old data
log.Printf("[*] Removing old volume if it exists")
manager.GetManager().RemoveVolume(volumeName)
// add our new volume to the list of volumes if needed
volumes, _ := manager.GetManager().GetVolumes()
Expand Down
6 changes: 3 additions & 3 deletions mythic-react-docker/mythic/public/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"files": {
"main.css": "/new/static/css/main.00d51b79.css",
"main.js": "/new/static/js/main.3c53c679.js",
"main.js": "/new/static/js/main.2da5cab2.js",
"static/media/mythic@2x.png": "/new/static/media/mythic@2x.7c5b62b471ac779fd706.png",
"static/media/mythic_red_small.svg": "/new/static/media/mythic_red_small.793b41cc7135cdede246661ec232976b.svg",
"index.html": "/new/index.html",
"main.00d51b79.css.map": "/new/static/css/main.00d51b79.css.map",
"main.3c53c679.js.map": "/new/static/js/main.3c53c679.js.map"
"main.2da5cab2.js.map": "/new/static/js/main.2da5cab2.js.map"
},
"entrypoints": [
"static/css/main.00d51b79.css",
"static/js/main.3c53c679.js"
"static/js/main.2da5cab2.js"
]
}
2 changes: 1 addition & 1 deletion mythic-react-docker/mythic/public/index.html
Original file line number Diff line number Diff line change
@@ -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>
<!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>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 43ccf85

Please sign in to comment.