Skip to content

Commit 78eb2ed

Browse files
committed
slight UI tweak for tag search page
1 parent a88a1f7 commit 78eb2ed

File tree

9 files changed

+37
-12
lines changed

9 files changed

+37
-12
lines changed

MythicReactUI/CHANGELOG.MD

+6
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+
## [0.3.1] - 2025-01-18
8+
9+
### Changed
10+
11+
- Added the ability to adjust a file's hosting from the tag search
12+
713
## [0.3.0] - 2025-01-17
814

915
### Changed

MythicReactUI/src/components/pages/Callbacks/Callbacks.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export function Callbacks({me}) {
201201
newOpenTabList.push(openTabs[targetTabIndex]);
202202
newOpenTabList.push(openTabs[i]);
203203
}
204-
204+
205205
setClickedTabId(openTabs[targetTabIndex].tabID)
206206
} else {
207207
newOpenTabList.push(openTabs[i]);
@@ -236,7 +236,6 @@ export function Callbacks({me}) {
236236
];
237237
const onDragEnd = ({ destination, source }) => {
238238
// dropped outside the list
239-
console.log("called onDragEnd");
240239
if (!destination) return;
241240
const newItems = reorder(openTabs, source.index, destination.index);
242241
setOpenTabs(newItems);

MythicReactUI/src/components/pages/Search/TagTable.js

+21-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ import {deleteTagMutation} from '../../MythicComponents/MythicTag';
1717
import {useMutation} from '@apollo/client';
1818
import {snackActions} from "../../utilities/Snackbar";
1919
import {b64DecodeUnicode} from '../Callbacks/ResponseDisplay';
20+
import {MythicStyledTooltip} from "../../MythicComponents/MythicStyledTooltip";
21+
import {HostFileDialog} from "../Payloads/HostFileDialog";
22+
import PublicIcon from '@mui/icons-material/Public';
2023

2124
export function TagTable(props){
2225
const [tags, setTags] = React.useState([]);
@@ -93,7 +96,7 @@ function TagTableRow(props){
9396
}
9497
function TagTableRowElement(props){
9598
const [viewPermissionsDialogOpen, setViewPermissionsDialogOpen] = React.useState(false);
96-
99+
const [openHostDialog, setOpenHostDialog] = React.useState(false);
97100
const getElement = () => {
98101
if(props.task) {
99102
return (
@@ -248,7 +251,24 @@ function TagTableRowElement(props){
248251
{b64DecodeUnicode(props.filemetum.full_remote_path_text)}
249252
</TableCell>
250253
</TableRow>
254+
<TableRow hover>
255+
<TableCell>File Hosting</TableCell>
256+
<TableCell>
257+
<MythicStyledTooltip title={"Host Payload Through C2"} >
258+
<PublicIcon color={"info"} style={{marginLeft: "20px", cursor: "pointer"}} onClick={()=>{setOpenHostDialog(true);}} />
259+
</MythicStyledTooltip>
260+
</TableCell>
261+
</TableRow>
251262
</TableBody>
263+
264+
{openHostDialog &&
265+
<MythicDialog fullWidth={true} maxWidth="md" open={openHostDialog}
266+
onClose={()=>{setOpenHostDialog(false);}}
267+
innerDialog={<HostFileDialog file_uuid={props.filemetum.agent_file_id}
268+
file_name={props.filemetum.full_remote_path_text === "" ? b64DecodeUnicode(props.filemetum.filename_text) : b64DecodeUnicode(props.filemetum.full_remote_path_text)}
269+
onClose={()=>{setOpenHostDialog(false);}} />}
270+
/>
271+
}
252272
</Table>
253273
</TableContainer>
254274
)

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
import {getSkewedNow} from "./components/utilities/Time";
1717

18-
export const mythicUIVersion = "0.3.0";
18+
export const mythicUIVersion = "0.3.1";
1919

2020
let fetchingNewToken = false;
2121

Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"files": {
33
"main.css": "/new/static/css/main.602591e6.css",
4-
"main.js": "/new/static/js/main.bf84c951.js",
4+
"main.js": "/new/static/js/main.54a70f66.js",
55
"static/media/mythic-red.png": "/new/static/media/mythic-red.203468a4e5240d239aa0.png",
66
"static/media/graphql.png": "/new/static/media/graphql.8f15978b39b0870a9f0e.png",
77
"static/media/Mythic_Logo.svg": "/new/static/media/Mythic_Logo.6842c911bebe36d6f83fc7ced4a2cd99.svg",
88
"static/media/mythic_red_small.svg": "/new/static/media/mythic_red_small.793b41cc7135cdede246661ec232976b.svg",
99
"index.html": "/new/index.html",
1010
"main.602591e6.css.map": "/new/static/css/main.602591e6.css.map",
11-
"main.bf84c951.js.map": "/new/static/js/main.bf84c951.js.map"
11+
"main.54a70f66.js.map": "/new/static/js/main.54a70f66.js.map"
1212
},
1313
"entrypoints": [
1414
"static/css/main.602591e6.css",
15-
"static/js/main.bf84c951.js"
15+
"static/js/main.54a70f66.js"
1616
]
1717
}
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.bf84c951.js"></script><link href="/new/static/css/main.602591e6.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.54a70f66.js"></script><link href="/new/static/css/main.602591e6.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.bf84c951.js mythic-react-docker/mythic/public/static/js/main.54a70f66.js

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

mythic-react-docker/mythic/public/static/js/main.bf84c951.js.map mythic-react-docker/mythic/public/static/js/main.54a70f66.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)