From 6f81e24fd564e1dfa74124b3964ff5b275596734 Mon Sep 17 00:00:00 2001 From: its-a-feature Date: Sun, 30 Jan 2022 21:39:21 -0800 Subject: [PATCH] made plaintext output from tasks editable, but not saved --- mythic-react-docker/mythic/public/asset-manifest.json | 6 +++--- mythic-react-docker/mythic/public/index.html | 2 +- .../mythic/public/static/js/main.14a4d6e6.chunk.js | 2 ++ .../mythic/public/static/js/main.14a4d6e6.chunk.js.map | 1 + .../mythic/public/static/js/main.e252ba08.chunk.js | 2 -- .../mythic/public/static/js/main.e252ba08.chunk.js.map | 1 - 6 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 mythic-react-docker/mythic/public/static/js/main.14a4d6e6.chunk.js create mode 100644 mythic-react-docker/mythic/public/static/js/main.14a4d6e6.chunk.js.map delete mode 100644 mythic-react-docker/mythic/public/static/js/main.e252ba08.chunk.js delete mode 100644 mythic-react-docker/mythic/public/static/js/main.e252ba08.chunk.js.map diff --git a/mythic-react-docker/mythic/public/asset-manifest.json b/mythic-react-docker/mythic/public/asset-manifest.json index 245b1d3a5..a904dd0b2 100644 --- a/mythic-react-docker/mythic/public/asset-manifest.json +++ b/mythic-react-docker/mythic/public/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { - "main.js": "/new/static/js/main.e252ba08.chunk.js", - "main.js.map": "/new/static/js/main.e252ba08.chunk.js.map", + "main.js": "/new/static/js/main.14a4d6e6.chunk.js", + "main.js.map": "/new/static/js/main.14a4d6e6.chunk.js.map", "runtime-main.js": "/new/static/js/runtime-main.7a88a52c.js", "runtime-main.js.map": "/new/static/js/runtime-main.7a88a52c.js.map", "static/css/2.b0c8ef5b.chunk.css": "/new/static/css/2.b0c8ef5b.chunk.css", @@ -17,6 +17,6 @@ "static/js/runtime-main.7a88a52c.js", "static/css/2.b0c8ef5b.chunk.css", "static/js/2.e9dbcd84.chunk.js", - "static/js/main.e252ba08.chunk.js" + "static/js/main.14a4d6e6.chunk.js" ] } \ No newline at end of file diff --git a/mythic-react-docker/mythic/public/index.html b/mythic-react-docker/mythic/public/index.html index d6e519298..51083a289 100644 --- a/mythic-react-docker/mythic/public/index.html +++ b/mythic-react-docker/mythic/public/index.html @@ -1 +1 @@ -Mythic
\ No newline at end of file +Mythic
\ No newline at end of file diff --git a/mythic-react-docker/mythic/public/static/js/main.14a4d6e6.chunk.js b/mythic-react-docker/mythic/public/static/js/main.14a4d6e6.chunk.js new file mode 100644 index 000000000..61e08251a --- /dev/null +++ b/mythic-react-docker/mythic/public/static/js/main.14a4d6e6.chunk.js @@ -0,0 +1,2 @@ +(this.webpackJsonpmythic=this.webpackJsonpmythic||[]).push([[0],{108:function(e,t,a){"use strict";a.d(t,"a",(function(){return pe})),a.d(t,"d",(function(){return me})),a.d(t,"c",(function(){return he})),a.d(t,"b",(function(){return xe}));var n,i=a(6),r=a(7),c=a(3),o=a(2),s=a(48),l=a(1),d=a.n(l),u=a(57),b=a(193),j=a(545),p=a(249),m=a(210),h=a(4),f=a(13),O=a(215),x=a(58),g=a(221),y=a(290),v=a.n(y),_=a(827),k=a(292),w=a.n(k),C=a(54),S=a(96),D=a(95),I=a(110),T=a(17),$=a(899),P=a(368),A=a(924),E=a(363),L=a(365),F=a(366),N=a(364),q=a(542),R=a(142),B=a(856),M=a(191),z=a(16),W=a(316),H=a(0),U={PaperProps:{style:{maxHeight:224,width:250}},variant:"menu",getContentAnchorEl:function(){return null}},G=Object(R.a)((function(e){return{formControl:{margin:e.spacing(1),width:"100%"},chips:{display:"flex",flexWrap:"wrap"},chip:{margin:2},noLabel:{marginTop:e.spacing(2)}}})),K=Object(u.a)(n||(n=Object(r.a)(["\nquery operatorQuery($operation_id: Int!) {\n operation_by_pk(id: $operation_id) {\n id\n operators {\n username\n id\n }\n }\n}"])));function V(e){var t=Object(W.a)(z.b),a=d.a.useState([]),n=Object(o.a)(a,2),i=n[0],r=n[1],c=d.a.useState([]),s=Object(o.a)(c,2),u=s[0],b=s[1],j=d.a.useState(!1),p=Object(o.a)(j,2),m=p[0],h=p[1],f=d.a.useState([]),O=Object(o.a)(f,2),x=O[0],g=O[1],y=d.a.useState([]),v=Object(o.a)(y,2),_=v[0],k=v[1],w=d.a.useState(""),R=Object(o.a)(w,2),V=R[0],Q=R[1],J=d.a.useState([]),Y=Object(o.a)(J,2),Z=Y[0],X=Y[1],ee=G();Object(M.a)(K,{variables:{operation_id:t.user.current_operation_id},onCompleted:function(e){b(e.operation_by_pk.operators.map((function(e){return e.username})))}}),Object(l.useEffect)((function(){if(void 0!==e.filterOptions.operatorsList&&r(e.filterOptions.operatorsList),void 0!==e.filterOptions.commentsFlag&&h(e.filterOptions.commentsFlag),void 0!==e.filterOptions.commandsList&&g(e.filterOptions.commandsList),void 0!==e.filterOptions.parameterString&&Q(e.filterOptions.parameterString),void 0!==e.filterOptions.everythingButList&&k(e.filterOptions.everythingButList),e.filterCommandOptions){var t=e.filterCommandOptions.map((function(e){return e.cmd}));X(t)}}),[e.filterOptions]);return Object(H.jsxs)(d.a.Fragment,{children:[Object(H.jsx)(I.a,{id:"form-dialog-title",children:"Filter Which Tasks Are Visible"}),Object(H.jsx)(D.a,{dividers:!0,style:{overflow:"hidden"},children:Object(H.jsxs)(d.a.Fragment,{children:[Object(H.jsxs)(N.a,{className:ee.formControl,children:[Object(H.jsx)(L.a,{id:"operator-chip-label",children:"Only Show Tasks by the Following Operators"}),Object(H.jsx)(P.a,{labelId:"operator-chip-label",multiple:!0,id:"operator-chip",value:i,onChange:function(e){r(e.target.value)},input:Object(H.jsx)(E.a,{}),renderValue:function(e){return Object(H.jsx)("div",{className:ee.chips,children:e.map((function(e){return Object(H.jsx)(A.a,{label:e,className:ee.chip},e)}))})},MenuProps:U,children:u.map((function(e){return Object(H.jsxs)(F.a,{value:e,children:[Object(H.jsx)(B.a,{color:"primary",checked:i.indexOf(e)>-1}),Object(H.jsx)(q.a,{primary:e})]},e)}))})]}),"Only Show Tasks with Comments: ",Object(H.jsx)($.a,{checked:m,onChange:function(e){h(e.target.checked)},color:"primary",name:"Only Comments",inputProps:{"aria-label":"primary checkbox"}}),Object(H.jsxs)(N.a,{className:ee.formControl,children:[Object(H.jsx)(L.a,{id:"include-chip-label",children:"Only Show These Commands"}),Object(H.jsx)(P.a,{labelId:"include-chip-label",multiple:!0,id:"include-chip",value:x,onChange:function(e){g(e.target.value),e.target.value.length>0&&k([])},input:Object(H.jsx)(E.a,{}),renderValue:function(e){return Object(H.jsx)("div",{className:ee.chips,children:e.map((function(e){return Object(H.jsx)(A.a,{label:e,className:ee.chip},e)}))})},MenuProps:U,children:Z.map((function(e){return Object(H.jsxs)(F.a,{value:e,children:[Object(H.jsx)(B.a,{color:"primary",checked:x.indexOf(e)>-1}),Object(H.jsx)(q.a,{primary:e})]},e)}))})]}),Object(H.jsxs)(N.a,{className:ee.formControl,children:[Object(H.jsx)(L.a,{id:"exclude-chip-label",children:"Do Not Show These Commands"}),Object(H.jsx)(P.a,{labelId:"exclude-chip-label",multiple:!0,id:"exclude-chip",value:_,onChange:function(e){k(e.target.value),e.target.value.length>0&&g([])},input:Object(H.jsx)(E.a,{}),renderValue:function(e){return Object(H.jsx)("div",{className:ee.chips,children:e.map((function(e){return Object(H.jsx)(A.a,{label:e,className:ee.chip},e)}))})},MenuProps:U,children:Z.map((function(e){return Object(H.jsxs)(F.a,{value:e,children:[Object(H.jsx)(B.a,{color:"primary",checked:_.indexOf(e)>-1}),Object(H.jsx)(q.a,{primary:e})]},e)}))})]}),Object(H.jsx)(T.a,{value:V,onChange:function(e,t,a){Q(t)},name:"Only Show Tasks with the Following Parameter Regex"})]})}),Object(H.jsxs)(S.a,{children:[Object(H.jsx)(C.a,{onClick:e.onClose,variant:"contained",children:"Close"}),Object(H.jsx)(C.a,{onClick:function(){e.onSubmit({operatorsList:i,commentsFlag:m,commandsList:x,everythingButList:_,parameterString:V}),e.onClose()},color:"primary",variant:"contained",children:"Submit"})]})]})}function Q(e){var t=d.a.useState([]),a=Object(o.a)(t,2),n=a[0],r=a[1],c=d.a.useState(""),s=Object(o.a)(c,2),u=s[0],b=s[1],j=Object(l.useRef)(null);Object(l.useEffect)((function(){var t=Object(i.a)(e.options);r(t),t.length,b("Default Token"),e.changeSelectedToken("Default Token")}),[e.options]);return Object(H.jsxs)(N.a,{style:{width:"20%"},children:[Object(H.jsx)(L.a,{ref:j,children:"Tokens"}),Object(H.jsxs)(P.a,{labelId:"demo-dialog-select-label",id:"demo-dialog-select",value:u,onChange:function(t){b(t.target.value),e.changeSelectedToken(t.target.value)},variant:"filled",renderValue:function(e){return"Default Token"===e?"Default Token":null===e.User?e.tokenId:e.User},input:Object(H.jsx)(E.a,{style:{width:"100%"}}),children:[Object(H.jsx)(F.a,{value:"Default Token",children:"Default Token"},0),n.map((function(e){return Object(H.jsx)(F.a,{value:e.token,children:null===e.token.User?e.token.TokenId+" - "+e.token.description:e.token.User+" - "+e.token.description},e.token.id)}))]})]})}var J,Y,Z,X=a(494),ee=a.n(X),te=Object(u.a)(J||(J=Object(r.a)(["\nsubscription GetLoadedCommandsSubscription($callback_id: Int!){\n loadedcommands(where: {callback_id: {_eq: $callback_id}}){\n id\n command {\n cmd\n id\n attributes\n commandparameters {\n id\n parameter_type: type \n required\n name\n ui_position\n parameter_group_name\n cli_name\n display_name\n }\n }\n }\n \n}\n"]))),ae=Object(u.a)(Y||(Y=Object(r.a)(["\nsubscription subscriptionCallbackTokens ($callback_id: Int!){\n callbacktoken(where: {deleted: {_eq: false}, callback_id: {_eq: $callback_id}}) {\n token {\n TokenId\n id\n User\n description\n }\n id\n }\n}\n"]))),ne=Object(u.a)(Z||(Z=Object(r.a)(["\nsubscription tasksSubscription($callback_id: Int!){\n task(where: {callback_id: {_eq: $callback_id}, parent_task_id: {_is_null: true}}, order_by: {id: desc}){\n id\n original_params\n display_params\n command_name\n comment\n tasking_location\n parameter_group_name\n status\n operator{\n username\n }\n command {\n commandparameters {\n id\n type\n name\n }\n }\n }\n}\n"])));function ie(e){var t={anchorOrigin:{vertical:"bottom",horizontal:"left"},autoHideDuration:2e3,preventDuplicate:!0,maxSnack:1,style:{marginBottom:"50px"}},a={anchorOrigin:{vertical:"bottom",horizontal:"left"},autoHideDuration:1e3,preventDuplicate:!0,maxSnack:1,style:{marginBottom:"100px"}},n=d.a.useState(""),r=Object(o.a)(n,2),s=r[0],l=r[1],u=d.a.useState([]),b=Object(o.a)(u,2),p=b[0],m=b[1],O=d.a.useState([]),y=Object(o.a)(O,2),k=y[0],C=y[1],S=d.a.useState(-1),D=Object(o.a)(S,2),I=D[0],T=D[1],$=d.a.useState([]),P=Object(o.a)($,2),A=P[0],E=P[1],L=d.a.useState([]),F=Object(o.a)(L,2),N=F[0],q=F[1],R=d.a.useState(-1),B=Object(o.a)(R,2),M=B[0],U=B[1],G=d.a.useState(!1),K=Object(o.a)(G,2),J=K[0],Y=K[1],Z=d.a.useState([]),X=Object(o.a)(Z,2),ie=X[0],re=X[1],ce=d.a.useState("parsed_cli"),oe=Object(o.a)(ce,2),se=oe[0],le=oe[1],de=d.a.useState(!1),ue=Object(o.a)(de,2),be=ue[0],je=ue[1],pe=d.a.useState(""),me=Object(o.a)(pe,2),he=me[0],fe=me[1],Oe=d.a.useState([]),xe=Object(o.a)(Oe,2),ge=xe[0],ye=xe[1],ve=d.a.useState(-1),_e=Object(o.a)(ve,2),ke=_e[0],we=_e[1],Ce=d.a.useRef(!0),Se=Object(W.a)(z.b);Object(j.a)(ae,{variables:{callback_id:e.callback_id},fetchPolicy:"network-only",shouldResubscribe:!0,onSubscriptionData:function(t){var a=t.subscriptionData;Ce.current&&e.parentMountedRef.current&&re(a.data.callbacktoken)}}),Object(j.a)(ne,{variables:{callback_id:e.callback_id},fetchPolicy:"network-only",shouldResubscribe:!0,onSubscriptionData:function(t){var a=t.subscriptionData;if(Ce.current&&e.parentMountedRef.current){C(a.data.task);var n=a.data.task.filter((function(e){return De(e)}));E(n)}}}),Object(j.a)(te,{variables:{callback_id:e.callback_id},fetchPolicy:"network-only",shouldResubscribe:!0,onSubscriptionData:function(t){var a=t.subscriptionData;if(Ce.current&&e.parentMountedRef.current){var n=a.data.loadedcommands.map((function(e){var t=Object(c.a)({},e.command);return t.attributes=JSON.parse(t.attributes),t}));n.push({cmd:"help",description:"Get help for a command or info about loaded commands",commandparameters:[],attributes:{supported_os:[]}}),n.push({cmd:"clear",description:"Clear 'submitted' jobs from being pulled down by an agent",commandparameters:[],attributes:{supported_os:[]}}),n.sort((function(e,t){return e.cmd>t.cmd?1:-1})),m(n)}}}),d.a.useEffect((function(){var e=k.filter((function(e){return De(e)}));E(e)}),[e.filterOptions]),d.a.useEffect((function(){return function(){Ce.current=!1}}),[]);var De=function(t){if(t.display_params.includes("help")&&t.operator.username!==Se.user.username)return!1;if(void 0===e.filterOptions)return!0;if(e.filterOptions.operatorsList.length>0&&!e.filterOptions.operatorsList.includes(t.operator.username))return!1;if(e.filterOptions.commentsFlag&&""===t.comment)return!1;if(e.filterOptions.commandsList.length>0&&!e.filterOptions.commandsList.includes(t.command_name))return!1;if(e.filterOptions.everythingButList.length>0&&null!==t.command&&e.filterOptions.everythingButList.includes(t.command_name))return!1;if(""!==e.filterOptions.parameterString&&!new RegExp(e.filterOptions.parameterString).test(t.display_params))return!1;return!0},Ie=function(e,a){for(var n=[],i=[],r=[],c=[],o=0;o0?r+=e:r+=e+e);if(n&&'"'===e)return n=!1,void(r.length>0?r+=e:r+=e+e);if(!a&&!n){if("'"===e)return a=!0,r.length>0?void(r+=e):void 0;if('"'===e)return n=!0,r.length>0?void(r+=e):void 0;if(["\t"," "].includes(e))return r.length>0&&(["'",'"'].includes(r[r.length-1])?t.push(r.slice(0,-1)):t.push(r),i=!1),void(r="")}if(!a&&n&&'"'===e)return n=!1,void(r.length>0&&(r+=e));r+=e})),(r.length>0||i)&&(["'",'"'].includes(r[r.length-1])?t.push(r.slice(0,-1)):t.push(r),i=!1),n)throw new SyntaxError("unexpected end of string while looking for matching double quote");if(a)throw new SyntaxError("unexpected end of string while looking for matching single quote");return t}(e);return ee()(s,{string:n,boolean:i,number:c,array:r,configuration:{"short-option-groups":!1,"camel-case-expansion":!1,"dot-notation":!1,"unknown-options-as-args":!1,"greedy-arrays":!0}})}catch(l){return void h.b.warning("Failed to parse command line: "+l,t)}},Te=function(e,t){if(0===e.commandparameters.length)return[];for(var a=e.commandparameters.reduce((function(e,t){return e.includes(t.parameter_group_name)?Object(i.a)(e):[].concat(Object(i.a)(e),[t.parameter_group_name])}),[]),n=0,r=Object.keys(t);n0){if(d=function(e,t,a){var n=Object(c.a)({},t);if(n._.shift(),0===e.commandparameters.length)return n;if(0===a.length)return n;var i=a[0];a.includes("Default")&&(i="Default");var r=e.commandparameters.filter((function(e){return e.parameter_group_name===i}));r.sort((function(e,t){return e.ui_position0&&(n[r[l].cli_name]=n._.shift());return o.length>0&&n._.length>0&&(n._=n._.map((function(e){return e.includes(" ")?'"'+e+'"':e})),n[o[o.length-1].cli_name]=n._.join(" "),n._=[]),n}(r,b,o),console.log(d),d._.length>0)return void h.b.warning("Too many positional arguments given. Did you mean to quote some of them?",t)}else d=b}if(void 0!==o){if(o.length>1){if(Boolean(n))e.onSubmitCommandLine(s,r,d,Boolean(n),o,se);else{if(!o.includes("Default"))return void h.b.warning("Passed arguments are ambiguous, use shift+enter for modal or provide more parameters",t);e.onSubmitCommandLine(s,r,d,Boolean(n),["Default"],se)}return l(""),T(-1),we(-1),je(!1),void le("parsed_cli")}e.onSubmitCommandLine(s,r,d,Boolean(n),o,se),l(""),T(-1),we(-1),je(!1),le("parsed_cli")}else h.b.warning("Two or more of the specified parameters can't be used together",t)}else h.b.warning("Unknown command",t)};return Object(H.jsxs)(d.a.Fragment,{children:[be&&Object(H.jsx)(_.a,{placeholder:"Search previous commands",onKeyDown:function(e){if("Escape"===e.key)je(!1),we(0),ye([]);else if("Tab"===e.key)je(!1),we(0),ye([]);else if("Enter"===e.key)je(!1),we(0),ye([]),$e(e);else if("ArrowUp"===e.key){if(0===ge.length)return void h.b.warning("No matching options",a);var t=(ke+1)%ge.length;we(t),l(ge[t].command_name+" "+ge[t].original_params)}else if("ArrowDown"===e.key){if(0===ge.length)return void h.b.warning("No matching options",a);var n=(ke-1)%ge.length;n<0&&(n=ge.length-1),we(n),l(ge[n].command_name+" "+ge[n].original_params)}},onChange:function(e){if(fe(e.target.value),0===e.target.value.length)return l(""),ye([]),void we(0);var t=e.target.value.toLowerCase(),a=k.filter((function(e){return(e.command_name+" "+e.original_params).toLowerCase().includes(t)})).filter((function(e){return De(e)}));ye(a),a.length>0&&l(a[0].command_name+" "+a[0].original_params)},size:"small",autoFocus:!0,variant:"outlined",value:he,fullWidth:!0,InputProps:{type:"search",startAdornment:Object(H.jsx)(d.a.Fragment,{children:Object(H.jsx)(x.a,{style:{width:"10%"},children:"reverse-i-search:"})})}}),Object(H.jsx)(_.a,{placeholder:"Task an agent...",onKeyDown:function(a){if("r"===a.key&&a.ctrlKey&&(je(!0),l(""),fe(""),le("parsed_cli")),"Tab"===a.key)if(a.stopPropagation(),a.preventDefault(),le("parsed_cli"),s.includes(" ")){var n=p.find((function(e){return e.cmd===s.split(" ")[0]}));if(n.commandparameters.length>0){if(" "!==s[s.length-1]){if(N.length>0){var r=(M+1)%N.length;U(r);var c=s.split(" ").slice(0,-1).join(" ")+" -"+N[r];return void l(c)}var d=s.split(" "),u=d.slice(-1)[0];if(u.startsWith("-")){var b=Ie(d.slice(0,-1).join(" "),n),j=Te(n,b);if(void 0===j)return void h.b.warning("Two or more of the specified parameters can't be used together",t);var m=[];if(n.commandparameters.find((function(e){return j.includes(e.parameter_group_name)&&e.cli_name===u.slice(1)&&!(e.cli_name in b)}))?(m=n.commandparameters.reduce((function(e,t){return j.includes(t.parameter_group_name)&&t.cli_name!==u.slice(1)&&!(t.cli_name in b)?[].concat(Object(i.a)(e),[t.cli_name]):Object(i.a)(e)}),[])).push(u.slice(1)):m=n.commandparameters.reduce((function(e,t){return j.includes(t.parameter_group_name)&&t.cli_name.toLowerCase().startsWith(u.slice(1).toLocaleLowerCase())&&!(t.cli_name in b)?[].concat(Object(i.a)(e),[t.cli_name]):Object(i.a)(e)}),[]),m.length>0){if(1===m.length){q([]),U(0);var f=d.slice(0,-1).join(" ")+" -"+m[0];l(f)}else{q(m),U(0);var O=d.slice(0,-1).join(" ")+" -"+m[0];l(O)}return}return void h.b.warning("Unknown Parameter Name",t)}return}var x=Ie(s,n),g=Te(n,x);if(void 0===g)return void h.b.warning("Two or more of the specified parameters can't be used together",t);console.log("cmdGroupNames in tab",g);for(var y=0,v=Object.entries(x);y0&&l(R[0].cmd)}else U((M+1)%N.length),l(N[(M+1)%N.length].cmd);else if("Enter"===a.key)a.shiftKey?$e(a,!0):$e(a,!1);else if("ArrowUp"===a.key){if(0===A.length)return void h.b.warning("No previous tasks",t);var B=I+1;B>A.length-1&&(B=A.length-1),T(B),l(A[B].command_name+" "+A[B].original_params),le(A[B].tasking_location)}else if("ArrowDown"===a.key){if(0===A.length)return void h.b.warning("No previous tasks",t);var z=I-1;z<0&&(z=0),T(z),l(A[z].command_name+" "+A[z].original_params),le(A[z].tasking_location)}else q([]),U(0),-1!==I&&T(-1)},onChange:function(e){q([]),U(0),l(e.target.value),0===e.target.value.length&&le("parsed_cli")},size:"small",variant:"outlined",disabled:be,value:s,autoFocus:!0,fullWidth:!0,style:{marginBottom:"10px"},InputProps:{type:"search",endAdornment:Object(H.jsxs)(d.a.Fragment,{children:[Object(H.jsx)(g.a,{color:"primary",variant:"contained",onClick:$e,children:Object(H.jsx)(v.a,{})}),Object(H.jsx)(g.a,{color:"secondary",variant:"contained",onClick:function(){Y(!0)},children:Object(H.jsx)(w.a,{})})]}),startAdornment:Object(H.jsx)(d.a.Fragment,{children:ie.length>0?Object(H.jsx)(Q,{options:ie,changeSelectedToken:e.changeSelectedToken}):null})}}),J&&Object(H.jsx)(f.a,{fullWidth:!0,maxWidth:"md",open:J,onClose:function(){Y(!1)},innerDialog:Object(H.jsx)(V,{filterCommandOptions:p,onSubmit:e.onSubmitFilter,filterOptions:e.filterOptions,onClose:function(){Y(!1)}})})]})}var re,ce,oe,se,le=d.a.memo(ie),de=a(222),ue=a(495),be=a.n(ue),je=a(19);function pe(e){var t=d.a.useState(e.tabInfo.payloadDescription!==e.tabInfo.callbackDescription?e.tabInfo.callbackDescription:"Callback: "+e.tabInfo.callbackID),a=Object(o.a)(t,2),n=a[0],i=a[1],r=d.a.useState(!1),u=Object(o.a)(r,2),b=u[0],j=u[1];Object(l.useEffect)((function(){""!==e.tabInfo.customDescription&&void 0!==e.tabInfo.customDescription?i(e.tabInfo.customDescription):e.tabInfo.payloadDescription!==e.tabInfo.callbackDescription?i(e.tabInfo.callbackDescription):i("Callback: "+e.tabInfo.callbackID)}),[e.tabInfo.payloadDescription,e.tabInfo.customDescription]);return Object(H.jsxs)(d.a.Fragment,{children:[Object(H.jsx)(s.b,Object(c.a)({label:n,onContextMenu:function(e){e.stopPropagation(),e.preventDefault(),j(!0)}},e)),b&&Object(H.jsx)(f.a,{fullWidth:!0,open:b,onClose:function(){j(!1)},innerDialog:Object(H.jsx)(f.b,{title:"Edit Tab's Description",onClose:function(){j(!1)},value:n,onSubmit:function(t){e.onEditTabDescription(e.tabInfo,t)}})})]})}var me=Object(u.a)(re||(re=Object(r.a)(["\n fragment taskData on task {\n comment\n callback_id\n commentOperator{\n username\n }\n completed\n id\n operator{\n username\n }\n original_params\n display_params\n status\n timestamp\n command {\n cmd\n id\n }\n command_name\n responses(limit: 1, order_by: {id: desc}){\n id\n timestamp\n }\n opsec_pre_blocked\n opsec_pre_bypassed\n opsec_post_blocked\n opsec_post_bypassed\n tasks {\n id\n }\n token {\n id\n }\n }\n"]))),he=Object(u.a)(ce||(ce=Object(r.a)(["\nmutation createTasking($callback_id: Int!, $command: String!, $params: String!, $files: [String], $token_id: Int, $tasking_location: String, $original_params: String, $parameter_group_name: String) {\n createTask(callback_id: $callback_id, command: $command, params: $params, files: $files, token: $token_id, tasking_location: $tasking_location, original_params: $original_params, parameter_group_name: $parameter_group_name) {\n status\n id\n error\n }\n}\n"]))),fe=Object(u.a)(oe||(oe=Object(r.a)(["\n","\nsubscription getTasking($callback_id: Int!, $fromNow: timestamp!, $limit: Int){\n task(where: {callback_id: {_eq: $callback_id}, parent_task_id: {_is_null: true}, timestamp: {_gt: $fromNow}}, order_by: {id: desc}, limit: $limit) {\n ...taskData\n }\n}\n "])),me),Oe=Object(u.a)(se||(se=Object(r.a)(["\n","\nquery getBatchTasking($callback_id: Int!, $offset: Int!, $fetchLimit: Int!){\n task(where: {callback_id: {_eq: $callback_id}, parent_task_id: {_is_null: true}}, order_by: {id: desc}, limit: $fetchLimit, offset: $offset) {\n ...taskData\n }\n callback(where: {id: {_eq: $callback_id}}){\n id\n }\n}\n"])),me),xe=function(e){var t=e.tabInfo,a=e.index,n=e.value,r=e.onCloseTab,u=e.parentMountedRef,x=d.a.useState(10),y=Object(o.a)(x,2),v=y[0],_=y[1],k=d.a.useState(!1),w=Object(o.a)(k,2),C=w[0],S=w[1],D=d.a.useState({}),I=Object(o.a)(D,2),T=I[0],$=I[1],P=d.a.useState({task:[]}),A=Object(o.a)(P,2),E=A[0],L=A[1],F=d.a.useRef({task:[]}),N=d.a.useState((new Date).toISOString()),q=Object(o.a)(N,2),R=q[0],B=(q[1],d.a.useState({})),M=Object(o.a)(B,2),z=M[0],W=M[1],U=d.a.useState({operatorsList:[],commentsFlag:!1,commandsList:[],parameterString:"",everythingButList:[]}),G=Object(o.a)(U,2),K=G[0],V=G[1],Q=d.a.useState(!0),J=Object(o.a)(Q,2),Y=J[0],Z=J[1],X=d.a.useRef(!0);Object(l.useEffect)((function(){F.current=E}),[E]);var ee=d.a.useState(!1),te=Object(o.a)(ee,2),ae=te[0],ne=te[1],ie=d.a.useState(!1),re=Object(o.a)(ie,2),ce=re[0],oe=re[1],se=Object(l.useRef)(null),ue=Object(b.a)(he,{update:function(e,t){var a=t.data;"error"===a.createTask.status?h.b.error(a.createTask.error):h.b.success("Task created",{autoHideDuration:1e3})},onError:function(e){console.error(e)}}),pe=Object(o.a)(ue,1)[0],me=Object(l.useCallback)((function(e){var t=e.subscriptionData;if(!X.current||!u.current)return null;ae||ne(!0);var a=F.current.task.length,n=t.data.task.reduce((function(e,t){return e.findIndex((function(e){return e.id===t.id}))>-1?e.map((function(e){return e.id===t.id?t:e})):[].concat(Object(i.a)(e),[t])}),Object(i.a)(F.current.task));n.sort((function(e,t){return e.ida&&Z(!0),n.length>v&&_(n.length)}),[ae,ne,Z,v]);Object(j.a)(fe,{variables:{callback_id:t.callbackID,fromNow:R,limit:v},onError:function(e){console.error(e)},fetchPolicy:"no-cache",onSubscriptionData:me});var xe=Object(l.useCallback)((function(){E&&se.current&&se.current.scrollIntoView({behavior:"smooth"})}),[E,se]);Object(l.useLayoutEffect)((function(){Y&&(xe(),Z(!1))}),[Y,xe]);var ge=Object(p.a)(Oe,{onError:function(e){console.error(e)},onCompleted:function(e){var a=!1;if(0!==e.callback.length){var n=e.task.reduce((function(e,t){return e.findIndex((function(e){return e.id===t.id}))>-1?e.map((function(e){return e.id===t.id?t:e})):(a=!0,[].concat(Object(i.a)(e),[t]))}),Object(i.a)(E.task));n.sort((function(e,t){return e.id0&&(u=!0,console.log("missing required params",b,n))}else r>1&&!i&&(console.log("command is ambiguous"),i=!0);if(d||i||u)return r.length>0?$(Object(c.a)(Object(c.a)({},a),{},{parsedParameters:n,groupName:r[0]})):$(Object(c.a)(Object(c.a)({},a),{},{parsedParameters:n})),void S(!0);delete n._,ke({callback_id:t.callbackID,command:a.cmd,params:JSON.stringify(n),tasking_location:l,original_params:s,parameter_group_name:r[0]})}},changeSelectedToken:function(e){"Default Token"!==e?e.TokenId!==z.TokenId&&W(e):W("Default Token")},filterOptions:K,callback_id:t.callbackID,callback_os:t.os,parentMountedRef:X}),C&&Object(H.jsx)(f.a,{fullWidth:!0,maxWidth:"md",open:C,onClose:function(){S(!1)},innerDialog:Object(H.jsx)(O.a,{command:T,callback_id:t.callbackID,payloadtype_id:t.payloadtype_id,operation_id:t.operation_id,onSubmit:function(e,a,n,i){S(!1),ke({callback_id:t.callbackID,command:e,params:a,files:n,tasking_location:"modal",parameter_group_name:i})},onClose:function(){S(!1)}})})]})}},13:function(e,t,a){"use strict";a.d(t,"a",(function(){return y})),a.d(t,"b",(function(){return v})),a.d(t,"c",(function(){return _})),a.d(t,"d",(function(){return k}));var n=a(6),i=a(2),r=a(1),c=a.n(r),o=a(836),s=a(54),l=a(96),d=a(95),u=a(110),b=a(17),j=a(245),p=a(247),m=a(76),h=a(244),f=a(246),O=a(133),x=a(73),g=a(0);function y(e){var t=c.a.useRef(null);return c.a.useEffect((function(){if(e.open){var a=t.current;null!==a&&a.focus()}}),[e.open]),Object(g.jsx)(o.a,{open:e.open,onClose:e.onClose,scroll:"paper",maxWidth:e.maxWidth,fullWidth:e.fullWidth,"aria-labelledby":"scroll-dialog-title","aria-describedby":"scroll-dialog-description",children:e.innerDialog})}function v(e){var t=c.a.useState(""),a=Object(i.a)(t,2),n=a[0],o=a[1],j=function(){e.onSubmit(n),e.onClose()};return Object(r.useEffect)((function(){o(e.value)}),[e.value]),Object(g.jsxs)(c.a.Fragment,{children:[Object(g.jsx)(u.a,{id:"form-dialog-title",children:e.title}),Object(g.jsx)(d.a,{dividers:!0,children:Object(g.jsx)(b.a,{autoFocus:!0,onEnter:j,onChange:function(e,t,a){o(t)},value:n})}),Object(g.jsxs)(l.a,{children:[Object(g.jsx)(s.a,{onClick:e.onClose,variant:"contained",color:"primary",children:"Close"}),Object(g.jsx)(s.a,{onClick:j,variant:"contained",color:"secondary",children:"Submit"})]})]})}function _(e){var t=c.a.useState([]),a=Object(i.a)(t,2),n=a[0],o=a[1],b=c.a.useState("dictionary"),y=Object(i.a)(b,2),v=y[0],_=y[1],k=c.a.useState([]),w=Object(i.a)(k,2),C=w[0],S=w[1];return Object(r.useEffect)((function(){var t=[];try{var a;if((a=e.value.constructor===Object?e.value:JSON.parse(e.value)).constructor===Object)for(var n in a)a[n].constructor===Object||Array.isArray(a[n])?t.push({name:n,value:JSON.stringify(a[n],null,2)}):t.push({name:n,value:a[n]}),S([e.leftColumn,e.rightColumn]);else _("array"),a.length>0?(S(Object.keys(a[0])),t=a):S([])}catch(i){console.log(i)}o(t)}),[e.value,e.leftColumn,e.rightColumn]),Object(g.jsxs)(c.a.Fragment,{children:[Object(g.jsx)(u.a,{id:"form-dialog-title",children:e.title}),Object(g.jsx)(d.a,{dividers:!0,children:Object(g.jsx)(x.a,{elevation:5,style:{position:"relative"},variant:"elevation",children:Object(g.jsx)(h.a,{component:x.a,className:"mythicElement",children:Object(g.jsxs)(j.a,{size:"small",style:{tableLayout:"fixed",maxWidth:"calc(100vw)",overflow:"scroll"},children:[Object(g.jsx)(f.a,{children:Object(g.jsx)(O.a,{children:C.map((function(e,t){return Object(g.jsx)(m.a,{children:e},"header"+t)}))})}),Object(g.jsx)(p.a,{children:"dictionary"===v?n.map((function(e,t){return Object(g.jsxs)(O.a,{hover:!0,children:[Object(g.jsx)(m.a,{children:e.name}),Object(g.jsx)(m.a,{style:{wordBreak:"break-all",whiteSpace:"pre-wrap"},children:!0===e.value?"True":!1===e.value?"False":e.value})]},"row"+t)})):n.map((function(e,t){return Object(g.jsx)(O.a,{hover:!0,children:Object.keys(e).map((function(a){return Object(g.jsx)(m.a,{children:e[a]},"row"+t+"cell"+a)}))},"row"+t)}))})]})})})}),Object(g.jsx)(l.a,{children:Object(g.jsx)(s.a,{onClick:e.onClose,variant:"contained",color:"primary",children:"Close"})})]})}function k(e){var t=c.a.useState([]),a=Object(i.a)(t,2),o=a[0],b=a[1];return Object(r.useEffect)((function(){var t=e.keys.reduce((function(t,a){return void 0!==e.value[a]&&null!==e.value[a]&&""!==e.value[a]?[].concat(Object(n.a)(t),[{name:a,value:e.value[a]}]):Object(n.a)(t)}),[]);b(t)}),[e.value,e.keys]),Object(g.jsxs)(c.a.Fragment,{children:[Object(g.jsx)(u.a,{id:"form-dialog-title",children:e.title}),Object(g.jsx)(d.a,{dividers:!0,children:Object(g.jsx)(x.a,{elevation:5,style:{position:"relative"},variant:"elevation",children:Object(g.jsx)(h.a,{component:x.a,className:"mythicElement",children:Object(g.jsxs)(j.a,{size:"small",style:{tableLayout:"fixed",maxWidth:"calc(100vw)",overflow:"scroll"},children:[Object(g.jsx)(f.a,{children:Object(g.jsxs)(O.a,{children:[Object(g.jsx)(m.a,{children:e.leftColumn}),Object(g.jsx)(m.a,{children:e.rightColumn})]})}),Object(g.jsx)(p.a,{children:o.map((function(e,t){return Object(g.jsxs)(O.a,{children:[Object(g.jsx)(m.a,{children:e.name}),Object(g.jsx)(m.a,{children:!0===e.value?"True":!1===e.value?"False":e.value})]},"row"+t)}))})]})})})}),Object(g.jsx)(l.a,{children:Object(g.jsx)(s.a,{onClick:e.onClose,variant:"contained",color:"primary",children:"Close"})})]})}},131:function(e,t,a){"use strict";a.d(t,"a",(function(){return y}));var n,i=a(3),r=a(6),c=a(2),o=a(7),s=a(1),l=a.n(s),d=a(57),u=a(193),b=a(191),j=a(4),p=a(13),m=a(219),h=a(108),f=a(215),O=a(65),x=a(0),g=Object(d.a)(n||(n=Object(o.a)(["\nquery GetLoadedCommandsQuery($callback_id: Int!, $ui_feature: String!) {\n callback_by_pk(id: $callback_id){\n operation_id\n active\n payload {\n payloadtype {\n id\n }\n }\n loadedcommands(where: {command: {supported_ui_features: {_ilike: $ui_feature}}}) {\n id\n command {\n cmd\n help_cmd\n description\n id\n needs_admin\n payload_type_id\n attributes\n commandparameters {\n id\n type \n }\n supported_ui_features\n }\n }\n callbacktokens(where: {deleted: {_eq: false}}) {\n token {\n TokenId\n id\n User\n description\n }\n id\n }\n }\n}\n"]))),y=function(e){var t=e.callback_id,a=e.ui_feature,n=e.parameters,o=e.onTasked,d=e.tasking_location,y=e.getConfirmation,v=e.openDialog,_=l.a.useState([]),k=Object(c.a)(_,2),w=k[0],C=k[1],S=l.a.useState(!1),D=Object(c.a)(S,2),I=D[0],T=D[1],$=l.a.useState(!1),P=Object(c.a)($,2),A=P[0],E=P[1],L=l.a.useState({}),F=Object(c.a)(L,2),N=F[0],q=F[1],R=l.a.useState([]),B=Object(c.a)(R,2),M=B[0],z=B[1],W=l.a.useState({}),H=Object(c.a)(W,2),U=H[0],G=H[1],K=l.a.useState(!1),V=Object(c.a)(K,2),Q=V[0],J=V[1],Y=l.a.useState({}),Z=Object(c.a)(Y,2),X=Z[0],ee=Z[1],te=l.a.useState(!1),ae=Object(c.a)(te,2),ne=ae[0],ie=ae[1],re=l.a.useRef({}),ce=Object(u.a)(h.c,{update:function(e,a){var n=a.data;"error"===n.createTask.status?(j.b.error(n.createTask.error),o({tasked:!1})):(j.b.success('Issued "'+N.cmd+'" to Callback '+t),o({tasked:!0,variables:re.current}))},onError:function(e){console.error(e),o({tasked:!1})}}),oe=Object(c.a)(ce,1)[0],se=Object(b.a)(g,{variables:{callback_id:t,ui_feature:"%"+a+"%"},onCompleted:function(e){if(null===e.callback_by_pk)return j.b.warning("Unknown callback"),void o({tasked:!1});if(!e.callback_by_pk.active)return j.b.warning("Callback isn't active"),void o({tasked:!1});var t=e.callback_by_pk.loadedcommands.reduce((function(e,t){return"string"===typeof n?[].concat(Object(r.a)(e),[Object(i.a)(Object(i.a)({},t.command),{},{parsedParameters:{}})]):(console.log("adding in parsed parameters",n),[].concat(Object(r.a)(e),[Object(i.a)(Object(i.a)({},t.command),{},{parsedParameters:n})]))}),[]),c=e.callback_by_pk.callbacktokens.reduce((function(e,t){return[].concat(Object(r.a)(e),[Object(i.a)(Object(i.a)({},t.token),{},{display:null===t.token.User?t.token.TokenId+" - "+t.token.description:t.token.User+" - "+t.token.description})])}),[]);z(c),C(t),0===t.length?j.b.warning("No commands currently loaded that support the "+a+" feature"):1===t.length?q(Object(i.a)({},t[0])):(q({}),T(!0))},fetchPolicy:"no-cache"}).data,le=function(e){var t=e.variables;if(y)return ee(t),void ie(!0);M.length>0?(J(!0),ee(t)):oe({variables:t})};return Object(s.useEffect)((function(){""===U&&oe({variables:X}),U.TokenId&&oe({variables:Object(i.a)(Object(i.a)({},X),{},{token_id:U.TokenId})})}),[U]),Object(s.useEffect)((function(){if(void 0!==N.commandparameters)if(v&&N.commandparameters.length>0)E(!0);else{var e=d||"browserscript";N.commandparameters.length>0?void 0===n||null===n?E(!0):(re.current=n,le("string"===typeof n?{variables:{callback_id:t,command:N.cmd,params:n,tasking_location:e}}:{variables:{callback_id:t,command:N.cmd,params:JSON.stringify(n),tasking_location:e}})):void 0===n||null===n?(re.current="",le({variables:{callback_id:t,command:N.cmd,params:""}})):(re.current=n,le("string"===typeof n?{variables:{callback_id:t,command:N.cmd,params:n,tasking_location:e}}:{variables:{callback_id:t,command:N.cmd,params:JSON.stringify(n),tasking_location:e}}))}}),[N]),Object(x.jsxs)("div",{children:[I&&Object(x.jsx)(p.a,{fullWidth:!0,maxWidth:"sm",open:I,onClose:function(){T(!1),o({tasked:!1})},innerDialog:Object(x.jsx)(m.a,{onClose:function(){T(!1)},onSubmit:function(e){q(e)},options:w,title:"Select Command",action:"select",identifier:"id",display:"cmd"})}),A&&Object(x.jsx)(p.a,{fullWidth:!0,maxWidth:"lg",open:A,onClose:function(){E(!1),o({tasked:!1})},innerDialog:Object(x.jsx)(f.a,{command:N,callback_id:t,payloadtype_id:se.callback_by_pk.payload.payloadtype.id,operation_id:se.callback_by_pk.operation_id,onSubmit:function(e,a,n){E(!1),re.current=a,le({variables:{callback_id:t,command:e,params:a,files:n,tasking_location:"modal"}})},onClose:function(){E(!1)}})}),Q&&Object(x.jsx)(p.a,{fullWidth:!0,maxWidth:"sm",open:Q,onClose:function(){J(!1),o({tasked:!1})},innerDialog:Object(x.jsx)(m.a,{onClose:function(){J(!1),o({tasked:!1})},onSubmit:function(e){G(e)},dontCloseOnSubmit:!0,options:M,title:"Select Token",action:"select",identifier:"id",display:"display"})}),ne&&Object(x.jsx)(O.a,{onClose:function(){ie(!1),o({tasked:!1})},onSubmit:function(){M.length>0?J(!0):oe({variables:X})},open:ne})]})}},139:function(e,t,a){"use strict";function n(e){try{var t=document.createElement("textarea");return t.value=e,""===t.value&&(t.value=" "),t.setAttribute("readonly",""),t.style={position:"absolute",left:"-9999px"},document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),!0}catch(a){return console.log("warning","Failed to copy to clipboard: "+a.toString()),!1}}a.d(t,"a",(function(){return n}))},16:function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"c",(function(){return c})),a.d(t,"d",(function(){return o})),a.d(t,"e",(function(){return s})),a.d(t,"a",(function(){return l}));var n=a(3),i=a(151),r=Object(i.c)({loggedIn:!1,user:null,access_token:null,refresh_token:null}),c=Object(i.c)(!1),o=function(e){localStorage.setItem("access_token",e.access_token),localStorage.setItem("refresh_token",e.refresh_token),localStorage.setItem("user",JSON.stringify(e.user)),r(Object(n.a)({loggedIn:!0},e))},s=function(e){localStorage.setItem("access_token",e.access_token),r(Object(n.a)({loggedIn:!0,access_token:localStorage.getItem("access_token")},r()))},l=function(){console.log("failed refresh"),localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token"),localStorage.removeItem("user"),r({loggedIn:!1,access_token:null,refresh_token:null,user:null})}},166:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n=a(360),i=Object(n.a)({palette:{primary:{main:"#1976d2"},secondary:{main:"#dc004e"},error:{main:"#f44336"},warning:{main:"#ff9800"},info:{main:"#2196f3"},disabled:{main:"rgba(0, 0, 0, 0.38)"}}})},168:function(e,t,a){"use strict";var n=a(3),i=a(6),r=a(2),c=a(85),o=a(1),s=a.n(o),l=a(165),d=a(481),u=a.n(d),b=a(169),j=a(916),p=a(58),m=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:250,n=Object(o.useState)(0),i=Object(r.a)(n,2),c=i[0],s=i[1];return Object(o.useEffect)((function(){var n=setTimeout((function(){1===c&&e(),s(0)}),a);return 2===c&&t(),function(){return clearTimeout(n)}}),[a,e,t,c]),function(){return s((function(e){return e+1}))}},h=a(142),f=Object(h.a)((function(e){return{headerCellRow:{display:"flex",flexDirection:"row",position:"sticky",top:"0",left:"0",right:"0",zIndex:1},headerCell:{display:"flex",alignItems:"center",padding:"0 0.25em",boxSizing:"border-box",justifyContent:"space-between",userSelect:"none",backgroundColor:e.palette.background.paper,borderTop:"1px solid "+e.tableHover,borderRight:"1px solid "+e.tableHover,borderBottom:"1px solid "+e.tableHover,"&:first-child":{borderLeft:"1px solid "+e.tableHover},"&:hover":{backgroundColor:e.tableHover,cursor:"pointer"}},hoveredRow:{backgroundColor:e.tableHover},cell:{display:"flex",alignItems:"center",padding:"0 0.5em",boxSizing:"border-box",fontFamily:"monospace",borderBottom:"1px solid "+e.tableHover,cursor:"default !important"},cellInner:{width:"100%",whiteSpace:"nowrap",overflowX:"hidden",textOverflow:"ellipsis"},draggableHandlesContainer:{position:"absolute",top:0,overflowX:"hidden"},draggableHandlesClickArea:{position:"absolute",top:0,width:"16px",cursor:"col-resize",pointerEvents:"initial"},draggableHandlesIndicator:{position:"absolute",top:0,left:8,width:"1px",backgroundImage:"linear-gradient(#7f93c0, #00000000)"}}})),O=a(41),x=a(31),g=a(536),y=a(842),v=a(366),_=a(832),k=a(834),w=a(73),C=a(51),S=a(0),D=["style","rowIndex","columnIndex","data"],I=function(e){var t=e.onClick,a=void 0===t?function(){}:t,i=e.onDoubleClick,l=void 0===i?function(){}:i,d=e.contextMenuOptions,u=void 0===d?[]:d,b=e.sortIndicatorIndex,h=e.sortDirection,I=e.headerNameKey,T=void 0===I?"name":I,$=e.VariableSizeGridProps,P=$.style,A=$.rowIndex,E=$.columnIndex,L=$.data,F=(Object(c.a)($,D),f()),N=s.a.useRef(null),q=Object(C.a)(),R=L.items[A][E],B=(null===R||void 0===R?void 0:R.filtered)||!1,M=Object(o.useCallback)((function(e){a(e,E)}),[a,E]),z=Object(o.useCallback)((function(e){l(e,E)}),[l,E]),W=s.a.useState(!1),H=Object(r.a)(W,2),U=H[0],G=H[1],K=Object(o.useCallback)((function(e){e.preventDefault(),R.disableFilterMenu||u&&u.length>0&&G(!0)}),[u,E]),V=function(e){N.current&&N.current.contains(e.target)||G(!1)},Q=m(M,z);return Object(S.jsx)("div",{style:P,className:F.headerCell,onClick:Q,onContextMenu:K,ref:N,children:Object(S.jsxs)(j.a,{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",children:[Object(S.jsx)(p.a,{className:F.cellInner,variant:"body1",children:R[T].toUpperCase()}),B?Object(S.jsx)(O.a,{icon:x.s}):null,b===E&&("ASC"===h?Object(S.jsx)("div",{children:"\u2191"}):Object(S.jsx)("div",{children:"\u2193"})),Object(S.jsx)(y.a,{open:U,anchorEl:N.current,role:void 0,transition:!0,disablePortal:!0,style:{zIndex:4},children:function(e){var t=e.TransitionProps,a=e.placement;return Object(S.jsx)(g.a,Object(n.a)(Object(n.a)({},t),{},{style:{transformOrigin:"bottom"===a?"center top":"center bottom"},children:Object(S.jsx)(w.a,{variant:"outlined",style:{backgroundColor:"dark"===q.palette.type?q.palette.primary.dark:q.palette.primary.light,color:"white"},children:Object(S.jsx)(k.a,{onClickAway:V,children:Object(S.jsx)(_.a,{id:"split-button-menu",children:u.map((function(e,t){return Object(S.jsx)(v.a,{onClick:function(e){return function(e,t){u[t].click({event:e,columnIndex:E}),G(!1)}(e,t)},children:e.name},e.name+t)}))})})})}))}})]})})},T=a(185),$=function(e){var t,a,i,r,c,s=e.VariableSizeGridProps,l=s.style,d=s.rowIndex,u=s.columnIndex,b=s.data,j=b.gridUUID+"row"+d,p=f(),m=Object(o.useCallback)((function(e){b.onDoubleClickRow(e,d-1)}),[b,d]),h=b.items[d][u],O=(null===h||void 0===h||null===(t=h.props)||void 0===t||null===(a=t.cellData)||void 0===a?void 0:a.cellStyle)||{},x=(null===(i=b.items[d][u])||void 0===i||null===(r=i.props)||void 0===r||null===(c=r.rowData)||void 0===c?void 0:c.rowStyle)||{};return Object(S.jsx)("div",{style:Object(n.a)(Object(n.a)(Object(n.a)({},l),O),x),className:"".concat(p.cell," ").concat(j),onDoubleClick:m,onMouseEnter:function(){var e=document.getElementsByClassName(j);if(e.length>0){var t,a=Object(T.a)(e);try{for(a.s();!(t=a.n()).done;){t.value.classList.add(p.hoveredRow)}}catch(n){a.e(n)}finally{a.f()}}},onMouseLeave:function(){var e=document.getElementsByClassName(j);if(e.length>0){var t,a=Object(T.a)(e);try{for(a.s();!(t=a.n()).done;){t.value.classList.remove(p.hoveredRow)}}catch(n){a.e(n)}finally{a.f()}}},children:Object(S.jsx)("div",{className:p.cellInner,children:h})})},P=a(482),A=a.n(P),E=s.a.forwardRef((function(e,t){var a=e.height,n=e.rowHeight,i=e.width,c=e.minColumnWidth,s=e.columnWidths,l=e.onStop,d=f(),u=Object(o.useState)(!1),b=Object(r.a)(u,2),j=b[0],p=b[1];return Object(S.jsx)("div",{ref:t,className:d.draggableHandlesContainer,style:{height:a,width:i,pointerEvents:j?"initial":"none"},children:s.map((function(e,t){var i=s.slice(0,t).reduce((function(e,t){return e+t}),0);return Object(S.jsx)(A.a,{axis:"x",bounds:{left:c-s[t],right:Number.POSITIVE_INFINITY,top:0,bottom:0},position:j?null:{x:0,y:0},onStart:function(){p(t)},onStop:function(e,a){p(!1),l(a.x,t)},children:Object(S.jsx)("div",{className:d.draggableHandlesClickArea,style:{left:i+s[t]-1-8,height:n},children:Object(S.jsx)("div",{className:d.draggableHandlesIndicator,style:{display:j===t?"block":"none",height:a/2}})})},t)}))})})),L=["columns","sortIndicatorIndex","sortDirection","items","headerNameKey","onClickHeader","onDoubleClickRow","contextMenuOptions","rowHeight","widthMeasureKey"],F=["children"],N=100,q=function(e){return 0===e.rowIndex?null:Object(S.jsx)($,{VariableSizeGridProps:e})},R=function(e){var t=e.columns,a=e.sortIndicatorIndex,l=e.sortDirection,d=e.items,j=e.headerNameKey,p=e.onClickHeader,m=e.onDoubleClickRow,h=e.contextMenuOptions,O=e.rowHeight,x=e.widthMeasureKey,g=Object(c.a)(e,L),y=u()().width,v=Object(o.useState)(t.map((function(e){return e.width||N}))),_=Object(r.a)(v,2),k=_[0],w=_[1],C=Object(o.useRef)(null),D=Object(o.useRef)(null),T=Object(o.useCallback)((function(e){return k[e]||N}),[k]),$=s.a.useMemo((function(){return(Math.random()+1).toString(36).substring(2)}),[]),P=Object(o.useCallback)((function(e){return O}),[O]);Object(o.useEffect)((function(){var e=g.width-y,a=t.map((function(e){return e.width||N})),n=e-a.reduce((function(e,t){return e+t}),0);if(n>0){for(var i=[],r=0;r0&&!n.operatorsList.includes(a.operator.username))w&&C(!1);else if(n.commentsFlag&&""===a.comment)w&&C(!1);else if(n.commandsList.length>0&&!n.commandsList.includes(a.command_name))w&&C(!1);else if(n.everythingButList.length>0&&n.everythingButList.includes(a.command_name))w&&C(!1);else{if(""!==n.parameterString)if(!new RegExp(n.parameterString).test(a.display_params))return void(w&&C(!1));w||C(!0)}else w||C(!0)}),[n,a.comment,a.command,a.display_params,a.operator.username]);var q=d.a.useCallback((function(e,t){b(!u)}),[u]);return Object(l.useEffect)((function(){!y&&a.tasks.length>0&&F()}),[a.tasks]),w?Object(L.jsx)(z,{nodeId:"treenode:"+a.id,onIconClick:F,icon:i.includes("treenode:"+a.id)?Object(L.jsx)(B,{}):a.tasks.length>0?Object(L.jsx)(M,{}):null,label:Object(L.jsx)(V,{task:a,dropdownOpen:u,toggleTaskDropdown:q}),children:f.task.map((function(t){return Object(L.jsx)(e,{task:t,nodesSelected:i,filterOptions:n,toggleSelection:r},"taskrow: "+t.id)}))}):null},V=function(e){var t=e.task,a=e.dropdownOpen,n=e.toggleTaskDropdown,i=d.a.useState(new Date),r=Object(c.a)(i,2),o=r[0],s=(r[1],Object(h.a)(m.b)),f=Object(D.a)(),O=d.a.useState(!1),x=Object(c.a)(O,2),_=x[0],w=x[1],I=d.a.useState(0),T=Object(c.a)(I,2),$=T[0],P=T[1],A=q(),F=R(),N=Object(l.useRef)(0);Object(l.useLayoutEffect)((function(){B()}),[]),Object(l.useEffect)((function(){var e,i=(null===t||void 0===t||null===(e=t.responses)||void 0===e?void 0:e.length)>0?t.responses[0]:{id:0,timestamp:0};a?(N.current=i.id,P(0)):new Date(i.timestamp+"Z")>o&&(0===N.current?n():i.id>N.current&&P(1))}),[t.responses,a]);var B=function(e,a){document.getElementById("scrolltotask".concat(t.id)).scrollIntoView({behavior:"smooth",block:"start",inline:"start"})};return Object(L.jsx)(b.a,{className:A.root,elevation:5,style:{marginRight:0},id:"taskHeader-".concat(t.id),children:Object(L.jsxs)(g.a,{TransitionProps:{unmountOnExit:!0,onEntered:B},defaultExpanded:!1,onChange:n,expanded:a,children:[Object(L.jsx)(v.a,{expandIcon:Object(L.jsx)(k.a,{}),"aria-controls":"panel1c-content-task-".concat(t.id),id:"panel1c-header-".concat(t.id),classes:F,children:Object(L.jsx)(G,{task:t,theme:f,children:Object(L.jsxs)("div",{id:"scrolltotask"+t.id,style:{width:"100%"},children:[_?Object(L.jsxs)(d.a.Fragment,{children:[Object(L.jsx)(j.a,{className:A.secondaryHeading,children:t.commentOperator.username}),Object(L.jsx)(j.a,{className:A.heading,children:t.comment})]}):null,Object(L.jsxs)(j.a,{className:A.taskAndTimeDisplay,children:["[",Object(p.b)(t.timestamp,s.user.view_utc_time),"] / ",t.id," / ",t.operator.username,Object(L.jsx)(U,{task:t,theme:f})]}),Object(L.jsxs)("div",{children:[""!==t.comment?Object(L.jsx)("div",{className:A.column,children:Object(L.jsx)(u.a,{size:"small",style:{padding:"0"},color:"primary",onClick:function(e){e.stopPropagation(),w(!_)},children:Object(L.jsx)(C.a,{})})}):null,Object(L.jsx)("div",{className:A.column,children:Object(L.jsx)(S.a,{badgeContent:$,color:"secondary",anchorOrigin:{vertical:"top",horizontal:"left"},children:Object(L.jsx)(j.a,{className:A.heading,onClick:function(e){e.stopPropagation()},children:t.command_name+" "+t.display_params})})})]})]})})}),Object(L.jsx)(y.a,{style:{cursor:"default"},children:Object(L.jsx)(E.a,{task:t})})]})})}},215:function(e,t,a){"use strict";a.d(t,"a",(function(){return ke}));var n,i,r,c=a(132),o=a.n(c),s=a(185),l=a(186),d=a(26),u=a(6),b=a(3),j=a(2),p=a(7),m=a(1),h=a.n(m),f=a(54),O=a(96),x=a(95),g=a(110),y=a(58),v=a(245),_=a(247),k=a(76),w=a(244),C=a(246),S=a(133),D=a(73),I=a(364),T=a(368),$=a(899),P=a(363),A=a(17),E=a(188),L=a.n(E),F=a(47),N=a.n(F),q=a(51),R=a(236),B=a.n(R),M=a(57),z=a(193),W=a(4),H=a(172),U=a(13),G=a(19),K=a(317),V=a(843),Q=a(0),J=Object(M.a)(n||(n=Object(p.a)(["\nmutation getDynamicParamsMutation($callback: Int!, $command: String!, $payload_type: String!, $parameter_name: String!){\n dynamic_query_function(callback: $callback, command: $command, payload_type: $payload_type, parameter_name: $parameter_name){\n status\n error\n choices\n }\n}\n"]))),Y=Object(M.a)(i||(i=Object(p.a)(["\nfragment credentialData on credential{\n account\n comment\n credential_text\n id\n realm\n type\n task_id\n timestamp\n deleted\n operator {\n username\n }\n}\n"]))),Z=Object(M.a)(r||(r=Object(p.a)(["\n","\nmutation createCredential($comment: String!, $account: String!, $realm: String!, $type: String!, $credential: bytea!) {\n insert_credential_one(object: {account: $account, credential_raw: $credential, comment: $comment, realm: $realm, type: $type}) {\n ...credentialData\n }\n }\n"])),Y);function X(e){var t=h.a.useState(""),a=Object(j.a)(t,2),n=a[0],i=a[1],r=Object(q.a)(),c=h.a.useState([]),o=Object(j.a)(c,2),s=o[0],l=o[1],p=h.a.useState(!1),O=Object(j.a)(p,2),x=O[0],g=O[1],E=h.a.useState([""]),F=Object(j.a)(E,2),R=F[0],M=F[1],Y=h.a.useState([]),X=Object(j.a)(Y,2),ee=X[0],te=X[1],ae=h.a.useState(""),ne=Object(j.a)(ae,2),ie=ne[0],re=ne[1],ce=h.a.useState([]),oe=Object(j.a)(ce,2),se=oe[0],le=oe[1],de=h.a.useState(0),ue=Object(j.a)(de,2),be=ue[0],je=ue[1],pe=h.a.useState(0),me=Object(j.a)(pe,2),he=me[0],fe=me[1],Oe=h.a.useState([]),xe=Object(j.a)(Oe,2),ge=xe[0],ye=xe[1],ve=h.a.useState(0),_e=Object(j.a)(ve,2),ke=_e[0],we=_e[1],Ce=h.a.useState([]),Se=Object(j.a)(Ce,2),De=Se[0],Ie=Se[1],Te=h.a.useState(0),$e=Object(j.a)(Te,2),Pe=$e[0],Ae=$e[1],Ee=h.a.useState(!1),Le=Object(j.a)(Ee,2),Fe=Le[0],Ne=Le[1],qe=h.a.useState(!1),Re=Object(j.a)(qe,2),Be=Re[0],Me=Re[1],ze=h.a.useState({name:""}),We=Object(j.a)(ze,2),He=We[0],Ue=We[1],Ge=h.a.useState(!1),Ke=Object(j.a)(Ge,2),Ve=Ke[0],Qe=Ke[1],Je=h.a.useRef(!1),Ye=Object(z.a)(J,{onCompleted:function(t){if("success"===t.dynamic_query_function.status)try{l(Object(u.a)(t.dynamic_query_function.choices)),Je.current=!0,"Choice"===e.type&&t.dynamic_query_function.choices.length>0&&(i(t.dynamic_query_function.choices[0]),e.onChange(e.name,t.dynamic_query_function.choices[0],!1))}catch(a){Qe(!1),W.b.warning("Failed to parse dynamic parameter results"),l([])}else W.b.warning(t.dynamic_query_function.error);Qe(!1)},onError:function(e){W.b.warning("Failed to perform dynamic parameter query"),console.log(e)}}),Ze=Object(j.a)(Ye,1)[0],Xe=Object(z.a)(Z,{fetchPolicy:"no-cache",onCompleted:function(t){W.b.success("Successfully created new credential"),e.addedCredential();var a=s.length;switch(l([].concat(Object(u.a)(s),[Object(b.a)({},t.insert_credential_one)])),e.type){case"Credential-JSON":i(a),e.onChange(e.name,Object(b.a)({},t.insert_credential_one),!1);break;case"Credential-Account":i(t.insert_credential_one.account),e.onChange(e.name,t.insert_credential_one.account,!1);break;case"Credential-Realm":i(t.insert_credential_one.realm),e.onChange(e.name,t.insert_credential_one.realm,!1);break;case"Credential-Type":i(t.insert_credential_one.type),e.onChange(e.name,t.insert_credential_one.type,!1);break;case"Credential-Credential":i(t.insert_credential_one.credential_text),e.onChange(e.name,t.insert_credential_one.credential_text,!1)}},onError:function(e){W.b.error("Failed to create credential"),console.log(e)}}),et=Object(j.a)(Xe,1)[0];Object(m.useEffect)((function(){if(null!==e.dynamic_query_function&&0===s.length&&(Qe(!0),Ze({variables:{callback:e.callback_id,parameter_name:e.name,command:e.commandInfo.cmd,payload_type:e.commandInfo.payloadtype.ptype}})),"Boolean"===e.type)""===n&&(g(e.value),i(e.value));else if("Array"===e.type)0===R.length&&e.value.length>0&&M(e.value);else if("ChoiceMultiple"===e.type&&null===e.dynamic_query_function)""===n&&(te(e.value),i(e.value),l(e.choices));else if("AgentConnect"===e.type)if(e.choices.length>0){var t=0;he0?e.choices[t].payloads[a].c2info.length>0&&Ie(e.choices[t].payloads[a].c2info):W.b.warning("Mythic knows of no host with a P2P payload. Please add one.")}else le([]),Ie([]),W.b.warning("Mythic knows of no host with a P2P payload. Please add one.");else""===n&&("Number"===e.type?""===e.value?i(0):i(parseInt(e.value)):i(e.value)),null===e.dynamic_query_function&&""===n?(l(Object(u.a)(e.choices)),i(e.value)):e.choices.length!=s.length&&(Je.current||l(Object(u.a)(e.choices)))}),[e.choices,e.default_value,e.type,e.value,g,n]);var tt=function(t,a,n){var i=e.choices[t].payloads[a].c2info[n].parameters.reduce((function(e,t){return Object(b.a)(Object(b.a)({},e),{},Object(d.a)({},t.name,t.value))}),{}),r={host:e.choices[t].host,agent_uuid:e.choices[t].payloads[a].uuid,c2_profile:{name:e.choices[t].payloads[a].c2info[n].name,parameters:i}};"callback"===e.choices[t].payloads[a].type?r.callback_uuid=e.choices[t].payloads[a].agent_callback_id:r.callback_uuid="",e.onChange(e.name,r,!1)},at=function(t){i(t.target.value),e.onChange(e.name,t.target.value,!1)},nt=function(t){i(t.target.value),e.onChange(e.name,s[t.target.value],!1)},it=function(t){for(var a=t.target.options,n=[],r=0,c=a.length;r0?(we(0),e.choices[t.target.value].payloads[0].c2info.length>0?(Ie(e.choices[0].payloads[0].c2info),Ae(0),tt(t.target.value,0,0)):(Ie([]),Ae(null))):(ye([]),we(null),Ie([]),Ae(null))},dt=function(t){we(t.target.value),Ie(e.choices[he].payloads[t.target.value].c2info),e.choices[he].payloads[t.target.value].c2info.length>0?(Ae(0),tt(he,t.target.value,0)):Ae(null)},ut=function(e){Ae(e.target.value),tt(he,ke,e.target.value)},bt=function(e,t,a){re(t)},jt=function(e){je(e.target.value)},pt=function(){""!==ie?(e.onAgentConnectAddNewPayloadOnHost(ie.toUpperCase(),e.payload_choices[be].id),Ne(!1)):W.b.error("Must set a hostname")},mt=function(){e.choices[he].payloads[ke].payloadOnHostID?e.onAgentConnectRemovePayloadOnHost(e.choices[he].payloads[ke].payloadOnHostID):W.b.warning("Can't remove a callback")},ht=function(t){return(e.required&&""!==e.verifier_regex||""!==e.verifier_regex&&""!==t)&&!RegExp(e.verifier_regex).test(t)},ft=function(){var t=[].concat(Object(u.a)(R),[""]);M(t),e.onChange(e.name,t,!1)},Ot=function(e){var t=e.type,a=e.account,n=e.realm,i=e.comment,r=e.credential;et({variables:{type:t,account:a,realm:n,comment:i,credential:r}})};return Object(Q.jsxs)(S.a,{children:[Object(Q.jsxs)(k.a,{children:[Object(Q.jsx)(G.a,{title:e.description.length>0?e.description:"No Description",children:e.display_name}),e.required?Object(Q.jsx)(y.a,{component:"div",style:{color:r.palette.warning.main},children:"Required"}):null]}),Object(Q.jsx)(k.a,{children:function(){switch(e.type){case"Choice":case"ChoiceMultiple":return Object(Q.jsxs)(h.a.Fragment,{children:[Object(Q.jsx)(K.a,{open:Ve,style:{zIndex:2,position:"absolute"},invisible:!1,children:Object(Q.jsx)(V.a,{color:"inherit"})}),Object(Q.jsx)(I.a,{style:{width:"100%"},children:Object(Q.jsx)(T.a,{native:!0,autoFocus:e.autoFocus,multiple:"ChoiceMultiple"===e.type,value:"ChoiceMultiple"===e.type?ee:n,onChange:"ChoiceMultiple"===e.type?it:at,input:Object(Q.jsx)(P.a,{}),children:s.map((function(t,a){return Object(Q.jsx)("option",{value:t,children:t},e.name+a)}))})})]});case"Array":return Object(Q.jsx)(w.a,{component:D.a,className:"mythicElement",children:Object(Q.jsx)(v.a,{size:"small",style:{tableLayout:"fixed",maxWidth:"100%",overflow:"auto"},children:Object(Q.jsxs)(_.a,{children:[R.map((function(t,a){return Object(Q.jsxs)(S.a,{hover:!0,children:[Object(Q.jsx)(k.a,{style:{width:"5rem"},children:Object(Q.jsx)(f.a,{onClick:function(){return function(t){var a=Object(u.a)(R);a.splice(t,1),M(a),e.onChange(e.name,a,!1)}(a)},style:{backgroundColor:r.palette.error.main},size:"small",variant:"contained",children:"x"})}),Object(Q.jsx)(k.a,{children:Object(Q.jsx)(A.a,{required:e.required,fullWidth:!0,placeholder:"",value:t,multiline:!1,autoFocus:e.autoFocus&&0===a,onChange:function(t,n,i){return function(t,a,n){var i=Object(u.a)(R);i[n]=t,M(i),e.onChange(e.name,i,!1)}(n,0,a)},display:"inline-block",onEnter:ft,validate:ht,errorText:"Must match: "+e.verifier_regex})})]},"array"+e.name+a)})),Object(Q.jsxs)(S.a,{hover:!0,children:[Object(Q.jsx)(k.a,{style:{width:"5rem"},children:Object(Q.jsx)(f.a,{onClick:ft,size:"small",variant:"contained",style:{backgroundColor:r.palette.success.main},children:"+"})}),Object(Q.jsx)(k.a,{})]})]})})});case"String":return Object(Q.jsx)(A.a,{required:e.required,placeholder:e.default_value,value:n,multiline:!1,onChange:rt,display:"inline-block",onEnter:e.onSubmit,autoFocus:e.autoFocus,validate:ht,errorText:"Must match: "+e.verifier_regex});case"Number":return Object(Q.jsx)(A.a,{required:e.required,placeholder:e.default_value,value:n,multiline:!1,type:"number",onChange:ct,display:"inline-block",onEnter:e.onSubmit,autoFocus:e.autoFocus,validate:ht,errorText:"Must match: "+e.verifier_regex});case"Boolean":return Object(Q.jsx)($.a,{checked:x,onChange:ot});case"File":return Object(Q.jsxs)(f.a,{variant:"contained",component:"label",children:[""===He.name?"Select File":He.name,Object(Q.jsx)("input",{onChange:st,type:"file",hidden:!0})," "]});case"LinkInfo":return Object(Q.jsx)(I.a,{children:Object(Q.jsx)(T.a,{native:!0,value:n,autoFocus:e.autoFocus,onChange:function(t){!function(t){var a,n=(a=e.choices[t].source.id===e.callback_id?e.choices[t].destination:e.choices[t].source).c2profileparametersinstances.reduce((function(a,n){return n.c2_profile_id===e.choices[t].c2profile.id?Object(b.a)(Object(b.a)({},a),{},Object(d.a)({},n.c2profileparameter.name,n.c2profileparameter.crypto_type?{crypto_type:n.c2profileparameter.crypto_type,enc_key:n.enc_key,dec_key:n.dec_key}:n.value)):Object(b.a)({},a)}),{}),r={host:a.host,agent_uuid:a.payload.uuid,callback_uuid:a.agent_callback_id,c2_profile:{name:e.choices[t].c2profile.name,parameters:n}};e.onChange(e.name,r,!1),i(t)}(t.target.value)},input:Object(Q.jsx)(P.a,{}),children:e.choices.map((function(t,a){return Object(Q.jsx)("option",{value:a,children:t.display},e.name+a)}))})});case"PayloadList":return Object(Q.jsx)(I.a,{children:Object(Q.jsx)(T.a,{native:!0,value:n,autoFocus:e.autoFocus,onChange:at,input:Object(Q.jsx)(P.a,{}),children:e.choices.map((function(t,a){return Object(Q.jsx)("option",{value:t.uuid,children:t.display},e.name+a)}))})});case"AgentConnect":return Object(Q.jsxs)(w.a,{component:D.a,className:"mythicElement",children:[Object(Q.jsx)(v.a,{size:"small",style:{tableLayout:"fixed",maxWidth:"100%",overflow:"auto"},children:Object(Q.jsxs)(_.a,{children:[Fe?Object(Q.jsxs)(h.a.Fragment,{children:[Object(Q.jsxs)(S.a,{children:[Object(Q.jsx)(k.a,{style:{width:"6em"},children:"Hostname"}),Object(Q.jsx)(k.a,{children:Object(Q.jsx)(A.a,{required:!0,placeholder:"hostname",value:ie,multiline:!1,autoFocus:e.autoFocus,onChange:bt,display:"inline-block"})})]}),Object(Q.jsxs)(S.a,{children:[Object(Q.jsx)(k.a,{children:"Payload on that host"}),Object(Q.jsx)(k.a,{children:Object(Q.jsx)(I.a,{children:Object(Q.jsx)(T.a,{native:!0,value:be,onChange:jt,input:Object(Q.jsx)(P.a,{}),children:e.payload_choices?e.payload_choices.map((function(t,a){return Object(Q.jsx)("option",{value:a,children:t.display},e.name+"newpayload"+a)})):Object(Q.jsx)("option",{value:"-1",children:"No Payloads"},e.name+"nooptionnewpayload")})})})]}),Object(Q.jsxs)(S.a,{children:[Object(Q.jsx)(k.a,{children:Object(Q.jsxs)(f.a,{component:"span",style:{color:r.palette.success.main,padding:0},onClick:pt,children:[Object(Q.jsx)(L.a,{}),"Add"]})}),Object(Q.jsx)(k.a,{children:Object(Q.jsxs)(f.a,{component:"span",style:{color:r.palette.warning.main,padding:0},onClick:function(){Ne(!1)},children:[Object(Q.jsx)(B.a,{}),"Cancel"]})})]})]}):null,Object(Q.jsxs)(S.a,{children:[Object(Q.jsx)(k.a,{style:{width:"6em"},children:"Host"}),Object(Q.jsx)(k.a,{children:Object(Q.jsx)(I.a,{children:Object(Q.jsx)(T.a,{native:!0,value:he,onChange:lt,input:Object(Q.jsx)(P.a,{}),children:se.map((function(t,a){return Object(Q.jsx)("option",{value:a,children:t.host},e.name+"connecthost"+a)}))})})})]}),Object(Q.jsxs)(S.a,{children:[Object(Q.jsx)(k.a,{children:"Payload"}),Object(Q.jsx)(k.a,{children:Object(Q.jsx)(I.a,{children:Object(Q.jsx)(T.a,{native:!0,value:ke,onChange:dt,input:Object(Q.jsx)(P.a,{}),children:ge.map((function(t,a){return Object(Q.jsx)("option",{value:a,children:t.display},e.name+"connectagent"+a)}))})})})]}),!Fe&&Object(Q.jsxs)(S.a,{children:[Object(Q.jsx)(k.a,{children:Object(Q.jsxs)(f.a,{component:"span",style:{color:r.palette.success.main,padding:0},onClick:function(){Ne(!0)},children:[Object(Q.jsx)(L.a,{}),"Add"]})}),Object(Q.jsx)(k.a,{children:Object(Q.jsxs)(f.a,{component:"span",style:{color:r.palette.error.main,padding:0},onClick:mt,children:[Object(Q.jsx)(N.a,{}),"Remove"]})})]}),Object(Q.jsxs)(S.a,{children:[Object(Q.jsx)(k.a,{children:"C2 Profile"}),Object(Q.jsx)(k.a,{children:Object(Q.jsx)(I.a,{children:Object(Q.jsx)(T.a,{native:!0,value:Pe,onChange:ut,input:Object(Q.jsx)(P.a,{}),children:De.map((function(t,a){return Object(Q.jsx)("option",{value:a,children:t.name},e.name+"connectprofile"+a)}))})})})]})]})}),De.length>0?Object(Q.jsxs)(v.a,{size:"small",style:{tableLayout:"fixed",maxWidth:"100%",overflow:"scroll"},children:[Object(Q.jsx)(C.a,{children:Object(Q.jsxs)(S.a,{children:[Object(Q.jsx)(k.a,{style:{width:"30%"},children:"Parameter"}),Object(Q.jsx)(k.a,{children:"Value"})]})}),Object(Q.jsx)(_.a,{children:De[Pe].parameters.map((function(t,a){return Object(Q.jsxs)(S.a,{children:[Object(Q.jsx)(k.a,{children:t.name}),Object(Q.jsx)(k.a,{children:Object(Q.jsx)("pre",{children:JSON.stringify(t.value,null,2)})})]},"agentconnectparameters"+e.name+a)}))})]}):null]});case"Credential-JSON":return Object(Q.jsxs)(h.a.Fragment,{children:[Object(Q.jsx)(U.a,{fullWidth:!0,maxWidth:"md",open:Be,onClose:function(){Me(!1)},innerDialog:Object(Q.jsx)(H.a,{onSubmit:Ot,onClose:function(){Me(!1)}})}),Object(Q.jsx)(I.a,{style:{width:"100%"},children:Object(Q.jsx)(T.a,{native:!0,value:n,autoFocus:e.autoFocus,onChange:nt,input:Object(Q.jsx)(P.a,{}),children:s.map((function(t,a){return Object(Q.jsx)("option",{value:a,children:t.account+"@"+t.realm+" - "+t.credential_text.substring(0,10)+" - "+t.comment},e.name+a)}))})}),Object(Q.jsx)(f.a,{size:"small",color:"primary",onClick:function(){Me(!0)},variant:"contained",children:"New Credential"})]});case"Credential-Account":return Object(Q.jsxs)(h.a.Fragment,{children:[Object(Q.jsx)(U.a,{fullWidth:!0,maxWidth:"md",open:Be,onClose:function(){Me(!1)},innerDialog:Object(Q.jsx)(H.a,{onSubmit:Ot,onClose:function(){Me(!1)}})}),Object(Q.jsx)(I.a,{style:{width:"100%"},children:Object(Q.jsx)(T.a,{native:!0,value:n,autoFocus:e.autoFocus,onChange:at,input:Object(Q.jsx)(P.a,{}),children:s.map((function(t,a){return Object(Q.jsx)("option",{value:t.account,children:t.comment.length>0?t.comment+" ( "+t.account+" )":t.account},e.name+a)}))})}),Object(Q.jsx)(f.a,{size:"small",color:"primary",onClick:function(){Me(!0)},variant:"contained",children:"New Credential"})]});case"Credential-Realm":return Object(Q.jsxs)(h.a.Fragment,{children:[Object(Q.jsx)(U.a,{fullWidth:!0,maxWidth:"md",open:Be,onClose:function(){Me(!1)},innerDialog:Object(Q.jsx)(H.a,{onSubmit:Ot,onClose:function(){Me(!1)}})}),Object(Q.jsx)(I.a,{style:{width:"100%"},children:Object(Q.jsx)(T.a,{native:!0,value:n,autoFocus:e.autoFocus,onChange:at,input:Object(Q.jsx)(P.a,{}),children:s.map((function(t,a){return Object(Q.jsx)("option",{value:t.realm,children:t.comment.length>0?t.comment+" ( "+t.realm+" )":t.realm},e.name+a)}))})}),Object(Q.jsx)(f.a,{size:"small",color:"primary",onClick:function(){Me(!0)},variant:"contained",children:"New Credential"})]});case"Credential-Type":return Object(Q.jsxs)(h.a.Fragment,{children:[Object(Q.jsx)(U.a,{fullWidth:!0,maxWidth:"md",open:Be,onClose:function(){Me(!1)},innerDialog:Object(Q.jsx)(H.a,{onSubmit:Ot,onClose:function(){Me(!1)}})}),Object(Q.jsx)(I.a,{style:{width:"100%"},children:Object(Q.jsx)(T.a,{native:!0,value:n,autoFocus:e.autoFocus,onChange:at,input:Object(Q.jsx)(P.a,{}),children:s.map((function(t,a){return Object(Q.jsx)("option",{value:t.type,children:t.type},e.name+a)}))})}),Object(Q.jsx)(f.a,{size:"small",color:"primary",onClick:function(){Me(!0)},variant:"contained",children:"New Credential"})]});case"Credential-Credential":return Object(Q.jsxs)(h.a.Fragment,{children:[Object(Q.jsx)(U.a,{fullWidth:!0,maxWidth:"md",open:Be,onClose:function(){Me(!1)},innerDialog:Object(Q.jsx)(H.a,{onSubmit:Ot,onClose:function(){Me(!1)}})}),Object(Q.jsx)(I.a,{style:{width:"100%"},children:Object(Q.jsx)(T.a,{native:!0,value:n,autoFocus:e.autoFocus,onChange:at,input:Object(Q.jsx)(P.a,{}),children:s.map((function(t,a){return Object(Q.jsx)("option",{value:t.credential_text,style:{textOverflow:"ellipsis"},children:t.comment.length>0?t.comment+" ( "+t.credential_text+" )":t.credential_text},e.name+a)}))})}),Object(Q.jsx)(f.a,{size:"small",color:"primary",onClick:function(){Me(!0)},variant:"contained",children:"New Credential"})]});default:return null}}()})]},"buildparam"+e.id)}var ee,te,ae,ne,ie,re,ce,oe,se,le=a(249),de=a(191),ue=a(827),be=a(366),je=function(){var e=Object(l.a)(o.a.mark((function e(t){var a,n,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(a=new FormData).append("file",t),W.b.info("Uploading "+t.name+" to Mythic...",{autoHideDuration:2e3}),e.next=5,fetch("/api/v1.4/task_upload_file_webhook",{method:"POST",body:a,headers:{Authorization:"Bearer ".concat(localStorage.getItem("acess_token"))}});case 5:return n=e.sent,i=n.json().then((function(e){return console.log(e),(null===e||void 0===e?void 0:e.agent_file_id)||(null===e||void 0===e?void 0:e.error)||null})).catch((function(e){return console.log(n),W.b.warning("Error: "+n.statusText+"\nError Code: "+n.status),console.log("Error trying to get json response",e.toString()),null})),e.abrupt("return",i);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),pe=a(845),me=Object(M.a)(ee||(ee=Object(p.a)(["\nquery GetLoadedCommandsQuery($callback_id: Int!) {\n loadedcommands(where: {callback_id: {_eq: $callback_id}}) {\n id\n command {\n cmd\n attributes\n id\n }\n }\n}\n"]))),he=Object(M.a)(te||(te=Object(p.a)(["\nquery getAllCommandsQuery($payload_type_id: Int!){\n command(where: {payload_type_id: {_eq: $payload_type_id}, deleted: {_eq: false}}) {\n attributes\n cmd\n id\n }\n}\n"]))),fe=Object(M.a)(ae||(ae=Object(p.a)(["\nquery getAllEdgesQuery($callback_id: Int!){\n callbackgraphedge(where: {_or: [{source_id:{_eq: $callback_id}}, {destination_id: {_eq: $callback_id}}]}) {\n id\n c2profile {\n id\n name\n }\n direction\n destination{\n agent_callback_id\n host\n id\n payload {\n id\n uuid\n }\n c2profileparametersinstances {\n enc_key_base64\n dec_key_base64\n value\n id\n c2_profile_id\n c2profileparameter {\n crypto_type\n name\n id\n }\n }\n }\n source{\n agent_callback_id\n host\n id\n payload {\n uuid\n id\n }\n c2profileparametersinstances {\n enc_key_base64\n dec_key_base64\n c2_profile_id\n value\n id\n c2profileparameter {\n crypto_type\n name\n id\n }\n }\n }\n end_timestamp\n }\n }\n"]))),Oe=Object(M.a)(ne||(ne=Object(p.a)(['\nquery getAllPayloadsQuery($operation_id: Int!){\n payload(where: {deleted: {_eq: false}, build_phase: {_eq: "success"}, operation_id: {_eq: $operation_id}}) {\n id\n tag\n uuid\n payloadc2profiles {\n id\n c2profile {\n name\n id\n is_p2p\n }\n }\n payloadtype{\n id\n ptype\n }\n filemetum {\n id\n filename_text\n }\n buildparameterinstances {\n parameter\n id\n buildparameter {\n name\n id\n }\n }\n }\n}\n']))),xe=Object(M.a)(ie||(ie=Object(p.a)(["\nquery getAllPayloadsOnHostsQuery($operation_id: Int!){\n payloadonhost(where: {deleted: {_eq: false}, operation_id: {_eq: $operation_id}, payload: {c2profileparametersinstances: {c2profile: {is_p2p: {_eq: true}}}}}) {\n host\n id\n payload {\n auto_generated\n id\n tag\n filemetum {\n filename_text\n id\n }\n uuid\n c2profileparametersinstances(where: {c2profile: {is_p2p: {_eq: true}}}) {\n c2profile {\n name\n id\n }\n c2profileparameter {\n crypto_type\n name\n id\n }\n value\n enc_key_base64\n dec_key_base64\n id\n }\n }\n }\n callback(where: {active: {_eq: true}, operation_id: {_eq: $operation_id}, c2profileparametersinstances: {c2profile: {is_p2p: {_eq: true}}}}){\n agent_callback_id\n host\n id\n description\n crypto_type\n payload {\n auto_generated\n id\n tag\n filemetum {\n filename_text\n id\n }\n uuid\n }\n c2profileparametersinstances(where: {c2profile: {is_p2p: {_eq: true}}}) {\n c2profile {\n name\n id\n }\n c2profileparameter {\n crypto_type\n name\n id\n }\n value\n enc_key_base64\n dec_key_base64\n id\n }\n }\n}\n"]))),ge=Object(M.a)(re||(re=Object(p.a)(["\n mutation addPayloadOnHostMutation($host: String!, $payload_id: Int!){\n insert_payloadonhost(objects: {host: $host, payload_id: $payload_id}) {\n affected_rows\n }\n }\n"]))),ye=Object(M.a)(ce||(ce=Object(p.a)(["\n mutation removePayloadOnHostMutation($payloadOnHostID: Int!){\n delete_payloadonhost_by_pk(id: $payloadOnHostID) {\n id\n }\n }\n"]))),ve=Object(M.a)(oe||(oe=Object(p.a)(["\nquery getCommandQuery($id: Int!){\n command_by_pk(id: $id) {\n attributes\n author\n cmd\n description\n help_cmd\n id\n needs_admin\n version\n payloadtype{\n ptype\n }\n commandparameters {\n choice_filter_by_command_attributes\n choices\n choices_are_all_commands\n choices_are_loaded_commands\n default_value\n description\n id\n name\n required\n supported_agent_build_parameters\n supported_agents\n type\n dynamic_query_function\n ui_position\n parameter_group_name\n display_name\n cli_name\n }\n commandopsec {\n authentication\n id\n injection_method\n process_creation\n }\n }\n}\n"]))),_e=Object(M.a)(se||(se=Object(p.a)(["\nquery getCredentialsQuery($operation_id: Int!){\n credential(where: {deleted: {_eq: false}, operation_id: {_eq: $operation_id}}){\n account\n comment\n credential_text\n id\n realm\n type\n }\n}\n"])));function ke(e){var t=Object(q.a)(),a=h.a.useState(!1),n=Object(j.a)(a,2),i=n[0],r=n[1],c=Object(m.useState)({}),p=Object(j.a)(c,2),T=p[0],$=p[1],A=Object(m.useState)([]),E=Object(j.a)(A,2),L=E[0],F=E[1],N=Object(m.useState)("Default"),R=Object(j.a)(N,2),B=R[0],M=R[1],W=Object(m.useState)([]),H=Object(j.a)(W,2),U=H[0],G=H[1],J=Object(m.useState)(!1),Y=Object(j.a)(J,2),Z=Y[0],ee=Y[1],te=Object(m.useState)({all:!1,loaded:!1,edges:!1,credentials:!1}),ae=Object(j.a)(te,2),ne=ae[0],ie=ae[1],re=Object(le.a)(he,{fetchPolicy:"no-cache"}),ce=Object(j.a)(re,2),oe=ce[0],se=ce[1].data,ke=Object(le.a)(me,{fetchPolicy:"no-cache"}),we=Object(j.a)(ke,2),Ce=we[0],Se=we[1].data,De=Object(le.a)(fe,{fetchPolicy:"no-cache"}),Ie=Object(j.a)(De,2),Te=Ie[0],$e=Ie[1].data,Pe=Object(le.a)(Oe,{fetchPolicy:"no-cache"}),Ae=Object(j.a)(Pe,2),Ee=Ae[0],Le=Ae[1].data,Fe=Object(le.a)(xe,{fetchPolicy:"no-cache"}),Ne=Object(j.a)(Fe,2),qe=Ne[0],Re=Ne[1].data,Be=Object(le.a)(_e,{fetchPolicy:"no-cache"}),Me=Object(j.a)(Be,2),ze=Me[0],We=Me[1].data,He=Object(z.a)(ge,{onCompleted:function(t){qe({variables:{operation_id:e.operation_id}})}}),Ue=Object(j.a)(He,1)[0],Ge=Object(z.a)(ye,{onCompleted:function(t){qe({variables:{operation_id:e.operation_id}})}}),Ke=Object(j.a)(Ge,1)[0];Object(de.a)(ve,{variables:{id:e.command.id},fetchPolicy:"no-cache",onCompleted:function(t){var a={all:!1,loaded:!1,edges:!1,credentials:!1},n=[];t.command_by_pk.commandparameters.forEach((function(e){n.includes(e.parameter_group_name)||n.push(e.parameter_group_name),"LinkInfo"===e.type?a.edges=!0:e.choices_are_all_commands?a.all=!0:e.choices_are_loaded_commands?a.loaded=!0:"AgentConnect"===e.type?(a.connect=!0,a.payloads=!0):"PayloadList"===e.type?a.payloads=!0:e.type.includes("Credential")&&(a.credentials=!0)})),n.sort(),F(n),e.command.groupName&&n.includes(e.command.groupName)?M(e.command.groupName):n.includes("Default")||M(n[0]),$(Object(b.a)({},t.command_by_pk)),a.edges&&Te({variables:{callback_id:e.callback_id}}),a.all&&oe({variables:{payload_type_id:e.payloadtype_id}}),a.loaded&&Ce({variables:{callback_id:e.callback_id}}),a.payloads&&Ee({variables:{operation_id:e.operation_id}}),a.connect&&qe({variables:{operation_id:e.operation_id}}),a.credentials&&ze({variables:{operation_id:e.operation_id}}),ie(a),ee(Object(b.a)({},t))}});var Ve=function(){ze({variables:{operation_id:e.operation_id}})},Qe=function(e,t){var a=new Set(t);return Object(u.a)(new Set(e)).filter((function(e){return a.has(e)}))};Object(m.useEffect)((function(){var t=function(t){if(t.length>0){var a=t[0].payloads[0].c2info[0].parameters.reduce((function(e,t){return Object(b.a)(Object(b.a)({},e),{},Object(d.a)({},t.name,t.value))}),{}),n={host:t[0].host,agent_uuid:t[0].payloads[0].uuid,c2_profile:{name:t[0].payloads[0].c2info[0].name,parameters:a}};return"callback"===t[0].payloads[0].type&&(n.callback_uuid=e.choices[0].payloads[0].agent_callback_id),n}return{}},a=function(t){var a;if(t.length>0){var n=(a=t[0].source.id===e.callback_id?t[0].destination:t[0].source).c2profileparametersinstances.reduce((function(e,a){return a.c2_profile_id===t[0].c2profile.id?Object(b.a)(Object(b.a)({},e),{},Object(d.a)({},a.c2profileparameter.name,a.c2profileparameter.crypto_type?{crypto_type:a.c2profileparameter.crypto_type,enc_key:a.enc_key_base64,dec_key:a.dec_key_base64}:a.value)):Object(b.a)({},e)}),{});return{host:a.host,agent_uuid:a.payload.uuid,callback_uuid:a.agent_callback_id,c2_profile:{name:t[0].c2profile.name,parameters:n}}}return{}};if(Z&&(!ne.loaded||Se)&&(!ne.all||se)&&(!ne.edges||$e)&&(!ne.payloads||Le)&&(!ne.connect||Re)&&(!ne.credentials||We)){var n=Z.command_by_pk.commandparameters.reduce((function(n,i){if(i.parameter_group_name!==B)return Object(u.a)(n);switch(i.type){case"Boolean":return i.name in e.command.parsedParameters?[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{value:e.command.parsedParameters[i.name]})]):i.default_value?[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{value:"true"===i.default_value.toLowerCase()})]):[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{value:!1})]);case"String":return i.name in e.command.parsedParameters?[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{value:e.command.parsedParameters[i.name]})]):[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{value:i.default_value})]);case"Number":return i.name in e.command.parsedParameters?[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{value:e.command.parsedParameters[i.name]})]):[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{value:""===i.default_value?0:parseInt(i.default_value)})]);case"Array":return i.name in e.command.parsedParameters?[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{value:e.command.parsedParameters[i.name]})]):i.default_value.length>0?[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{value:JSON.parse(i.default_value)})]):[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{value:[]})]);case"Choice":case"ChoiceMultiple":var r=i.choices.split("\n"),c=i.default_value;"ChoiceMultiple"===i.type?c=""!==i.default_value?JSON.parse(i.default_value):[]:r.length>0&&(c=""===i.default_value?r[0]:i.default_value);var o=JSON.parse(i.choice_filter_by_command_attributes);return i.choices_are_all_commands?((r=(r=Object(u.a)(se.command)).reduce((function(e,t){for(var a=!0,n=JSON.parse(t.attributes),i=0,r=Object.entries(o);i0&&0===Qe(l,n[s]).length&&(a=!1)}return a?[].concat(Object(u.a)(e),[t.cmd]):Object(u.a)(e)}),[])).sort(),r.length>0&&(c="ChoiceMultiple"===i.type?[]:r[0])):i.choices_are_loaded_commands&&(r=(r=Object(u.a)(Se.loadedcommands)).reduce((function(e,t){for(var a=!0,n=JSON.parse(t.command.attributes),i=0,r=Object.entries(o);i0&&0===Qe(l,n[s]).length&&(a=!1)}return a?[].concat(Object(u.a)(e),[t.command.cmd]):Object(u.a)(e)}),[])).length>0&&(c="ChoiceMultiple"===i.type?[]:r[0]),i.name in e.command.parsedParameters?[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{choices:r,value:e.command.parsedParameters[i.name]})]):[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{choices:r,default_value:c,value:c})]);case"File":return[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{value:{}})]);case"Credential-JSON":return We.credential.length>0?[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{value:We.credential[0],choices:We.credential})]):[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{value:{},choices:[]})]);case"Credential-Account":return We.credential.length>0?[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{value:We.credential[0].account,choices:We.credential})]):[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{value:"",choices:[]})]);case"Credential-Realm":return We.credential.length>0?[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{value:We.credential[0].realm,choices:We.credential})]):[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{value:"",choices:[]})]);case"Credential-Type":return We.credential.length>0?[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{value:We.credential[0].type,choices:We.credential})]):[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{value:"",choices:[]})]);case"Credential-Credential":return We.credential.length>0?[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{value:We.credential[0].credential_text,choices:We.credential})]):[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{value:"",choices:[]})]);case"AgentConnect":var s=Le.payload.reduce((function(e,t){var a=!1,n=t.payloadc2profiles.reduce((function(e,t){return t.c2profile.is_p2p&&(a=!0),[].concat(Object(u.a)(e),[t.c2profile.name])}),[]).join(",");return a?[].concat(Object(u.a)(e),[Object(b.a)(Object(b.a)({},t),{},{display:t.filemetum.filename_text+" - "+n+" - "+t.tag})]):Object(u.a)(e)}),[]),l=Re.callback.reduce((function(e,t){var a=!1,n=e.map((function(e){if(e.host===t.host){a=!0;for(var n=t.c2profileparametersinstances.reduce((function(e,t){var a=t.c2profileparameter.crypto_type?{crypto_type:t.value,enc_key:t.enc_key_base64,dec_key:t.dec_key_base64}:t.value;return t.c2profile.name in e?Object(b.a)(Object(b.a)({},e),{},Object(d.a)({},t.c2profile.name,[].concat(Object(u.a)(e[t.c2profile.name]),[{name:t.c2profileparameter.name,value:a}]))):Object(b.a)(Object(b.a)({},e),{},Object(d.a)({},t.c2profile.name,[{name:t.c2profileparameter.name,value:a}]))}),{}),i=[],r=0,c=Object.entries(n);r-1?(e[a].payloads=[].concat(Object(u.a)(e[a].payloads),Object(u.a)(t.payloads)),Object(u.a)(e)):[].concat(Object(u.a)(e),[Object(b.a)({},t)])}),Object(u.a)(p));return console.log("updating choices and payload choices",m,s),[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{choices:m,payload_choices:s,value:t(p)})]);case"PayloadList":var h=i.supported_agents.split(",");-1!==h.indexOf("")&&h.splice(h.indexOf(""));var f=JSON.parse(i.supported_agent_build_parameters),O=Le.payload.reduce((function(e,t){var a=t.payloadc2profiles.reduce((function(e,t){return[].concat(Object(u.a)(e),[t.c2profile.name])}),[]).join(",");if(h.length>0&&!h.includes(t.payloadtype.ptype))return e;var n=!0;if(t.payloadtype.ptype in f)for(var i=function(){var e=Object(j.a)(c[r],2),a=e[0],i=e[1];t.buildparameterinstances.forEach((function(e){e.buildparameter.name===a&&e.parameter!==i&&(n=!1)}))},r=0,c=Object.entries(f[t.payloadtype.ptype]);r0?[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{choices:O,default_value:O[0].uuid,value:O[0].uuid})]):[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{choices:O,value:null})]);case"LinkInfo":var x=$e.callbackgraphedge.reduce((function(e,t){return t.source.id===t.destination.id?e:1===t.direction?[].concat(Object(u.a)(e),[Object(b.a)(Object(b.a)({},t),{},{display:"Callback "+t.source.id+" --"+t.c2profile.name+"--\x3e Callback "+t.destination.id+(null===t.end_timestamp?"(Active)":"(Dead at "+t.end_timestamp+")")})]):2===t.direction?[].concat(Object(u.a)(e),[Object(b.a)(Object(b.a)({},t),{},{display:"Callback "+t.destination.id+"-> "+t.c2profile.name+"--\x3e Callback "+t.source.id+(null===t.end_timestamp?"(Active)":"(Dead at "+t.end_timestamp+")")})]):e}),[]);return x.length>0?[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{choices:x,value:a(x)})]):[].concat(Object(u.a)(n),[Object(b.a)(Object(b.a)({},i),{},{choices:x,value:{}})]);default:return[].concat(Object(u.a)(n),[Object(b.a)({},i)])}}),[]).sort((function(e,t){return e.ui_position>t.ui_position?1:-1}));n.length>0&&(n[0].autoFocus=!0),G(n)}}),[B,Z,Se,se,$e,ne,Le,We,Re,e.callback_id,e.choices]);var Je=function(){var t=Object(l.a)(o.a.mark((function t(){var a,n,i,c,l,d;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a=[],n={},i=Object(s.a)(U),t.prev=3,i.s();case 5:if((c=i.n()).done){t.next=29;break}l=c.value,t.t0=l.type,t.next="String"===t.t0||"Boolean"===t.t0||"Number"===t.t0||"Choice"===t.t0||"ChoiceMultiple"===t.t0||"Credential-Account"===t.t0||"Credential-Realm"===t.t0||"Credential-Type"===t.t0||"Credential-Credential"===t.t0||"AgentConnect"===t.t0||"PayloadList"===t.t0||"Array"===t.t0||"LinkInfo"===t.t0?10:"File"===t.t0?12:"Credential-JSON"===t.t0?24:26;break;case 10:return n[l.name]=l.value,t.abrupt("break",27);case 12:return r(!0),t.next=15,je(l.value);case 15:if(!(d=t.sent)){t.next=21;break}a.push(d),n[l.name]=d,t.next=23;break;case 21:return r(!1),t.abrupt("return");case 23:return t.abrupt("break",27);case 24:return n[l.name]={account:l.value.account,comment:l.value.comment,credential:l.value.credential_text,realm:l.value.realm,type:l.value.type},t.abrupt("break",27);case 26:console.log("Unknown parameter type");case 27:t.next=5;break;case 29:t.next=34;break;case 31:t.prev=31,t.t1=t.catch(3),i.e(t.t1);case 34:return t.prev=34,i.f(),t.finish(34);case 37:r(!1),e.onSubmit(e.command.cmd,JSON.stringify(n),a,B);case 39:case"end":return t.stop()}}),t,null,[[3,31,34,37]])})));return function(){return t.apply(this,arguments)}}(),Ye=function(e,t){Ue({variables:{host:e,payload_id:t}})},Ze=function(e){Ke({variables:{payloadOnHostID:e}})},Xe=function(e,t,a){var n=U.map((function(a){return a.name===e?Object(b.a)(Object(b.a)({},a),{},{value:t}):Object(b.a)({},a)}));G(n)};return Object(Q.jsxs)(h.a.Fragment,{children:[Object(Q.jsxs)(g.a,{id:"form-dialog-title",children:[T.cmd,"'s Parameters"]}),Object(Q.jsxs)(x.a,{dividers:!0,children:[Object(Q.jsx)(K.a,{open:i,style:{zIndex:2,position:"absolute"},children:Object(Q.jsx)(V.a,{color:"inherit"})}),Object(Q.jsxs)(y.a,{component:"div",children:[Object(Q.jsx)("b",{children:"Description"})," ",Object(Q.jsx)("pre",{style:{margin:0,wordBreak:"break-all",overflow:"word-wrap",whiteSpace:"pre-wrap"},children:T.description}),Object(Q.jsx)("br",{}),Object(Q.jsx)(pe.a,{}),Object(Q.jsx)("b",{children:"Requires Admin?"}),Object(Q.jsx)("pre",{style:{margin:0},children:T.needs_admin?"True":"False"}),Object(Q.jsx)("br",{}),Object(Q.jsx)(pe.a,{}),L.length>1&&Object(Q.jsx)(I.a,{style:{width:"100%"},children:Object(Q.jsx)(ue.a,{select:!0,label:"Parameter Group",value:B,onChange:function(e){M(e.target.value)},input:Object(Q.jsx)(P.a,{}),children:L.map((function(e,t){return Object(Q.jsx)(be.a,{value:e,children:e},"paramgroup"+t)}))})})]}),Object(Q.jsx)(w.a,{component:D.a,elevation:5,className:"mythicElement",style:{backgroundColor:t.tableHover,marginTop:"10px"},children:Object(Q.jsxs)(v.a,{size:"small",style:{tableLayout:"fixed",maxWidth:"100%",overflow:"scroll"},children:[Object(Q.jsx)(C.a,{children:Object(Q.jsxs)(S.a,{children:[Object(Q.jsx)(k.a,{style:{width:"30%"},children:"Parameter"}),Object(Q.jsx)(k.a,{children:"Value"})]})}),Object(Q.jsx)(_.a,{children:U.map((function(t){return Object(Q.jsx)(X,Object(b.a)(Object(b.a)({onSubmit:Je,onChange:Xe,commandInfo:T},t),{},{callback_id:e.callback_id,onAgentConnectAddNewPayloadOnHost:Ye,onAgentConnectRemovePayloadOnHost:Ze,addedCredential:Ve}),"taskparameterrow"+t.id)}))})]})})]}),Object(Q.jsxs)(O.a,{children:[Object(Q.jsx)(f.a,{onClick:e.onClose,variant:"contained",color:"primary",children:"Close"}),Object(Q.jsx)(f.a,{onClick:Je,variant:"contained",color:"secondary",children:"Submit"})]})]})}},219:function(e,t,a){"use strict";a.d(t,"a",(function(){return O}));var n=a(6),i=a(2),r=a(1),c=a.n(r),o=a(54),s=a(96),l=a(95),d=a(110),u=a(366),b=a(364),j=a(368),p=a(365),m=a(363),h=a(51),f=a(0);function O(e){var t=c.a.useState([]),a=Object(i.a)(t,2),O=a[0],x=a[1],g=c.a.useState(""),y=Object(i.a)(g,2),v=y[0],_=y[1],k=Object(r.useRef)(null),w=Object(h.a)();return Object(r.useEffect)((function(){var t=Object(n.a)(e.options);x(t),t.length>0?_(t[0]):_("")}),[e.options]),Object(f.jsxs)(c.a.Fragment,{children:[Object(f.jsx)(d.a,{children:e.title}),Object(f.jsx)(l.a,{dividers:!0,children:Object(f.jsx)(c.a.Fragment,{children:Object(f.jsxs)(b.a,{style:{width:"100%"},children:[Object(f.jsx)(p.a,{ref:k,children:"Options"}),Object(f.jsxs)(j.a,{labelId:"demo-dialog-select-label",id:"demo-dialog-select",value:v,onChange:function(e){_(e.target.value)},input:Object(f.jsx)(m.a,{style:{width:"100%"}}),children:[Object(f.jsx)(u.a,{value:"",children:Object(f.jsx)("em",{children:"None"})}),O.map((function(t){return Object(f.jsx)(u.a,{value:t,children:t[e.display]},t[e.identifier])}))]})]})})}),Object(f.jsxs)(s.a,{children:[Object(f.jsx)(o.a,{onClick:e.onClose,variant:"contained",color:"primary",children:"Close"}),Object(f.jsx)(o.a,{onClick:function(){e.onSubmit(v),e.dontCloseOnSubmit||e.onClose()},variant:"contained",style:{backgroundColor:w.palette.success.main},children:e.action})]})]})}},294:function(e,t,a){"use strict";a.d(t,"a",(function(){return h}));var n=a(2),i=a(1),r=a.n(i),c=a(54),o=a(96),s=a(95),l=a(847),d=a(295),u=a.n(d),b=a(480),j=a.n(b),p=a(51),m=a(0);function h(e){var t=e.onClose,a=e.images,i=e.startIndex,d=r.a.useState(!1),b=Object(n.a)(d,2),h=b[0],f=b[1],O=Object(p.a)(),x=r.a.useState(i||0),g=Object(n.a)(x,2),y=g[0],v=g[1],_=(null===a||void 0===a?void 0:a.length)||1;return Object(m.jsxs)(r.a.Fragment,{children:[Object(m.jsx)(s.a,{dividers:!0,style:{padding:0},children:Object(m.jsx)("div",{style:{height:"calc(80vh)",display:h?"":"flex",alignItems:h?"":"center",background:"dark"===O.palette.type?"rgb(44, 52, 60)":"grey"},children:Object(m.jsx)("img",{onClick:function(){f(!h)},src:"/api/v1.4/files/screencaptures/"+a[y],style:{width:h?"":"100%",cursor:h?"zoom-out":"zoom-in",overflow:"auto"}})})}),Object(m.jsx)(l.a,{variant:"text",steps:_,position:"static",activeStep:y,nextButton:Object(m.jsxs)(c.a,{size:"small",onClick:function(){v((function(e){return e+1}))},disabled:y===_-1,children:["Next",Object(m.jsx)(u.a,{})]}),backButton:Object(m.jsxs)(c.a,{size:"small",onClick:function(){v((function(e){return e-1}))},disabled:0===y,children:[Object(m.jsx)(j.a,{}),"Back"]})}),Object(m.jsx)(o.a,{children:Object(m.jsx)(c.a,{variant:"contained",onClick:t,color:"primary",children:"Close"})})]})}},296:function(e,t,a){"use strict";a.d(t,"a",(function(){return I}));var n,i,r=a(6),c=a(2),o=a(7),s=a(1),l=a.n(s),d=a(57),u=a(191),b=a(4),j=a(54),p=a(96),m=a(95),h=a(110),f=a(245),O=a(247),x=a(76),g=a(244),y=a(246),v=a(133),_=a(73),k=a(58),w=a(51),C=a(0),S=Object(d.a)(n||(n=Object(o.a)(["\nfragment allTokenData on token {\n id\n Address\n AppContainer\n AppContainerNumber\n AppContainerSid\n AppId\n AppModelPolicies\n AppModelPolicyDictionary\n AttributesFlags\n AuditPolicy\n AuthenticationId_id\n BnoIsolationPrefix\n CanSynchronize\n Capabilities\n CreationTime\n DefaultDacl\n DenyOnlyGroups\n DeviceClaimAttributes\n DeviceGroups\n Elevated\n ElevationType\n EnabledGroups\n ExpirationTime\n Filtered\n Flags\n FullPath\n GrantedAccess\n GrantedAccessGeneric\n GrantedAccessMask\n GroupCount\n Groups\n Handle\n HandleReferenceCount\n HasRestrictions\n ImpersonationLevel\n Inherit\n IntegrityLevel\n IntegrityLevelSid\n IsClosed\n IsContainer\n IsPseudoToken\n IsRestricted\n IsSandbox\n LogonSid\n LowPrivilegeAppContainer\n MandatoryPolicy\n ModifiedId\n Name\n NoChildProcess\n NotLow\n NtType\n NtTypeName\n Origin\n Owner\n PackageFullName\n PackageIdentity\n PackageName\n PointerReferenceCount\n PrimaryGroup\n PrivateNamespace\n Privileges\n ProcessUniqueAttribute\n ProtectFromClose\n Restricted\n RestrictedDeviceClaimAttributes\n RestrictedDeviceGroups\n RestrictedSids\n RestrictedSidsCount\n RestrictedUserClaimAttributes\n SandboxInert\n Sddl\n SecurityAttributes\n SecurityDescriptor\n SessionId\n Source\n ThreadID\n TokenId\n TokenType\n TrustLevel\n UIAccess\n User\n UserClaimAttributes\n VirtualizationAllowed\n VirtualizationEnabled\n WriteRestricted\n task_id\n logonsession {\n id\n LogonId\n UserName\n LogonDomain\n LogonType\n SessionId\n Sid\n LogonTime\n LogonServer\n DnsDomainName\n Upn\n UserFlags\n LastSuccessfulLogon\n LastFailedLogon\n FailedAttemptCountSinceLastSuccessfulLogon\n LogonScript\n ProfilePath\n HomeDirectory\n HomeDirectoryDrive\n LogoffTime\n KickOffTime\n PasswordLastSet\n PasswordCanChange\n PasswordMustChange\n task_id\n authenticationpackages {\n id\n Name\n task_id\n }\n }\n}\n"]))),D=Object(d.a)(i||(i=Object(o.a)(["\n","\nquery getTokenInfo ($token_id: Int!) {\n token_by_pk(id: $token_id) {\n ...allTokenData\n }\n}\n"])),S);function I(e){var t=Object(w.a)(),a=Object(s.useState)([]),n=Object(c.a)(a,2),i=n[0],o=n[1],d=Object(s.useState)([]),S=Object(c.a)(d,2),I=S[0],T=S[1],$=Object(s.useState)([]),P=Object(c.a)($,2),A=P[0],E=P[1],L=["Address","AppContainer","AppContainerNumber","AppContainerSid","AppId","AppModelPolicies","AppModelPolicyDictionary","AttributesFlags","AuditPolicy","AuthenticationId_id","BnoIsolationPrefix","CanSynchronize","Capabilities","CreationTime","DefaultDacl","DenyOnlyGroups","DeviceClaimAttributes","DeviceGroups","Elevated","ElevationType","EnabledGroups","ExpirationTime","Filtered","Flags","FullPath","GrantedAccess","GrantedAccessGeneric","GrantedAccessMask","GroupCount","Groups","Handle","HandleReferenceCount","HasRestrictions","ImpersonationLevel","Inherit","IntegrityLevel","IntegrityLevelSid","IsClosed","IsContainer","IsPseudoToken","IsRestricted","IsSandbox","LogonSid","LowPrivilegeAppContainer","MandatoryPolicy","ModifiedId","Name","NoChildProcess","NotLow","NtType","NtTypeName","Origin","Owner","PackageFullName","PackageIdentity","PackageName","PointerReferenceCount","PrimaryGroup","PrivateNamespace","Privileges","ProcessUniqueAttribute","ProtectFromClose","Restricted","RestrictedDeviceClaimAttributes","RestrictedDeviceGroups","RestrictedSids","RestrictedSidsCount","RestrictedUserClaimAttributes","SandboxInert","Sddl","SecurityAttributes","SecurityDescriptor","SessionId","Source","ThreadID","TokenId","TokenType","TrustLevel","UIAccess","User","UserClaimAttributes","VirtualizationAllowed","VirtualizationEnabled","WriteRestricted","task_id"],F=["LogonId","UserName","LogonDomain","LogonType","SessionId","Sid","LogonTime","LogonServer","DnsDomainName","Upn","UserFlags","LastSuccessfulLogon","LastFailedLogon","FailedAttemptCountSinceLastSuccessfulLogon","LogonScript","ProfilePath","HomeDirectory","HomeDirectoryDrive","LogoffTime","KickOffTime","PasswordLastSet","PasswordCanChange","PasswordMustChange","task_id"],N=["Name","task_id"];return Object(u.a)(D,{variables:{token_id:e.token_id},onCompleted:function(e){if(null!==e.token_by_pk){o(e.token_by_pk);var t=L.reduce((function(t,a){return void 0!==e.token_by_pk[a]&&null!==e.token_by_pk[a]&&""!==e.token_by_pk[a]?[].concat(Object(r.a)(t),[{name:a,value:e.token_by_pk[a]}]):Object(r.a)(t)}),[]);if(o(t),null!==e.token_by_pk.logonsession){var a=F.reduce((function(t,a){return void 0!==e.token_by_pk.logonsession[a]&&null!==e.token_by_pk.logonsession[a]&&""!==e.token_by_pk.logonsession[a]?[].concat(Object(r.a)(t),[{name:a,value:e.token_by_pk.logonsession[a]}]):Object(r.a)(t)}),[]);if(T(a),e.token_by_pk.logonsession.authenticationpackages.length>0){var n=e.token_by_pk.logonsession.authenticationpackages.map((function(e){return N.reduce((function(t,a){return void 0!==e[a]&&null!==e[a]&&""!==e[a]?[].concat(Object(r.a)(t),[{name:a,value:e[a]}]):Object(r.a)(t)}),[])}));E(n)}}}},onError:function(e){b.b.error(e)},fetchPolicy:"network-only"}),Object(C.jsxs)(l.a.Fragment,{children:[Object(C.jsx)(h.a,{id:"form-dialog-title",children:"Token Information"}),Object(C.jsxs)(m.a,{dividers:!0,children:[Object(C.jsx)(_.a,{elevation:5,style:{backgroundColor:t.pageHeader.main,color:t.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:Object(C.jsx)(k.a,{variant:"h6",style:{textAlign:"left",display:"inline-block",marginLeft:"20px",color:t.pageHeaderColor},children:"Token Data"})}),Object(C.jsx)(_.a,{elevation:5,style:{position:"relative"},variant:"elevation",children:Object(C.jsx)(g.a,{component:_.a,className:"mythicElement",children:Object(C.jsxs)(f.a,{size:"small",style:{tableLayout:"fixed",maxWidth:"calc(100vw)",overflow:"scroll"},children:[Object(C.jsx)(y.a,{children:Object(C.jsxs)(v.a,{children:[Object(C.jsx)(x.a,{children:"Token Property"}),Object(C.jsx)(x.a,{children:"Token Value"})]})}),Object(C.jsx)(O.a,{children:i.map((function(e,t){return Object(C.jsxs)(v.a,{children:[Object(C.jsx)(x.a,{children:e.name}),Object(C.jsx)(x.a,{children:!0===e.value?"True":!1===e.value?"False":e.value})]},"row"+t)}))})]})})}),I.length>0&&Object(C.jsxs)(l.a.Fragment,{children:[Object(C.jsx)(_.a,{elevation:5,style:{backgroundColor:t.pageHeader.main,color:t.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:Object(C.jsx)(k.a,{variant:"h6",style:{textAlign:"left",display:"inline-block",marginLeft:"20px",color:t.pageHeaderColor},children:"Associated Logon Session Data"})}),Object(C.jsx)(_.a,{elevation:5,style:{position:"relative",marginTop:"20px"},variant:"elevation",children:Object(C.jsx)(g.a,{component:_.a,className:"mythicElement",children:Object(C.jsxs)(f.a,{size:"small",style:{tableLayout:"fixed",maxWidth:"calc(100vw)",overflow:"scroll"},children:[Object(C.jsx)(y.a,{children:Object(C.jsxs)(v.a,{children:[Object(C.jsx)(x.a,{children:"Logon Session Property"}),Object(C.jsx)(x.a,{children:"Logon Session Value"})]})}),Object(C.jsx)(O.a,{children:I.map((function(e,t){return Object(C.jsxs)(v.a,{children:[Object(C.jsx)(x.a,{children:e.name}),Object(C.jsx)(x.a,{children:!0===e.value?"True":!1===e.value?"False":e.value})]},"logondatarow"+t)}))})]})})})]}),A.map((function(e){return Object(C.jsxs)(l.a.Fragment,{children:[Object(C.jsx)(_.a,{elevation:5,style:{backgroundColor:t.pageHeader.main,color:t.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:Object(C.jsx)(k.a,{variant:"h6",style:{textAlign:"left",display:"inline-block",marginLeft:"20px",color:t.pageHeaderColor},children:"Associated Authentication Package"})}),Object(C.jsx)(_.a,{elevation:5,style:{position:"relative",marginTop:"20px"},variant:"elevation",children:Object(C.jsx)(g.a,{component:_.a,className:"mythicElement",children:Object(C.jsxs)(f.a,{size:"small",style:{tableLayout:"fixed",maxWidth:"calc(100vw)",overflow:"scroll"},children:[Object(C.jsx)(y.a,{children:Object(C.jsxs)(v.a,{children:[Object(C.jsx)(x.a,{children:"Authentication Package Property"}),Object(C.jsx)(x.a,{children:"Authentication Package Value"})]})}),Object(C.jsx)(O.a,{children:e.map((function(t,a){return Object(C.jsxs)(v.a,{children:[Object(C.jsx)(x.a,{children:t.name}),Object(C.jsx)(x.a,{children:!0===t.value?"True":!1===t.value?"False":t.value})]},"authpackage"+e.id+"row"+a)}))})]})})})]},"authpkg"+e.id)}))]}),Object(C.jsx)(p.a,{children:Object(C.jsx)(j.a,{onClick:e.onClose,variant:"contained",color:"primary",children:"Close"})})]})}},356:function(e,t,a){"use strict";a.d(t,"a",(function(){return d}));var n=a(2),i=a(1),r=a.n(i),c=a(138),o=a.n(c),s=(a(324),a(252),a(325),a(51)),l=a(0),d=function(e){var t=Object(s.a)(),a=r.a.useState(String(e.plaintext)),c=Object(n.a)(a,2),d=c[0],u=c[1];return Object(i.useEffect)((function(){try{var t=JSON.stringify(JSON.parse(String(e.plaintext)),null,4);u(t)}catch(a){u(String(e.plaintext))}}),[e.plaintext]),Object(l.jsx)(o.a,{mode:"json",theme:"dark"===t.palette.type?"monokai":"xcode",fontSize:14,showGutter:!0,height:"100px",highlightActiveLine:!0,value:d,width:"100%",minLines:2,maxLines:50,setOptions:{showLineNumbers:!0,tabSize:4,useWorker:!1}})}},4:function(e,t,a){"use strict";a.d(t,"a",(function(){return c})),a.d(t,"b",(function(){return o}));var n=a(3),i=a(78),r=null,c=function(){return r=Object(i.c)(),null},o={success:function(e,t){this.toast(e,"success",t)},warning:function(e,t){this.toast(e,"warning",t)},info:function(e,t){this.toast(e,"info",t)},error:function(e,t){this.toast(e,"error",t)},dismiss:function(){r.closeSnackbar()},toast:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",a=arguments.length>2?arguments[2]:void 0;r.enqueueSnackbar(e,Object(n.a)({variant:t},a))}}},477:function(e,t,a){"use strict";(function(e){a.d(t,"a",(function(){return re}));var n,i,r,c=a(2),o=a(7),s=a(1),l=a.n(s),d=a(139),u=a(106),b=a.n(u),j=a(298),p=a.n(j),m=a(478),h=a(492),f=a.n(h),O=a(13),x=a(485),g=a(486),y=a(51),v=a(107),_=a.n(v),k=a(171),w=a.n(k),C=a(488),S=a(489),D=a(490),I=a(4),T=a(491),$=a.n(T),P=a(297),A=a.n(P),E=a(211),L=a.n(E),F=a(212),N=a.n(F),q=a(296),R=a(192),B=a(357),M=a.n(B),z=a(57),W=a(249),H=a(193),U=a(41),G=a(31),K=a(72),V=a.n(K),Q=a(857),J=a(858),Y=a(87),Z=a(142),X=a(317),ee=a(0),te=Object(z.a)(n||(n=Object(o.a)(["\nmutation reissueTaskMutation($task_id: Int!){\n reissue_task(task_id: $task_id){\n status\n error\n }\n}\n"]))),ae=Object(z.a)(i||(i=Object(o.a)(["\nmutation reissueTaskHandlerMutation($task_id: Int!){\n reissue_task_handler(task_id: $task_id){\n status\n error\n }\n}\n"]))),ne=Object(z.a)(r||(r=Object(o.a)(["\nquery subResponsesQuery($task_id: Int!) {\n response(where: {task_id: {_eq: $task_id}}, order_by: {id: asc}) {\n id\n response: response_text\n }\n}"]))),ie=Object(Z.a)((function(e){return{root:{transform:"translateZ(0px)",flexGrow:1},speedDial:{position:"absolute","&.MuiSpeedDial-directionUp, &.MuiSpeedDial-directionLeft":{top:e.spacing(2),right:e.spacing(2)},"&.MuiSpeedDial-directionDown, &.MuiSpeedDial-directionRight":{bottom:e.spacing(1),left:e.spacing(2)},zIndex:3},tooltip:{backgroundColor:e.palette.background.contrast,color:e.palette.text.contrast,boxShadow:e.shadows[1],fontSize:13},arrow:{color:e.palette.background.contrast}}})),re=function(e){var t=e.task,a=l.a.useState(!0),n=Object(c.a)(a,2),i=n[0],r=n[1],o=l.a.useState(0),d=Object(c.a)(o,2),u=d[0],b=d[1],j=l.a.useState(!1),p=Object(c.a)(j,2),h=p[0],f=p[1],O=l.a.useState(!1),x=Object(c.a)(O,2),g=x[0],y=x[1];Object(s.useEffect)((function(){b(null===t.command?0:t.command.id)}),[t.command]);var v=l.a.useCallback((function(){r(!i)}),[i]),_=l.a.useCallback((function(){y(!g)}),[g]),k=l.a.useCallback((function(){f(!h)}),[h]);return Object(ee.jsx)(l.a.Fragment,{children:Object(ee.jsxs)(R.a,{container:!0,spacing:0,style:{maxWidth:"100%"},children:[Object(ee.jsx)(ce,{toggleViewBrowserScript:v,toggleSelectAllOutput:_,toggleOpenSearch:k,taskData:t,viewAllOutput:g}),Object(ee.jsx)(R.a,{item:!0,xs:12,children:Object(ee.jsx)(m.a,{task:t,command_id:u,viewBrowserScript:i,searchOutput:h,selectAllOutput:g})})]})})},ce=function(t){var a=t.toggleViewBrowserScript,n=t.toggleSelectAllOutput,i=t.toggleOpenSearch,r=t.taskData,o=t.viewAllOutput,s="top",u=Object(y.a)(),j=ie(),m=l.a.useState(r||{}),h=Object(c.a)(m,2),v=h[0],k=h[1],T=l.a.useState(!1),P=Object(c.a)(T,2),E=P[0],F=P[1],R=l.a.useState(!1),B=Object(c.a)(R,2),z=B[0],K=B[1],Z=l.a.useState(!1),re=Object(c.a)(Z,2),ce=re[0],oe=re[1],se=l.a.useState(!1),le=Object(c.a)(se,2),de=le[0],ue=le[1],be=l.a.useState(!1),je=Object(c.a)(be,2),pe=je[0],me=je[1],he=l.a.useState(!1),fe=Object(c.a)(he,2),Oe=fe[0],xe=fe[1],ge=l.a.useState(!1),ye=Object(c.a)(ge,2),ve=ye[0],_e=ye[1],ke=Object(W.a)(ne,{fetchPolicy:"network-only",onCompleted:function(t){var a=t.response.reduce((function(t,a){return t+e.from(a.response,"base64")}),""),n=new Blob([a],{type:"application/octet-stream"}),i=document.getElementById("download_config");if(null!==i)i.href=URL.createObjectURL(n),i.download="task_"+v.id+".txt",i.click();else{var r=document.createElement("a");r.id="download_config",r.href=URL.createObjectURL(n),r.download="task_"+v.id+".txt",document.body.appendChild(r),r.click()}},onError:function(e){}}),we=Object(c.a)(ke,1)[0];l.a.useEffect((function(){k(r)}),[r.id,r.token,r.original_params,r.opsec_pre_blocked,r.opsec_pre_bypassed,r.opsec_post_blocked,r.opsec_post_bypassed]);var Ce=Object(H.a)(te,{onCompleted:function(e){"success"===e.reissue_task.status?I.b.success("Successfully re-issued task to Mythic"):I.b.error("Failed to re-issue task to Mythic: "+e.reissue_task.error)},onError:function(e){console.log(e),I.b.error("Failed to re-issue task: "+e)}}),Se=Object(c.a)(Ce,1)[0],De=Object(H.a)(ae,{onCompleted:function(e){"success"===e.reissue_task_handler.status?I.b.success("Successfully resubmitted task for handling"):I.b.warning("Failed to resubmit task for handling: "+e.reissue_task_handler.error)},onError:function(e){console.log(e),I.b.error("Error resubmitting task for handling: "+e)}}),Ie=Object(c.a)(De,1)[0];return Object(ee.jsxs)(l.a.Fragment,{children:[Object(ee.jsx)(X.a,{open:E,onClick:function(){F(!1)},style:{zIndex:2,position:"absolute"}}),z?Object(ee.jsx)(O.a,{fullWidth:!0,maxWidth:"md",open:z,onClose:function(){K(!1)},innerDialog:Object(ee.jsx)(g.a,{task_id:v.id,onClose:function(){K(!1)}})}):null,ce?Object(ee.jsx)(O.a,{fullWidth:!0,maxWidth:"md",open:ce,onClose:function(){oe(!1)},innerDialog:Object(ee.jsx)(x.a,{task_id:v.id,onClose:function(){oe(!1)}})}):null,de?Object(ee.jsx)(O.a,{fullWidth:!0,maxWidth:"md",open:de,onClose:function(){ue(!1)},innerDialog:Object(ee.jsx)(S.a,{task_id:v.id,onClose:function(){ue(!1)}})}):null,pe?Object(ee.jsx)(O.a,{fullWidth:!0,maxWidth:"md",open:pe,onClose:function(){me(!1)},innerDialog:Object(ee.jsx)(q.a,{token_id:void 0===v.token?0:v.token.id,onClose:function(){me(!1)}})}):null,ve?Object(ee.jsx)(O.a,{fullWidth:!0,maxWidth:"md",open:ve,onClose:function(){_e(!1)},innerDialog:Object(ee.jsx)(C.a,{task_id:v.id,onClose:function(){_e(!1)}})}):null,Oe?Object(ee.jsx)(O.a,{fullWidth:!0,maxWidth:"md",open:Oe,onClose:function(){xe(!1)},innerDialog:Object(ee.jsx)(D.a,{task_id:v.id,onClose:function(){xe(!1)}})}):null,Object(ee.jsxs)(Q.a,{ariaLabel:"Task Speeddial",className:j.speedDial,icon:Object(ee.jsx)(J.a,{}),onClick:function(){F(!E)},FabProps:{color:"primary",size:"small"},open:E,direction:"right",children:[Object(ee.jsx)(Y.a,{icon:Object(ee.jsx)(A.a,{}),arrow:!0,TooltipClasses:{tooltip:j.tooltip,arrow:j.arrow},tooltipPlacement:s,tooltipTitle:"Toggle BrowserScript",onClick:function(){a(),F(!1)}}),Object(ee.jsx)(Y.a,{icon:Object(ee.jsx)(U.a,{icon:G.i,size:"lg"}),arrow:!0,TooltipClasses:{tooltip:j.tooltip,arrow:j.arrow},tooltipPlacement:s,tooltipTitle:o?"View Paginated Output":"View All Output",onClick:function(){n(),F(!1)}}),Object(ee.jsx)(Y.a,{icon:Object(ee.jsx)(V.a,{}),arrow:!0,TooltipClasses:{tooltip:j.tooltip,arrow:j.arrow},tooltipPlacement:s,tooltipTitle:"Search Output",onClick:function(){i(),F(!1)}}),Object(ee.jsx)(Y.a,{icon:Object(ee.jsx)(b.a,{}),arrow:!0,TooltipClasses:{tooltip:j.tooltip,arrow:j.arrow},tooltipPlacement:s,tooltipTitle:"Download output",onClick:function(){we({variables:{task_id:v.id}}),F(!1)}}),Object(ee.jsx)(Y.a,{icon:Object(ee.jsx)($.a,{}),arrow:!0,TooltipClasses:{tooltip:j.tooltip,arrow:j.arrow},tooltipPlacement:s,tooltipTitle:"Edit Tags",onClick:function(){K(!0),F(!1)}}),Object(ee.jsx)(Y.a,{icon:Object(ee.jsx)(U.a,{icon:G.j,size:"lg"}),arrow:!0,TooltipClasses:{tooltip:j.tooltip,arrow:j.arrow},tooltipPlacement:s,tooltipTitle:"Open Task in New Window",onClick:function(){window.open("/new/task/"+v.id,"_blank")}}),Object(ee.jsx)(Y.a,{icon:Object(ee.jsx)(p.a,{}),arrow:!0,TooltipClasses:{tooltip:j.tooltip,arrow:j.arrow},tooltipPlacement:s,tooltipTitle:"Copy original params to clipboard",onClick:function(){Object(d.a)(v.original_params)?I.b.success("Copied text!"):I.b.error("Failed to copy text"),F(!1)}}),Object(ee.jsx)(Y.a,{icon:Object(ee.jsx)(f.a,{}),arrow:!0,TooltipClasses:{tooltip:j.tooltip,arrow:j.arrow},tooltipPlacement:s,tooltipTitle:"Edit Comment",onClick:function(){oe(!0),F(!1)}}),Object(ee.jsx)(Y.a,{icon:Object(ee.jsx)(L.a,{}),arrow:!0,TooltipClasses:{tooltip:j.tooltip,arrow:j.arrow},tooltipPlacement:s,tooltipTitle:"View All Parameters",onClick:function(){ue(!0),F(!1)}}),Object(ee.jsx)(Y.a,{icon:Object(ee.jsx)(U.a,{icon:G.b,size:"lg"}),arrow:!0,TooltipClasses:{tooltip:j.tooltip,arrow:j.arrow},tooltipPlacement:s,tooltipTitle:"View Stdout/Stderr of Task",onClick:function(){xe(!0),F(!1)}}),null===v.opsec_pre_blocked?null:!1===v.opsec_pre_bypassed?Object(ee.jsx)(Y.a,{icon:Object(ee.jsx)(_.a,{style:{color:u.palette.error.main}}),arrow:!0,TooltipClasses:{tooltip:j.tooltip,arrow:j.arrow},tooltipPlacement:s,tooltipTitle:"Submit OPSEC PreCheck Bypass Request",onClick:function(){_e(!0),F(!1)}}):Object(ee.jsx)(Y.a,{icon:Object(ee.jsx)(w.a,{style:{color:u.palette.success.main}}),arrow:!0,TooltipClasses:{tooltip:j.tooltip,arrow:j.arrow},tooltipPlacement:s,tooltipTitle:"View OPSEC PreCheck Data",onClick:function(){_e(!0),F(!1)}}),null===v.opsec_post_blocked?null:!1===v.opsec_post_bypassed?Object(ee.jsx)(Y.a,{icon:Object(ee.jsx)(_.a,{style:{color:u.palette.error.main}}),arrow:!0,TooltipClasses:{tooltip:j.tooltip,arrow:j.arrow},tooltipPlacement:s,tooltipTitle:"Submit OPSEC PostCheck Bypass Request",onClick:function(){_e(!0),F(!1)}}):Object(ee.jsx)(Y.a,{icon:Object(ee.jsx)(w.a,{style:{color:u.palette.success.main}}),arrow:!0,TooltipClasses:{tooltip:j.tooltip,arrow:j.arrow},tooltipPlacement:s,tooltipTitle:"View OPSEC PostCheck Data",onClick:function(){_e(!0),F(!1)}}),null===v.token?null:Object(ee.jsx)(Y.a,{icon:Object(ee.jsx)(N.a,{}),arrow:!0,TooltipClasses:{tooltip:j.tooltip,arrow:j.arrow},tooltipPlacement:s,tooltipTitle:"View Token Information",onClick:function(){me(!0),F(!1)}}),v.status.toLowerCase().includes("error: container")?Object(ee.jsx)(Y.a,{icon:Object(ee.jsx)(M.a,{style:{color:u.palette.warning.main}}),arrow:!0,TooltipClasses:{tooltip:j.tooltip,arrow:j.arrow},tooltipPlacement:s,tooltipTitle:"Resubmit Tasking",onClick:function(){Se({variables:{task_id:v.id}})}}):null,v.status.toLowerCase().includes("error: task")?Object(ee.jsx)(Y.a,{icon:Object(ee.jsx)(M.a,{style:{color:u.palette.warning.main}}),arrow:!0,TooltipClasses:{tooltip:j.tooltip,arrow:j.arrow},tooltipPlacement:s,tooltipTitle:"Resubmit Task Handler",onClick:function(){Ie({variables:{task_id:v.id}})}}):null]})]})}}).call(this,a(454).Buffer)},478:function(e,t,a){"use strict";(function(e){a.d(t,"a",(function(){return z}));var n,i,r,c,o,s=a(6),l=a(3),d=a(2),u=a(7),b=a(1),j=a.n(b),p=a(57),m=a(249),h=a(545),f=a(316),O=a(16),x=a(4),g=a(479),y=a(356),v=a(533),_=a(483),k=a(484),w=a(17),C=a(72),S=a.n(C),D=a(51),I=a(221),T=a(19),$=a(855),P=a(58),A=a(317),E=a(843),L=a(0),F=Object(p.a)(n||(n=Object(u.a)(["\nsubscription subResponsesQuery($task_id: Int!, $fetchLimit: Int!) {\n response(where: {task_id: {_eq: $task_id}}, limit: $fetchLimit, order_by: {id: asc}) {\n id\n response: response_text\n }\n}"]))),N=Object(p.a)(i||(i=Object(u.a)(["\nquery subResponsesQuery($task_id: Int!, $fetchLimit: Int!, $offset: Int!, $search: String!) {\n response(where: {task_id: {_eq: $task_id}, response_escape: {_ilike: $search}}, limit: $fetchLimit, offset: $offset, order_by: {id: asc}) {\n id\n response: response_text\n }\n response_aggregate(where: {task_id: {_eq: $task_id}, response_escape: {_ilike: $search}}){\n aggregate{\n count\n }\n }\n}"]))),q=Object(p.a)(r||(r=Object(u.a)(["\nsubscription responseTotalCountSubscription($task_id: Int!){\n response_aggregate(where: {task_id: {_eq: $task_id}}){\n aggregate{\n count\n }\n }\n}\n"]))),R=Object(p.a)(c||(c=Object(u.a)(["\nquery subResponsesQuery($task_id: Int!, $search: String!) {\n response(where: {task_id: {_eq: $task_id}, response_escape: {_ilike: $search}}, order_by: {id: asc}) {\n id\n response: response_text\n }\n response_aggregate(where: {task_id: {_eq: $task_id}, response_escape: {_ilike: $search}}){\n aggregate{\n count\n }\n }\n}"]))),B=Object(p.a)(o||(o=Object(u.a)(["\nquery getBrowserScriptsQuery($command_id: Int!, $operator_id: Int!, $operation_id: Int!){\n browserscript(where: {active: {_eq: true}, command_id: {_eq: $command_id}, for_new_ui: {_eq: true}, operator_id: {_eq: $operator_id}}) {\n script\n id\n }\n browserscriptoperation(where: {operation_id: {_eq: $operation_id}, browserscript: {active: {_eq: true}, command_id: {_eq: $command_id}, for_new_ui: {_eq: true}}}) {\n browserscript {\n script\n id\n }\n }\n}\n\n"]))),M=10,z=function(t){var a=j.a.useState(""),n=Object(d.a)(a,2),i=n[0],r=n[1],c=j.a.useState([]),o=Object(d.a)(c,2),u=o[0],b=o[1],p=j.a.useRef(0),f=j.a.useState(""),O=Object(d.a)(f,2),g=O[0],y=O[1],v=j.a.useState(0),_=Object(d.a)(v,2),k=_[0],w=_[1],C=j.a.useRef(t.selectAllOutput),S=j.a.useState(!0),D=Object(d.a)(S,2),I=D[0],T=D[1],$=j.a.useRef(!0),P=Object(m.a)(N,{fetchPolicy:"network-only",onCompleted:function(a){var n=a.response.reduce((function(t,a){return t+e.from(a.response,"base64")}),""),i=a.response.reduce((function(e,t){return t.id>e?t.id:e}),p.current);p.current=i,r(n);var c=a.response.map((function(t){return String(e.from(t.response,"base64"))}));b(c),t.selectAllOutput||w(a.response_aggregate.aggregate.count),T(!1)},onError:function(e){x.b.error("Failed to fetch more responses: "+e)}}),q=Object(d.a)(P,1)[0],B=Object(m.a)(R,{fetchPolicy:"network-only",onCompleted:function(t){var a=t.response.reduce((function(t,a){return t+e.from(a.response,"base64")}),""),n=t.response.reduce((function(e,t){return t.id>e?t.id:e}),p.current);p.current=n,r(a);var i=t.response.map((function(t){return String(e.from(t.response,"base64"))}));b(i),w(1),T(!1)},onError:function(e){}}),z=Object(d.a)(B,1)[0];j.a.useEffect((function(){return function(){$.current=!1}}),[]),j.a.useEffect((function(){t.selectAllOutput!==C.current&&t.selectAllOutput&&(T(!0),z(""===g?{variables:{task_id:t.task.id,search:"%%"}}:{variables:{task_id:t.task.id,search:"%"+g+"%"}}))}),[t.selectAllOutput,C]);var G=j.a.useCallback((function(t){var a=t.subscriptionData;if(console.log("fetchLimit",M,"totalCount",k),!$.current)return null;if(k>=M)console.log("got more than we can see currently",k);else if(T(!1),a.data.response.length>0){var n=a.data.response.filter((function(e){return e.id>p.current})).map((function(t){return Object(l.a)(Object(l.a)({},t),{},{response:String(e.from(t.response,"base64"))})}));n.sort((function(e,t){return e.id>t.id?1:-1}));for(var c=i,o=Object(s.a)(u),d=p.current,j=k,m=0;m0){var a=e.table.map((function(e){var t=e.rows.filter((function(e){for(var t=!1,a=0,n=Object.values(e);a0)try{var a=e.from(t.browserscriptoperation[0].script,"base64"),n=Function('"use strict";return('+a+")")();A.current=n,D(!0);var i=A.current(p,c);P(F(i))}catch(l){x.b.error(l.toString()),console.log(l),D(!1)}else if(t.browserscript.length>0)try{var r=e.from(t.browserscript[0].script,"base64"),o=Function('"use strict";return('+r+")")();A.current=o,D(!0);var s=A.current(p,c);P(F(s))}catch(l){x.b.error(l.toString()),console.log(l),D(!1)}else D(!1)},onError:function(e){console.log(e)}}),q=Object(d.a)(N,1)[0];return Object(b.useEffect)((function(){void 0!==u&&q({variables:{command_id:u,operator_id:E.user.user_id,operation_id:E.user.current_operation_id}})}),[u]),S&&$?Object(L.jsxs)(j.a.Fragment,{children:[(null===$||void 0===$||null===(a=$.screenshot)||void 0===a?void 0:a.map((function(e,t){return Object(L.jsx)(g.a,Object(l.a)({},e),"screenshot"+t+"fortask"+p.id)})))||null,(null===$||void 0===$?void 0:$.plaintext)&&Object(L.jsx)(y.a,{plaintext:$.plaintext}),(null===$||void 0===$||null===(n=$.table)||void 0===n?void 0:n.map((function(e,t){return Object(L.jsx)(v.a,{callback_id:p.callback_id,table:e},"tablefortask"+p.id+"table"+t)})))||null,(null===$||void 0===$||null===(i=$.download)||void 0===i?void 0:i.map((function(e,t){return Object(L.jsx)(_.a,{download:e},"download"+t+"fortask"+p.id)})))||null,(null===$||void 0===$||null===(r=$.search)||void 0===r?void 0:r.map((function(e,t){return Object(L.jsx)(k.a,{search:e},"searchlink"+t+"fortask"+p.id)})))||null]}):Object(L.jsx)(y.a,{plaintext:s})}}).call(this,a(454).Buffer)},479:function(e,t,a){"use strict";a.d(t,"a",(function(){return j}));var n=a(2),i=a(1),r=a.n(i),c=a(54),o=a(294),s=a(13),l=a(248),d=a(142),u=a(0),b=Object(d.a)((function(e){return{tooltip:{backgroundColor:e.palette.background.contrast,color:e.palette.text.contrast,boxShadow:e.shadows[1],fontSize:13},arrow:{color:e.palette.background.contrast}}})),j=function(e){var t=r.a.useState(!1),a=Object(n.a)(t,2),i=a[0],d=a[1],j=b();(new Date).toUTCString();return Object(u.jsxs)(r.a.Fragment,{children:[i&&Object(u.jsx)(s.a,{fullWidth:!0,maxWidth:"xl",open:i,onClose:function(){d(!1)},innerDialog:Object(u.jsx)(o.a,{images:e.agent_file_id,onClose:function(){d(!1)}})}),Object(u.jsx)("pre",{style:{display:"inline-block"},children:(null===e||void 0===e?void 0:e.plaintext)||""}),Object(u.jsx)(l.a,{title:(null===e||void 0===e?void 0:e.hoverText)||"View Screenshot",arrow:!0,classes:{tooltip:j.tooltip,arrow:j.arrow},children:Object(u.jsx)(c.a,{color:"primary",variant:e.variant?e.variant:"contained",onClick:function(){d(!0)},style:{marginBottom:"10px"},children:e.name})})]})}},48:function(e,t,a){"use strict";a.d(t,"c",(function(){return m})),a.d(t,"b",(function(){return f})),a.d(t,"a",(function(){return O}));var n=a(3),i=a(85),r=a(221),c=a(141),o=a.n(c),s=a(543),l=a(1),d=a.n(l),u=a(0),b=["children","value","index","maxHeight","tabInfo","getCallbackData","queryParams","changeSearchParam"],j=["label","index","fullWidth","maxHeight","onContextMenu","onCloseTab","selectionFollowsFocus","textColor","indicator","tabInfo","onEditTabDescription","getCallbackData"],p=["label","index","fullWidth","maxHeight","selectionFollowsFocus","textColor","indicator","iconComponent"];function m(e){var t=e.children,a=e.value,r=e.index,c=(e.maxHeight,e.tabInfo,e.getCallbackData,e.queryParams,e.changeSearchParam,Object(i.a)(e,b)),o=void 0===e.style?{display:a===r?"flex":"none",flexDirection:"column",flexGrow:1,width:"100%",maxWidth:"100%",overflowY:"auto"}:e.style;return Object(u.jsx)("div",Object(n.a)(Object(n.a)({role:"tabpanel",hidden:a!==r,id:"scrollable-auto-tabpanel-".concat(r),"aria-labelledby":"scrollable-auto-tab-".concat(r),style:o},c),{},{children:Object(u.jsx)(d.a.Fragment,{children:t})}))}function h(e){return{id:"scrollable-auto-tab-".concat(e),"aria-controls":"scrollable-auto-tabpanel-".concat(e)}}function f(e){var t=e.label,a=e.index,c=(e.fullWidth,e.maxHeight,e.onContextMenu),l=e.onCloseTab,d=(e.selectionFollowsFocus,e.textColor,e.indicator,e.tabInfo),b=(e.onEditTabDescription,e.getCallbackData,Object(i.a)(e,j));return Object(u.jsx)(s.a,Object(n.a)(Object(n.a)({label:Object(u.jsxs)("span",{onContextMenu:c,style:{display:"inline-block",zIndex:1},children:[t,Object(u.jsx)(r.a,Object(n.a)(Object(n.a)({component:"div",size:"small",onClick:function(e){e.stopPropagation(),l({tabID:d.tabID,index:a})}},b),{},{children:Object(u.jsx)(o.a,{})}))]})},h(a)),b))}function O(e){var t=e.label,a=e.index,r=(e.fullWidth,e.maxHeight,e.selectionFollowsFocus,e.textColor,e.indicator,e.iconComponent),c=Object(i.a)(e,p);return Object(u.jsx)(s.a,Object(n.a)(Object(n.a)({label:Object(u.jsxs)("span",{children:[t,Object(u.jsx)("br",{}),r]})},h(a)),c))}},483:function(e,t,a){"use strict";a.d(t,"a",(function(){return b}));var n=a(1),i=a.n(n),r=a(106),c=a.n(r),o=a(248),s=a(142),l=a(54),d=a(0),u=Object(s.a)((function(e){return{tooltip:{backgroundColor:e.palette.background.contrast,color:e.palette.text.contrast,boxShadow:e.shadows[1],fontSize:13},arrow:{color:e.palette.background.contrast}}})),b=function(e){var t,a,n,r,s=u();return Object(d.jsxs)(i.a.Fragment,{children:[Object(d.jsx)("pre",{style:{display:"inline-block"},children:(null===(t=e.download)||void 0===t?void 0:t.plaintext)||""}),Object(d.jsx)(o.a,{title:(null===e||void 0===e||null===(a=e.dowload)||void 0===a?void 0:a.hoverText)||"Download payload",arrow:!0,classes:{tooltip:s.tooltip,arrow:s.arrow},children:Object(d.jsx)(l.a,{variant:(null===(n=e.download)||void 0===n?void 0:n.variant)||"contained",component:"a",target:"_blank",color:"primary",href:"/api/v1.4/files/download/"+e.download.agent_file_id,download:!0,startIcon:Object(d.jsx)(c.a,{}),children:(null===(r=e.download)||void 0===r?void 0:r.name)||""})}),Object(d.jsx)("br",{})]})}},484:function(e,t,a){"use strict";a.d(t,"a",(function(){return d}));var n=a(1),i=a.n(n),r=a(248),c=a(142),o=a(848),s=a(0),l=Object(c.a)((function(e){return{tooltip:{backgroundColor:e.palette.background.contrast,color:e.palette.text.contrast,boxShadow:e.shadows[1],fontSize:13},arrow:{color:e.palette.background.contrast}}})),d=function(e){var t,a,n,c=l();return Object(s.jsxs)(i.a.Fragment,{children:[Object(s.jsx)("pre",{style:{display:"inline-block",whiteSpace:"pre-wrap"},children:(null===(t=e.search)||void 0===t?void 0:t.plaintext)||""}),Object(s.jsx)(r.a,{title:(null===(a=e.search)||void 0===a?void 0:a.hoverText)||"View on Search Page",arrow:!0,classes:{tooltip:c.tooltip,arrow:c.arrow},children:Object(s.jsx)(o.a,{component:"a",target:"_blank",href:window.location.origin+"/new/search/?"+e.search.search,children:(null===(n=e.search)||void 0===n?void 0:n.name)||""})}),Object(s.jsx)("br",{})]})}},485:function(e,t,a){"use strict";a.d(t,"a",(function(){return y}));var n,i,r=a(2),c=a(7),o=a(1),s=a.n(o),l=a(54),d=a(96),u=a(95),b=a(110),j=a(17),p=a(57),m=a(191),h=a(193),f=a(222),O=a(0),x=Object(p.a)(n||(n=Object(c.a)(["\nmutation updateComment ($task_id: Int!, $comment: String) {\n update_task_by_pk(pk_columns: {id: $task_id}, _set: {comment: $comment}) {\n comment\n commentOperator {\n username\n }\n id\n }\n}\n"]))),g=Object(p.a)(i||(i=Object(c.a)(["\nquery getCommentQuery ($task_id: Int!) {\n task_by_pk(id: $task_id) {\n comment\n commentOperator {\n username\n }\n id\n }\n}\n"])));function y(e){var t=Object(o.useState)(""),a=Object(r.a)(t,2),n=a[0],i=a[1],c=Object(m.a)(g,{variables:{task_id:e.task_id},onCompleted:function(e){i(e.task_by_pk.comment)},fetchPolicy:"network-only"}),p=c.loading,y=c.error,v=Object(h.a)(x,{update:function(e,t){t.data}}),_=Object(r.a)(v,1)[0];if(p)return Object(O.jsx)(f.a,{});if(y)return console.error(y),Object(O.jsx)("div",{children:"Error!"});var k=function(){_({variables:{task_id:e.task_id,comment:n}}),e.onClose()};return Object(O.jsxs)(s.a.Fragment,{children:[Object(O.jsx)(b.a,{id:"form-dialog-title",children:"Edit Task Comment"}),Object(O.jsx)(u.a,{dividers:!0,children:Object(O.jsx)(j.a,{autoFocus:!0,onEnter:k,onChange:function(e,t,a){i(t)},value:n})}),Object(O.jsxs)(d.a,{children:[Object(O.jsx)(l.a,{onClick:e.onClose,variant:"contained",color:"primary",children:"Close"}),Object(O.jsx)(l.a,{onClick:k,variant:"contained",color:"secondary",children:"Submit"})]})]})}},486:function(e,t,a){"use strict";a.d(t,"a",(function(){return U}));var n,i,r,c=a(6),o=a(2),s=a(7),l=a(1),d=a.n(l),u=a(54),b=a(96),j=a(95),p=a(110),m=a(17),h=a(57),f=a(316),O=a(191),x=a(193),g=a(222),y=a(16),v=a(142),_=a(192),k=a(537),w=a(367),C=a(846),S=a(542),D=a(856),I=a(73),T=a(841),$=a(844),P=a(845),A=a(487),E=a.n(A),L=a(221),F=a(166),N=a(4),q=a(0),R=Object(h.a)(n||(n=Object(s.a)(["\nmutation addTaskTag ($task_id: Int!, $tag: String!) {\n insert_tasktag_one(object: {task_id: $task_id, tag: $tag}){\n id\n }\n}\n"]))),B=Object(h.a)(i||(i=Object(s.a)(["\nmutation removeTaskTag($tasktag_id: Int!){\n delete_tasktag_by_pk(id: $tasktag_id){\n id\n }\n}\n"]))),M=Object(h.a)(r||(r=Object(s.a)(["\nquery getTaskTags ($operation_id: Int!) {\n tasktag(where: {operation_id: {_eq: $operation_id}}) {\n id\n tag\n task_id\n }\n}\n"]))),z=Object(v.a)((function(e){return{root:{margin:"auto"},paper:{width:200,height:230,overflow:"auto"},button:{margin:e.spacing(.5,0)},divider:{backgroundColor:"rgb(100, 170, 204)",border:"2px solid rgba(100, 170, 204)"}}}));function W(e,t){return e.filter((function(e){return-1===t.indexOf(e)}))}function H(e,t){return e.filter((function(e){return-1!==t.indexOf(e)}))}function U(e){var t=Object(l.useState)(""),a=Object(o.a)(t,2),n=a[0],i=a[1],r=Object(f.a)(y.b),s=Object(O.a)(M,{variables:{operation_id:r.user.current_operation_id},onCompleted:function(t){var a=t.tasktag.reduce((function(t,a){return a.task_id===e.task_id?[].concat(Object(c.a)(t),[a]):Object(c.a)(t)}),[]),n=t.tasktag.reduce((function(e,t){return e.find((function(e){return e.tag===t.tag}))||a.find((function(e){return e.tag===t.tag}))?Object(c.a)(e):[].concat(Object(c.a)(e),[t])}),[]);ae(n),ce(a),de(Object(c.a)(a))},fetchPolicy:"network-only"}),h=s.loading,v=s.error,A=Object(x.a)(R,{update:function(e,t){t.data}}),U=Object(o.a)(A,1)[0],G=Object(x.a)(B,{update:function(e,t){t.data}}),K=Object(o.a)(G,1)[0],V=z(),Q=d.a.useState([]),J=Object(o.a)(Q,2),Y=J[0],Z=J[1],X=d.a.useState([]),ee=Object(o.a)(X,2),te=ee[0],ae=ee[1],ne=d.a.useState([]),ie=Object(o.a)(ne,2),re=ie[0],ce=ie[1],oe=d.a.useState([]),se=Object(o.a)(oe,2),le=se[0],de=se[1],ue=H(Y,te),be=H(Y,re),je=function(e){return function(){var t=Y.indexOf(e),a=Object(c.a)(Y);-1===t?a.push(e):a.splice(t,1),Z(a)}},pe=function(e,t){return Object(q.jsx)(I.a,{className:V.paper,style:{width:"100%"},children:Object(q.jsxs)(T.a,{children:[Object(q.jsx)($.a,{className:V.cardHeader,title:e}),Object(q.jsx)(P.a,{classes:{root:V.divider}}),Object(q.jsxs)(k.a,{dense:!0,component:"div",role:"list",style:{padding:0},children:[t.map((function(e){var t="transfer-list-item-".concat(e.id,"-label");return Object(q.jsxs)(w.a,{style:{padding:0},role:"listitem",button:!0,onClick:je(e),children:[Object(q.jsx)(C.a,{children:Object(q.jsx)(D.a,{checked:-1!==Y.indexOf(e),tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":t}})}),Object(q.jsx)(S.a,{id:t,primary:e.tag})]},e.id)})),Object(q.jsx)(w.a,{})]})]})})};if(h)return Object(q.jsx)(g.a,{});if(v)return console.error(v),Object(q.jsx)("div",{children:"Error!"});return Object(q.jsxs)(d.a.Fragment,{children:[Object(q.jsx)(p.a,{id:"form-dialog-title",children:"Edit Task Tags"}),Object(q.jsxs)(j.a,{dividers:!0,children:[Object(q.jsxs)(_.a,{container:!0,spacing:2,justify:"center",alignItems:"center",className:V.root,children:[Object(q.jsx)(_.a,{item:!0,xs:5,children:pe("Unused Tags In Operation",te)}),Object(q.jsx)(_.a,{item:!0,children:Object(q.jsxs)(_.a,{container:!0,direction:"column",alignItems:"center",children:[Object(q.jsx)(u.a,{variant:"outlined",size:"small",className:V.button,onClick:function(){ce(re.concat(te)),ae([])},disabled:0===te.length,"aria-label":"move all right",children:"\u226b"}),Object(q.jsx)(u.a,{variant:"outlined",size:"small",className:V.button,onClick:function(){ce(re.concat(ue)),ae(W(te,ue)),Z(W(Y,ue))},disabled:0===ue.length,"aria-label":"move selected right",children:">"}),Object(q.jsx)(u.a,{variant:"outlined",size:"small",className:V.button,onClick:function(){ae(te.concat(be)),ce(W(re,be)),Z(W(Y,be))},disabled:0===be.length,"aria-label":"move selected left",children:"<"}),Object(q.jsx)(u.a,{variant:"outlined",size:"small",className:V.button,onClick:function(){ae(te.concat(re)),ce([])},disabled:0===re.length,"aria-label":"move all left",children:"\u226a"})]})}),Object(q.jsx)(_.a,{item:!0,xs:5,children:pe("Applied Tags To Task",re)})]}),Object(q.jsx)(m.a,{autoFocus:!0,multiline:!1,name:"Add New Tag...",onChange:function(e,t,a){i(t)},value:n,style:{display:"inline-block"},InputProps:{endAdornment:Object(q.jsx)(d.a.Fragment,{children:Object(q.jsx)(L.a,{style:{color:F.a.palette.success.main},variant:"contained",onClick:function(){re.find((function(e){return e.tag===n}))||te.find((function(e){return e.tag===n}))||""!==n&&ce([].concat(Object(c.a)(re),[{tag:n,id:0,task_id:0}])),i("")},children:Object(q.jsx)(E.a,{})})})}})]}),Object(q.jsxs)(b.a,{children:[Object(q.jsx)(u.a,{onClick:e.onClose,variant:"contained",color:"primary",children:"Close"}),Object(q.jsx)(u.a,{onClick:function(){le.forEach((function(e){re.find((function(t){return t.id===e.id}))||K({variables:{tasktag_id:e.id}})})),re.forEach((function(t){le.find((function(e){return e.id===t.id}))||U({variables:{task_id:e.task_id,tag:t.tag}})})),""!==n&&U({variables:{task_id:e.task_id,tag:n}}),N.b.success("Updated tags"),e.onClose()},variant:"contained",color:"secondary",children:"Submit"})]})]})}},488:function(e,t,a){"use strict";a.d(t,"a",(function(){return v}));var n,i,r=a(2),c=a(7),o=a(1),s=a.n(o),l=a(54),d=a(96),u=a(95),b=a(110),j=a(17),p=a(57),m=a(191),h=a(193),f=a(222),O=a(78),x=a(0),g=Object(p.a)(n||(n=Object(c.a)(["\nmutation requestOpsecBypass ($task_id: Int!) {\n requestOpsecBypass(task_id: $task_id){\n status\n error\n }\n}\n"]))),y=Object(p.a)(i||(i=Object(c.a)(["\nquery getOPSECQuery ($task_id: Int!) {\n task_by_pk(id: $task_id) {\n opsec_pre_blocked\n opsec_pre_message\n opsec_pre_bypassed\n opsec_pre_bypass_user{\n username\n id\n }\n opsec_post_blocked\n opsec_pre_bypass_role\n opsec_post_message\n opsec_post_bypassed\n opsec_post_bypass_role\n opsec_post_bypass_user{\n username\n id\n }\n id\n }\n}\n"])));function v(e){var t=Object(o.useState)(""),a=Object(r.a)(t,2),n=a[0],i=a[1],c=Object(o.useState)({}),p=Object(r.a)(c,2),v=p[0],_=p[1],k=Object(O.c)().enqueueSnackbar,w=Object(m.a)(y,{variables:{task_id:e.task_id},onCompleted:function(e){var t="OPSEC PreCheck Message";console.log(e),null!==e.task_by_pk.opsec_pre_bypass_user&&(t+=" (bypassed by "+e.task_by_pk.opsec_pre_bypass_user.username+")"),t+=":\n\n"+e.task_by_pk.opsec_pre_message+"\n",e.task_by_pk.opsec_post_blocked&&(t+="\nOPSEC PostCheck Message",null!==e.task_by_pk.opsec_post_bypass_user&&(t+=" (bypassed by "+e.task_by_pk.opsec_post_bypass_user.username+")"),t+=":\n\n"+e.task_by_pk.opsec_post_message+"\n"),_(e.task_by_pk),i(t)},fetchPolicy:"network-only"}),C=w.loading,S=w.error,D=Object(h.a)(g,{update:function(e,t){var a=t.data;"success"===a.requestOpsecBypass.status?k("Bypass processed successfully",{variant:"success"}):k(a.requestOpsecBypass.error,{variant:"warning"})}}),I=Object(r.a)(D,1)[0];if(C)return Object(x.jsx)(f.a,{});if(S)return console.error(S),Object(x.jsx)("div",{children:"Error!"});return Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(b.a,{id:"form-dialog-title",children:"Request OPSEC Bypass"}),Object(x.jsx)(u.a,{dividers:!0,children:Object(x.jsx)(j.a,{multiline:!0,onChange:function(){},value:n})}),Object(x.jsxs)(d.a,{children:[Object(x.jsx)(l.a,{onClick:e.onClose,variant:"contained",color:"primary",children:"Close"}),!0===v.opsec_pre_blocked&&!v.opsec_pre_bypassed||!0===v.opsec_post_blocked&&!v.opsec_post_bypassed?Object(x.jsx)(l.a,{onClick:function(){console.log(e.task_id),I({variables:{task_id:e.task_id}}),e.onClose()},variant:"contained",color:"secondary",children:"Submit Bypass Request"}):null]})]})}},489:function(e,t,a){"use strict";a.d(t,"a",(function(){return O}));var n,i=a(2),r=a(7),c=a(1),o=a.n(c),s=a(54),l=a(96),d=a(95),u=a(110),b=a(17),j=a(57),p=a(191),m=a(222),h=a(0),f=Object(j.a)(n||(n=Object(r.a)(["\nquery getParametersQuery ($task_id: Int!) {\n task_by_pk(id: $task_id) {\n display_params\n original_params\n params\n tasking_location\n parameter_group_name\n id\n }\n}\n"])));function O(e){var t=Object(c.useState)(""),a=Object(i.a)(t,2),n=a[0],r=a[1],j=Object(p.a)(f,{variables:{task_id:e.task_id},onCompleted:function(e){var t="Original Parameters:\n"+e.task_by_pk.original_params;t+="\n\nAgent Parameters:\n"+e.task_by_pk.params,t+="\n\nDisplay Parameters:\n"+e.task_by_pk.display_params,t+="\n\nTasking Location:\n"+e.task_by_pk.tasking_location,t+="\n\nParameter Group:\n"+e.task_by_pk.parameter_group_name,r(t)},fetchPolicy:"network-only"}),O=j.loading,x=j.error;return O?Object(h.jsx)(m.a,{}):x?(console.error(x),Object(h.jsx)("div",{children:"Error!"})):Object(h.jsxs)(o.a.Fragment,{children:[Object(h.jsx)(u.a,{id:"form-dialog-title",children:"View Task Parameters"}),Object(h.jsx)(d.a,{dividers:!0,children:Object(h.jsx)(b.a,{multiline:!0,value:n,onChange:function(){}})}),Object(h.jsx)(l.a,{children:Object(h.jsx)(s.a,{onClick:e.onClose,variant:"contained",color:"primary",children:"Close"})})]})}},490:function(e,t,a){"use strict";a.d(t,"a",(function(){return O}));var n,i=a(2),r=a(7),c=a(1),o=a.n(c),s=a(54),l=a(96),d=a(95),u=a(110),b=a(17),j=a(57),p=a(191),m=a(222),h=a(0),f=Object(j.a)(n||(n=Object(r.a)(["\nquery getParametersQuery ($task_id: Int!) {\n task_by_pk(id: $task_id) {\n stdout\n stderr\n id\n }\n}\n"])));function O(e){var t=Object(c.useState)(""),a=Object(i.a)(t,2),n=a[0],r=a[1],j=Object(p.a)(f,{variables:{task_id:e.task_id},onCompleted:function(e){r("[STDOUT]:\n"+e.task_by_pk.stdout+"\n[STDERR]:\n"+e.task_by_pk.stderr)},fetchPolicy:"network-only"}),O=j.loading,x=j.error;return O?Object(h.jsx)(m.a,{}):x?(console.error(x),Object(h.jsx)("div",{children:"Error!"})):Object(h.jsxs)(o.a.Fragment,{children:[Object(h.jsx)(u.a,{id:"form-dialog-title",children:"View Task Stdout/Stderr"}),Object(h.jsx)(d.a,{dividers:!0,children:Object(h.jsx)(b.a,{multiline:!0,value:n,onChange:function(){}})}),Object(h.jsx)(l.a,{children:Object(h.jsx)(s.a,{onClick:e.onClose,variant:"contained",color:"primary",children:"Close"})})]})}},533:function(e,t,a){"use strict";a.d(t,"a",(function(){return q}));var n=a(6),i=a(2),r=a(3),c=a(1),o=a.n(c),s=a(54),l=a(13),d=a(189),u=a(96),b=a(95),j=a(110),p=a(0);function m(e){var t=e.table,a=e.callback_id,n=e.title,i=e.onClose;return Object(p.jsxs)(o.a.Fragment,{children:[Object(p.jsx)(j.a,{id:"form-dialog-title",children:n}),Object(p.jsx)(b.a,{dividers:!0,children:Object(p.jsx)(q,{table:t,callback_id:a})}),Object(p.jsx)(u.a,{children:Object(p.jsx)(s.a,{variant:"contained",onClick:i,color:"primary",children:"Close"})})]})}var h=a(73),f=a(58),O=a(51),x=(a(347),a(131)),g=a(536),y=a(842),v=a(366),_=a(832),k=a(834),w=a(139),C=a(221),S=a(4),D=a(19),I=a(41),T=a(168),$=a(31),P=function(e){switch(e.toLowerCase()){case"openfolder":case"folder":return $.v;case"closedfolder":return $.u;case"archive":case"zip":return $.l;case"diskimage":return $.c;case"executable":return $.e;case"word":return $.r;case"excel":return $.n;case"powerpoint":return $.q;case"pdf":case"adobe":return $.p;case"database":return $.g;case"key":return $.w;case"code":case"source":return $.m;case"download":return $.h;case"upload":return $.F;case"png":case"jpg":case"image":return $.o;case"list":return $.z;case"delete":return $.E;case"inject":return $.D;case"kill":return $.B;case"camera":return $.d;default:return $.k}},A=function(){},E=function(e){var t=e.cellData;e.rowData;return Object(p.jsxs)("div",{style:Object(r.a)({},(null===t||void 0===t?void 0:t.cellStyle)||null),children:[(null===t||void 0===t?void 0:t.copyIcon)?Object(p.jsx)(D.a,{title:"Copy to clipboard",children:Object(p.jsx)(C.a,{onClick:function(){return e=t.plaintext,void(Object(w.a)(e)?S.b.success("Copied text!"):S.b.error("Failed to copy text"));var e},size:"small",children:Object(p.jsx)(I.a,{icon:$.f})})}):null,(null===t||void 0===t?void 0:t.startIcon)?Object(p.jsx)(D.a,{title:(null===t||void 0===t?void 0:t.startIconHoverText)||"",children:Object(p.jsx)(I.a,{icon:P(null===t||void 0===t?void 0:t.startIcon),style:{marginRight:"5px",color:(null===t||void 0===t?void 0:t.startIconColor)||""}})}):null,(null===t||void 0===t?void 0:t.plaintextHoverText)?Object(p.jsx)(D.a,{title:t.plaintextHoverText,children:Object(p.jsx)("pre",{style:{display:"inline-block"},children:(null===t||void 0===t?void 0:t.plaintext)||" "})}):Object(p.jsx)("pre",{style:{display:"inline-block"},children:(null===t||void 0===t?void 0:t.plaintext)||" "}),(null===t||void 0===t?void 0:t.endIcon)?Object(p.jsx)(D.a,{title:(null===t||void 0===t?void 0:t.endIconHoverText)||"",children:Object(p.jsx)(I.a,{icon:P(null===t||void 0===t?void 0:t.endIcon),style:{color:(null===t||void 0===t?void 0:t.endIconColor)||""}})}):null]})},L=function(e){var t=e.cellData;try{var a=parseInt(t.plaintext);if(""===t.plaintext)return"";if(0===a)return"0 Bytes";var n=Math.floor(Math.log(a)/Math.log(1024));return parseFloat((a/Math.pow(1024,n)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][n]}catch(i){return(null===t||void 0===t?void 0:t.plaintext)||""}},F=function(e){var t=e.cellData;e.rowData;return Object(p.jsx)("div",{style:Object(r.a)({},(null===t||void 0===t?void 0:t.cellStyle)||null),children:(null===t||void 0===t?void 0:t.plaintextHoverText)?Object(p.jsx)(D.a,{title:t.plaintextHoverText,children:Object(p.jsx)("pre",{style:{display:"inline-block"},children:L({cellData:t})})}):Object(p.jsx)("pre",{style:{display:"inline-block"},children:L({cellData:t})})})},N=function(e){var t=e.cellData,a=e.callback_id,n=e.rowData,u=Object(O.a)(),b=o.a.useState(!1),j=Object(i.a)(b,2),f=j[0],w=j[1],C=o.a.useState(!1),S=Object(i.a)(C,2),T=S[0],$=S[1],A=o.a.useState(!1),E=Object(i.a)(A,2),L=E[0],F=E[1],N=o.a.useState(!1),q=Object(i.a)(N,2),R=q[0],B=q[1],M=o.a.useState(!1),z=Object(i.a)(M,2),W=z[0],H=z[1],U=Object(c.useRef)(null),G=o.a.useState(!1),K=Object(i.a)(G,2),V=K[0],Q=K[1],J=o.a.useState({}),Y=Object(i.a)(J,2),Z=Y[0],X=Y[1],ee=function(e){U.current&&U.current.contains(e.target)||Q(!1)},te=function(){w(!1),$(!1),F(!1),B(!1),H(!1),X({})},ae=function(){w(!1),$(!1),F(!1),B(!1),H(!1),X({})};return Object(p.jsxs)("div",{style:Object(r.a)(Object(r.a)({},(null===n||void 0===n?void 0:n.rowStyle)||null),(null===t||void 0===t?void 0:t.cellStyle)||null),children:[(null===t||void 0===t?void 0:t.plaintext)?t.plaintext:null,(null===t||void 0===t?void 0:t.button)?function(){var e,n,i,c,b,j,O,C,S,A,E,N,q,M,z,G,K,J,Y,ne,ie,re,ce,oe,se,le,de,ue,be,je,pe,me,he,fe,Oe,xe,ge,ye,ve,_e,ke;switch(t.button.type.toLowerCase()){case"dictionary":return Object(p.jsxs)(o.a.Fragment,{children:[Object(p.jsx)(D.a,{title:(null===t||void 0===t||null===(e=t.button)||void 0===e?void 0:e.hoverText)||"Display Data",children:Object(p.jsx)(s.a,{size:"small",variant:"contained",color:"primary",onClick:function(){return w(!0)},disabled:(null===t||void 0===t||null===(n=t.button)||void 0===n?void 0:n.disabled)||!1,startIcon:(null===t||void 0===t||null===(i=t.button)||void 0===i?void 0:i.startIcon)?Object(p.jsx)(I.a,{icon:P(null===t||void 0===t||null===(c=t.button)||void 0===c?void 0:c.startIcon),style:{color:(null===t||void 0===t||null===(b=t.button)||void 0===b?void 0:b.startIconColor)||""}}):null,children:(null===t||void 0===t||null===(j=t.button)||void 0===j?void 0:j.name)||" "})}),f&&Object(p.jsx)(l.a,{fullWidth:!0,maxWidth:"lg",open:f,onClose:function(){w(!1)},innerDialog:Object(p.jsx)(l.c,{title:(null===t||void 0===t||null===(O=t.button)||void 0===O?void 0:O.title)||"Title Here",leftColumn:(null===t||void 0===t||null===(C=t.button)||void 0===C?void 0:C.leftColumnTitle)||"Left Column",rightColumn:(null===t||void 0===t||null===(S=t.button)||void 0===S?void 0:S.rightColumnTitle)||"Right Column",value:(null===t||void 0===t||null===(A=t.button)||void 0===A?void 0:A.value)||{},onClose:function(){w(!1)}})})]});case"string":return Object(p.jsxs)(o.a.Fragment,{children:[Object(p.jsx)(D.a,{title:(null===t||void 0===t||null===(E=t.button)||void 0===E?void 0:E.hoverText)||"Display Data",children:Object(p.jsx)(s.a,{size:"small",variant:"contained",color:"primary",onClick:function(){return w(!0)},disabled:(null===t||void 0===t||null===(N=t.button)||void 0===N?void 0:N.disabled)||!1,startIcon:(null===t||void 0===t||null===(q=t.button)||void 0===q?void 0:q.startIcon)?Object(p.jsx)(I.a,{icon:P(null===t||void 0===t||null===(M=t.button)||void 0===M?void 0:M.startIcon),style:{color:(null===t||void 0===t||null===(z=t.button)||void 0===z?void 0:z.startIconColor)||""}}):null,children:(null===t||void 0===t||null===(G=t.button)||void 0===G?void 0:G.name)||" "})}),f&&Object(p.jsx)(d.a,{fullWidth:!0,maxWidth:"lg",open:f,title:(null===t||void 0===t||null===(K=t.button)||void 0===K?void 0:K.title)||"Title Here",value:(null===t||void 0===t||null===(J=t.button)||void 0===J?void 0:J.value)||"",onClose:function(){w(!1)}})]});case"table":return Object(p.jsxs)(o.a.Fragment,{children:[Object(p.jsx)(D.a,{title:(null===t||void 0===t||null===(Y=t.button)||void 0===Y?void 0:Y.hoverText)||"Display Data",children:Object(p.jsx)(s.a,{size:"small",variant:"contained",color:"primary",onClick:function(){return w(!0)},disabled:(null===t||void 0===t||null===(ne=t.button)||void 0===ne?void 0:ne.disabled)||!1,startIcon:(null===t||void 0===t||null===(ie=t.button)||void 0===ie?void 0:ie.startIcon)?Object(p.jsx)(I.a,{icon:P(null===t||void 0===t||null===(re=t.button)||void 0===re?void 0:re.startIcon),style:{color:(null===t||void 0===t||null===(ce=t.button)||void 0===ce?void 0:ce.startIconColor)||""}}):null,children:(null===t||void 0===t||null===(oe=t.button)||void 0===oe?void 0:oe.name)||" "})}),f&&Object(p.jsx)(l.a,{fullWidth:!0,maxWidth:"xl",open:f,onClose:function(){w(!1)},innerDialog:Object(p.jsx)(m,{title:(null===t||void 0===t||null===(se=t.button)||void 0===se?void 0:se.title)||"Title Here",table:(null===t||void 0===t||null===(le=t.button)||void 0===le?void 0:le.value)||{},callback_id:a,onClose:function(){w(!1)}})})]});case"task":return Object(p.jsxs)(o.a.Fragment,{children:[Object(p.jsx)(D.a,{title:(null===t||void 0===t||null===(de=t.button)||void 0===de?void 0:de.hoverText)||"Issues Task to Agent",children:Object(p.jsx)(s.a,{size:"small",onClick:function(){return $(!0)},disabled:(null===t||void 0===t||null===(ue=t.button)||void 0===ue?void 0:ue.disabled)||!1,variant:"contained",color:"secondary",startIcon:(null===t||void 0===t||null===(be=t.button)||void 0===be?void 0:be.startIcon)?Object(p.jsx)(I.a,{icon:P(null===t||void 0===t||null===(je=t.button)||void 0===je?void 0:je.startIcon),style:{color:(null===t||void 0===t||null===(pe=t.button)||void 0===pe?void 0:pe.startIconColor)||""}}):null,children:(null===t||void 0===t||null===(me=t.button)||void 0===me?void 0:me.name)||" "})}),T&&Object(p.jsx)(x.a,{ui_feature:(null===t||void 0===t||null===(he=t.button)||void 0===he?void 0:he.ui_feature)||" ",callback_id:a,parameters:(null===t||void 0===t||null===(fe=t.button)||void 0===fe?void 0:fe.parameters)||"",openDialog:(null===t||void 0===t||null===(Oe=t.button)||void 0===Oe?void 0:Oe.openDialog)||!1,getConfirmation:(null===t||void 0===t||null===(xe=t.button)||void 0===xe?void 0:xe.getConfirmation)||!1,onTasked:function(){return $(!1)}})]});case"menu":return Object(p.jsxs)(o.a.Fragment,{children:[T&&Object(p.jsx)(x.a,{ui_feature:Z.ui_feature,callback_id:a,parameters:Z.parameters,onTasked:te}),L&&Object(p.jsx)(l.a,{fullWidth:!0,maxWidth:"lg",open:L,onClose:ae,innerDialog:Object(p.jsx)(l.c,{title:Z.title,leftColumn:Z.leftColumnTitle,rightColumn:Z.rightColumnTitle,value:Z.value,onClose:ae})}),R&&Object(p.jsx)(d.a,{fullWidth:!0,maxWidth:"lg",open:R,title:(null===Z||void 0===Z?void 0:Z.title)||"Title Here",value:(null===Z||void 0===Z?void 0:Z.value)||"",onClose:ae}),W&&Object(p.jsx)(l.a,{fullWidth:!0,maxWidth:"xl",open:W,onClose:ae,innerDialog:Object(p.jsx)(m,{title:(null===Z||void 0===Z?void 0:Z.title)||"Title Here",table:(null===Z||void 0===Z?void 0:Z.value)||{},callback_id:a,onClose:ae})}),Object(p.jsx)(s.a,{size:"small",variant:"contained",color:"primary",ref:U,onClick:function(){return Q(!0)},disabled:(null===t||void 0===t||null===(ge=t.button)||void 0===ge?void 0:ge.disabled)||!1,startIcon:(null===t||void 0===t||null===(ye=t.button)||void 0===ye?void 0:ye.startIcon)?Object(p.jsx)(I.a,{icon:P(null===t||void 0===t||null===(ve=t.button)||void 0===ve?void 0:ve.startIcon),style:{color:(null===t||void 0===t||null===(_e=t.button)||void 0===_e?void 0:_e.startIconColor)||""}}):null,children:(null===t||void 0===t||null===(ke=t.button)||void 0===ke?void 0:ke.name)||" "}),Object(p.jsx)(y.a,{open:V,anchorEl:U.current,role:void 0,transition:!0,style:{zIndex:4},children:function(e){var a=e.TransitionProps,n=e.placement;return Object(p.jsx)(g.a,Object(r.a)(Object(r.a)({},a),{},{style:{transformOrigin:"bottom"===n?"center top":"center bottom"},children:Object(p.jsx)(h.a,{variant:"outlined",style:{backgroundColor:"dark"===u.palette.type?u.palette.primary.dark:u.palette.primary.light,color:"white"},children:Object(p.jsx)(k.a,{onClickAway:ee,children:Object(p.jsx)(_.a,{id:"split-button-menu",children:t.button.value.map((function(e,a){return Object(p.jsx)(v.a,{disabled:e.disabled,onClick:function(e){return function(e,a){switch(t.button.value[a].type.toLowerCase()){case"task":X(t.button.value[a]),$(!0);break;case"dictionary":X(t.button.value[a]),F(!0);break;case"string":X(t.button.value[a]),B(!0);break;case"table":X(t.button.value[a]),H(!0)}Q(!1)}(0,a)},children:Object(p.jsxs)(D.a,{title:(null===e||void 0===e?void 0:e.hoverText)||("task"===e.type?"Task an Agent":"Display Data"),children:[(null===e||void 0===e?void 0:e.startIcon)?Object(p.jsx)(I.a,{icon:P(null===e||void 0===e?void 0:e.startIcon),style:{color:(null===e||void 0===e?void 0:e.startIconColor)||"",marginRight:"5px"}}):null,e.name]})},e.name+a)}))})})})}))}})]})}}():null]})},q=function(e){var t=e.table,a=e.callback_id,r=Object(O.a)(),s=o.a.useState(530),l=Object(i.a)(s,2),d=l[0],u=l[1],b=Math.floor(d/35),j=o.a.useState([]),m=Object(i.a)(j,2),x=m[0],g=m[1],y=o.a.useState({sortKey:null,sortType:null,sortDirection:"ASC"}),v=Object(i.a)(y,2),_=v[0],k=v[1],w=o.a.useMemo((function(){if(null===_.sortKey||null===_.sortType)return x;var e=Object(n.a)(x);return"number"===_.sortType||"size"===_.sortType?e.sort((function(e,t){return parseInt(e[_.sortKey].plaintext)>parseInt(t[_.sortKey].plaintext)?1:-1})):"date"===_.sortType?e.sort((function(e,t){return new Date(e[_.sortKey].plaintext)>new Date(t[_.sortKey].plaintext)?1:-1})):e.sort((function(e,t){return void 0===e[_.sortKey].plaintext?-1:void 0===t[_.sortKey].plaintext||e[_.sortKey].plaintext.toLowerCase()>t[_.sortKey].plaintext.toLowerCase()?1:-1})),"DESC"===_.sortDirection&&e.reverse(),e}),[x,_]),C=o.a.useMemo((function(){return w.map((function(e){for(var n=[],i=0;i0&&e.onPasswordChanged({user_id:t,old_password:n,new_password:i}),d(!1)},handleClose:function(){d(!1)},title:"Update Operator"},e))})]}),Object(x.jsx)(C.a,{children:Object(x.jsx)($.a,{checked:e.view_utc_time,onChange:function(t){var a=e.id;e.onViewUTCChanged(a,!e[t.target.name])},color:"primary",inputProps:{"aria-label":"primary checkbox"},name:"view_utc_time"})}),Object(x.jsx)(C.a,{children:Object(x.jsx)($.a,{checked:e.active,onChange:function(t){var a=e.id;e.onActiveChanged(a,!e[t.target.name])},inputProps:{"aria-label":"primary checkbox"},name:"active"})}),Object(x.jsx)(C.a,{children:Object(Z.b)(e.last_login,g.user.view_utc_time)}),Object(x.jsx)(C.a,{children:Object(Z.b)(e.creation_time,g.user.view_utc_time)}),Object(x.jsx)(C.a,{children:Object(x.jsx)($.a,{checked:e.admin,onChange:function(t){var a=e.id;e.onAdminChanged(a,!e[t.target.name])},inputProps:{"aria-label":"primary checkbox"},name:"admin"})}),Object(x.jsx)(C.a,{children:e.id===g.user.id&&Object(x.jsx)(E.a,{"aria-label":"expand row",size:"small",onClick:function(){return i(!n)},children:n?Object(x.jsx)(R.a,{className:"mythicElement"}):Object(x.jsx)(N.a,{className:"mythicElement"})})})]},e.id),Object(x.jsx)(I.a,{children:e.id===g.user.id&&Object(x.jsx)(C.a,{style:{paddingBottom:0,paddingTop:0},colSpan:9,children:Object(x.jsx)(A.a,{in:n,timeout:"auto",unmountOnExit:!0,children:Object(x.jsxs)(P.a,{margin:1,children:[Object(x.jsx)(L.a,{variant:"h6",gutterBottom:!0,component:"div",style:{display:"inline-block"},children:"API Tokens"}),Object(x.jsx)(b.a,{size:"small",onClick:e.onCreateAPIToken,style:{float:"right"},startIcon:Object(x.jsx)(W.a,{}),color:"primary",variant:"contained",children:"New"}),Object(x.jsxs)(k.a,{size:"small","aria-label":"tokens",style:{tableLayout:"fixed",overflowWrap:"break-word"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{style:{width:"10rem"},children:"Delete"}),Object(x.jsx)(C.a,{children:"Token"})]})}),Object(x.jsx)(w.a,{children:e.apitokens.map((function(t){return Object(o.createElement)(H,Object(v.a)(Object(v.a)({},t),{},{key:"token"+t.id,onDeleteAPIToken:e.onDeleteAPIToken}))}))})]})]})})})})]})}var ee=a(51);function te(e){var t=Object(ee.a)(),a=s.a.useState(!1),n=Object(u.a)(a,2),i=n[0],r=n[1];return Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(T.a,{elevation:5,style:{backgroundColor:t.pageHeader.main,color:t.pageHeaderText.main,marginBottom:"5px",marginTop:"10px",marginRight:"5px"},variant:"elevation",children:Object(x.jsx)(L.a,{variant:"h3",style:{textAlign:"left",display:"inline-block",marginLeft:"20px"},children:"Settings"})}),Object(x.jsxs)(S.a,{component:T.a,className:"mythicElement",children:[Object(x.jsx)(b.a,{size:"small",onClick:function(){r(!0)},style:{float:"right"},startIcon:Object(x.jsx)(W.a,{}),color:"primary",variant:"contained",children:"New Operator"}),Object(x.jsx)(Y.a,{open:i,onClose:function(){r(!1)},innerDialog:Object(x.jsx)(Q,Object(v.a)({title:"New Operator",onAccept:function(t,a,n,i){n!==i?O.b.error("Passwords don't match"):0===i.length?O.b.error("Password must not be empty"):0===a.length?O.b.error("Username must not be empty"):(e.onNewOperator(a,i),r(!1))},handleClose:function(){r(!1)}},e))}),Object(x.jsxs)(k.a,{size:"small",style:{tableLayout:"fixed",maxWidth:"calc(100vw)",overflow:"scroll"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{style:{width:"9rem"},children:"Delete Account"}),Object(x.jsx)(C.a,{children:"Username"}),Object(x.jsx)(C.a,{style:{width:"6rem"},children:"Modify"}),Object(x.jsx)(C.a,{style:{width:"10rem"},children:"UTC Timestamps"}),Object(x.jsx)(C.a,{style:{width:"9rem"},children:"Account Active"}),Object(x.jsx)(C.a,{children:"Last Login"}),Object(x.jsx)(C.a,{children:"Account Creation Date"}),Object(x.jsx)(C.a,{style:{width:"9rem"},children:"Admin Status"}),Object(x.jsx)(C.a,{style:{width:"5rem"},children:"More..."})]})}),Object(x.jsx)(w.a,{children:e.operators.map((function(t){return Object(x.jsx)(X,Object(v.a)({onViewUTCChanged:e.onViewUTCChanged,onAdminChanged:e.onAdminChanged,onActiveChanged:e.onActiveChanged,onDeleteOperator:e.onDeleteOperator,onUsernameChanged:e.onUsernameChanged,onPasswordChanged:e.onPasswordChanged,onDeleteAPIToken:e.onDeleteAPIToken,onCreateAPIToken:e.onCreateAPIToken},t),"operator"+t.id)}))})]})]})]})}var ae,ne,ie,re,ce,oe,se,le,de,ue,be=a(57),je=a(191),pe=a(193),me=Object(be.a)(ae||(ae=Object(_.a)(["\nquery GetOperators {\n operator(where: {deleted: {_eq: false}}, order_by: {username: asc}) {\n active\n admin\n creation_time\n deleted\n id\n last_login\n username\n view_utc_time\n apitokens {\n token_value\n token_type\n active\n id\n }\n }\n}\n"]))),he=Object(be.a)(ne||(ne=Object(_.a)(["\nmutation SettingsUpdateOperatorViewUTCTime($id: Int!, $view_utc_time: Boolean) {\n update_operator_by_pk(pk_columns: {id: $id}, _set: {view_utc_time: $view_utc_time}) {\n id\n view_utc_time\n }\n}\n"]))),fe=Object(be.a)(ie||(ie=Object(_.a)(["\nmutation SettingsUpdateOperatorAdminMutation($id: Int!, $admin: Boolean) {\n update_operator_by_pk(pk_columns: {id: $id}, _set: {admin: $admin}) {\n id\n admin\n }\n}\n"]))),Oe=Object(be.a)(re||(re=Object(_.a)(["\nmutation SettingsUpdateOperatorActiveMutation($id: Int!, $active: Boolean) {\n update_operator_by_pk(pk_columns: {id: $id}, _set: {active: $active}) {\n id\n active\n }\n}\n"]))),xe=Object(be.a)(ce||(ce=Object(_.a)(["\nmutation SettingsDeleteOperatorMutation($id: Int!) {\n update_operator_by_pk(pk_columns: {id: $id}, _set: {deleted: true}) {\n id\n deleted\n }\n}\n"]))),ge=Object(be.a)(oe||(oe=Object(_.a)(["\nmutation SettingsUsernameOperatorMutation($id: Int!, $username: String!) {\n update_operator_by_pk(pk_columns: {id: $id}, _set: {username: $username}) {\n id\n username\n }\n}\n"]))),ye=Object(be.a)(se||(se=Object(_.a)(["\nmutation NewOperator($username: String!, $password: String!) {\n createOperator(input: {password: $password, username: $username}) {\n active\n creation_time\n deleted\n error\n id\n last_login\n status\n username\n view_utc_time\n }\n}\n"]))),ve=Object(be.a)(le||(le=Object(_.a)(["\nmutation operatorsUpdatePasswordMutation($user_id: Int!, $new_password: String!, $old_password: String){\n updatePassword(user_id: $user_id, new_password: $new_password, old_password: $old_password){\n status\n error\n }\n}\n"]))),_e=Object(be.a)(de||(de=Object(_.a)(['\nmutation createAPITokenMutation{\n createAPIToken(token_type: "User"){\n id\n token_value\n status\n error\n operator_id\n }\n}\n']))),ke=Object(be.a)(ue||(ue=Object(_.a)(["\nmutation deleteAPIToken($id: Int!){\n delete_apitokens_by_pk(id: $id){\n id\n operator_id\n }\n}\n"])));function we(e){var t=Object(f.a)(h.b),a=s.a.useState([]),n=Object(u.a)(a,2),i=n[0],r=n[1];Object(je.a)(me,{fetchPolicy:"no-cache",onCompleted:function(e){r(e.operator)}});var c=Object(pe.a)(he,{onCompleted:function(e){if(null!==e.update_operator_by_pk){var a=i.map((function(t){return t.id===e.update_operator_by_pk.id?Object(v.a)(Object(v.a)({},t),{},{view_utc_time:e.update_operator_by_pk.view_utc_time}):Object(v.a)({},t)}));if(e.update_operator_by_pk.id===t.user.id){var n=Object(h.b)();n.user.view_utc_time=e.update_operator_by_pk.view_utc_time,Object(h.b)(n)}r(a),O.b.success("Successfully updated")}else O.b.warning("Cannot update another user's data without Admin permissions")},onError:function(e){console.log(e),O.b.error("Unable to update operator timestamps without Admin permissions")}}),o=Object(u.a)(c,1)[0],l=Object(pe.a)(xe,{onCompleted:function(e){if(null!==e.update_operator_by_pk){var t=i.filter((function(t){return t.id!==e.update_operator_by_pk.id}));r(t),O.b.success("Successfully updated")}else O.b.warning("Cannot update another user's data without Admin permissions")},onError:function(){O.b.warning("Unable to delete operator without Admin permissions")}}),d=Object(u.a)(l,1)[0],b=Object(pe.a)(fe,{onCompleted:function(e){if(null!==e.update_operator_by_pk){var t=i.map((function(t){return t.id===e.update_operator_by_pk.id?Object(v.a)(Object(v.a)({},t),{},{admin:e.update_operator_by_pk.admin}):Object(v.a)({},t)}));r(t),O.b.success("Successfully updated")}else O.b.warning("Cannot update another user's data without Admin permissions")},onError:function(){O.b.warning("Unable to update operator admin status without Admin permissions")}}),j=Object(u.a)(b,1)[0],p=Object(pe.a)(Oe,{onCompleted:function(e){if(null!==e.update_operator_by_pk){var t=i.map((function(t){return t.id===e.update_operator_by_pk.id?Object(v.a)(Object(v.a)({},t),{},{active:e.update_operator_by_pk.active}):Object(v.a)({},t)}));r(t),O.b.success("Successfully updated")}else O.b.warning("Cannot update another user's data without Admin permissions")},onError:function(){O.b.warning("Unable to update operator active status without Admin permissions")}}),m=Object(u.a)(p,1)[0],g=Object(pe.a)(_e,{onCompleted:function(e){if("success"===e.createAPIToken.status){O.b.success("Successfully created new API Token");var t=i.map((function(t){return t.id===e.createAPIToken.operator_id?Object(v.a)(Object(v.a)({},t),{},{apitokens:[].concat(Object(y.a)(t.apitokens),[Object(v.a)({},e.createAPIToken)])}):Object(v.a)({},t)}));r(t)}else O.b.error(e.createAPIToken.error)},onError:function(e){console.log(e)}}),_=Object(u.a)(g,1)[0],k=Object(pe.a)(ke,{onCompleted:function(e){var t=i.map((function(t){return t.id===e.delete_apitokens_by_pk.operator_id?Object(v.a)(Object(v.a)({},t),{},{apitokens:t.apitokens.filter((function(t){return t.id!==e.delete_apitokens_by_pk.id}))}):Object(v.a)({},t)}));r(t)},onError:function(e){}}),w=Object(u.a)(k,1)[0],C=Object(pe.a)(ye,{onCompleted:function(e){if("success"===e.createOperator.status){var t=e.createOperator;r([].concat(Object(y.a)(i),[t]))}else O.b.error(e.createOperator.error)},onError:function(e){O.b.warning("Unable to create new operator"),console.log(e)}}),S=Object(u.a)(C,1)[0],D=Object(pe.a)(ge,{onCompleted:function(e){if(null!==e.update_operator_by_pk){var t=i.map((function(t){return t.id===e.update_operator_by_pk.id?Object(v.a)(Object(v.a)({},t),{},{username:e.update_operator_by_pk.username}):Object(v.a)({},t)}));r(t),O.b.success("Successfully updated")}else O.b.warning("Cannot update another user's data without Admin permissions")},onError:function(){O.b.warning("Unable to update operator's username without Admin permissions")}}),I=Object(u.a)(D,1)[0],T=Object(pe.a)(ve,{onCompleted:function(e){"success"===e.updatePassword.status?O.b.success("Successfully updated password"):O.b.warning(e.updatePassword.error)},onError:function(){O.b.warning("Unable to update operator's password without Admin permissions")}}),$=Object(u.a)(T,1)[0];return Object(x.jsx)("div",{style:{height:"calc(94vh)",marginTop:"10px",marginRight:"5px"},children:Object(x.jsx)(te,{onViewUTCChanged:function(e,t){o({variables:{id:e,view_utc_time:t}})},onAdminChanged:function(e,t){j({variables:{id:e,admin:t}})},onActiveChanged:function(e,t){m({variables:{id:e,active:t}})},onNewOperator:function(e,t){S({variables:{username:e,password:t}})},onDeleteOperator:function(e){d({variables:{id:e}})},onUsernameChanged:function(e,t){I({variables:{id:e,username:t}})},onPasswordChanged:function(e){var t=e.user_id,a=e.old_password,n=e.new_password;$({variables:{user_id:t,new_password:n,old_password:a}})},onCreateAPIToken:function(){_({variables:{}})},onDeleteAPIToken:function(e){w({variables:{id:e}})},operators:i})})}var Ce,Se=a(142),De=a(11),Ie=a(841),Te=a(901),$e=a(902),Pe=a(840),Ae=a(222),Ee=Object(be.a)(Ce||(Ce=Object(_.a)(["\nquery GetPayloadDetails($payload_name: String!) {\n payloadtype(where: {ptype: {_eq: $payload_name}}) {\n buildparameters (where: {deleted: {_eq: false} } ){\n description\n name\n id\n parameter\n parameter_type\n required\n verifier_regex\n }\n }\n}\n"])));function Le(e){var t=Object(o.useState)([]),a=Object(u.a)(t,2),n=a[0],i=a[1],r=Object(je.a)(Ee,{variables:{payload_name:e.payload_name},onCompleted:function(e){console.log(e);var t=e.payloadtype[0].buildparameters.map((function(e){switch(e.parameter_type){case"ChooseOne":return Object(v.a)(Object(v.a)({},e),{},{defaultParameter:e.parameter.split("\n")[0],options:e.parameter.split("\n").join(", ")});default:return Object(v.a)(Object(v.a)({},e),{},{defaultParameter:e.parameter})}}));i(t)}}),c=r.loading,l=r.error;return c?Object(x.jsx)(Ae.a,{}):l?(console.error(l),Object(x.jsx)("div",{children:"Error!"})):Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsxs)(V.a,{id:"form-dialog-title",children:[e.payload_name,"'s Build Parameters"]}),Object(x.jsxs)(G.a,{dividers:!0,children:[Object(x.jsx)(K.a,{children:"These are the build parameters associated with this payload"}),Object(x.jsxs)(k.a,{size:"small","aria-label":"details",style:{tableLayout:"fixed",overflowWrap:"break-word"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{children:"Parameter"}),Object(x.jsx)(C.a,{children:"Value"})]})}),Object(x.jsx)(w.a,{children:n.map((function(e){return Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:e.description}),Object(x.jsxs)(C.a,{children:[Object(x.jsx)("b",{children:"Scripting/Building Name: "}),Object(x.jsx)("pre",{style:{display:"inline-block",whiteSpace:"pre-wrap",margin:0},children:e.name}),Object(x.jsx)("br",{}),Object(x.jsx)("b",{children:"Parameter Type: "}),Object(x.jsx)("pre",{style:{display:"inline-block",whiteSpace:"pre-wrap",margin:0},children:e.parameter_type}),Object(x.jsx)("br",{}),Object(x.jsx)("b",{children:"Default Parameter: "}),Object(x.jsx)("pre",{style:{display:"inline-block",whiteSpace:"pre-wrap",margin:0},children:e.defaultParameter}),Object(x.jsx)("br",{}),"ChooseOne"===e.parameter_type?Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)("b",{children:"Parameter Options: "}),Object(x.jsx)("pre",{style:{display:"inline-block",whiteSpace:"pre-wrap",margin:0},children:e.options}),Object(x.jsx)("br",{})]}):null,Object(x.jsx)("b",{children:"Required? "}),Object(x.jsx)("pre",{style:{display:"inline-block",whiteSpace:"pre-wrap",margin:0},children:e.required?"Yes":"No"}),Object(x.jsx)("br",{}),Object(x.jsx)("b",{children:"Verifier Regex: "}),Object(x.jsx)("pre",{style:{display:"inline-block",whiteSpace:"pre-wrap",margin:0},children:e.verifier_regex}),Object(x.jsx)("br",{})]})]},"buildprop"+e.id)}))})]})]}),Object(x.jsx)(U.a,{children:Object(x.jsx)(b.a,{variant:"contained",onClick:e.handleClose,color:"primary",children:"Close"})})]})}var Fe=Object(Se.a)((function(e){return{root:{width:"100%",display:"flex",marginBottom:"10px"},expand:{transform:"rotate(0deg)",marginLeft:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest})},expandOpen:{transform:"rotate(180deg)"},running:{backgroundColor:"#44b700",color:"#44b700"},notrunning:{backgroundColor:"red",color:"red"}}})),Ne=Object(De.a)((function(e){return{badge:{boxShadow:"0 0 0 2px white","&::after":{position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:"50%",animation:"$ripple 1.2s infinite ease-in-out",border:"1px solid currentColor",content:'""'}},"@keyframes ripple":{"0%":{transform:"scale(.8)",opacity:1},"100%":{transform:"scale(2.4)",opacity:0}}}}))(Pe.a);function qe(e){var t=Fe(),a=s.a.useState(""),n=Object(u.a)(a,2),i=n[0],r=n[1],c=s.a.useState(!1),l=Object(u.a)(c,2),d=l[0],j=l[1],p=s.a.useState(""),m=Object(u.a)(p,2),h=m[0],f=m[1],O=new Date,g=(O.getTime()+6e4*O.getTimezoneOffset()-new Date(e.last_heartbeat).getTime())/1e3<30?"running":"notrunning";return Object(o.useEffect)((function(){if(e.wrap_these_payload_types.length>0){var t=e.wrap_these_payload_types.map((function(e){return e.wrapped.ptype}));r(t.join(", "))}else r("");f(e.supported_os.split(",").join(", "))}),[e.wrap_these_payload_types,e.supported_os]),Object(x.jsxs)(Ie.a,{className:t.root,elevation:5,children:[Object(x.jsx)(Ne,{overlap:"circle",classes:{badge:t[g]},invisible:!1,anchorOrigin:{vertical:"bottom",horizontal:"right"},children:Object(x.jsx)(Te.a,{className:t.media,component:"img",style:{width:"125px",height:"125",padding:"10px",objectFit:"unset"},src:"/static/"+e.ptype+".svg"})}),Object(x.jsxs)("div",{style:{maxWidth:"60%"},children:[Object(x.jsx)(L.a,{variant:"h4",component:"h1",style:{textAlign:"left",marginLeft:"10px"},children:e.ptype}),Object(x.jsxs)($e.a,{style:{textAlign:"left"},children:[Object(x.jsxs)(L.a,{variant:"body1",component:"p",children:[Object(x.jsx)("b",{children:"Author:"})," ",e.author]}),Object(x.jsxs)(L.a,{variant:"body1",component:"p",children:[Object(x.jsx)("b",{children:"Supported Operating Systems:"})," ",h]}),0===e.wrap_these_payload_types.length?null:Object(x.jsxs)(L.a,{variant:"body1",component:"p",children:[Object(x.jsx)("b",{children:"Wrapped Payload Types:"})," ",i]}),Object(x.jsx)(L.a,{variant:"body2",component:"p",children:e.note})]})]}),Object(x.jsxs)("div",{style:{display:"inline-flex",paddingRight:"10px",marginLeft:"auto",justifyContent:"space-evenly",alignItems:"stretch",flexDirection:"column",alignContent:"flex-end"},children:[Object(x.jsx)(b.a,{size:"small",variant:"contained",color:"primary",href:e.wrapper?"/docs/wrappers/"+e.ptype:"/docs/agents/"+e.ptype,target:"_blank",children:"Docs"}),Object(x.jsx)(b.a,{size:"small",onClick:function(){j(!0)},color:"primary",variant:"contained",children:"Building Info"}),Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"lg",open:d,onClose:function(){j(!1)},innerDialog:Object(x.jsx)(Le,Object(v.a)(Object(v.a)({},e),{},{payload_name:e.ptype}))})]})]})}var Re,Be,Me=a(545),ze=Object(be.a)(Re||(Re=Object(_.a)(["\n subscription getPayloadTypesSubscription {\n payloadtype(where: {deleted: {_eq: false}}, order_by: {ptype: asc}) {\n author\n container_running\n id\n last_heartbeat\n note\n ptype\n supported_os\n wrapper\n translationcontainer {\n id\n name\n last_heartbeat\n container_running\n }\n wrap_these_payload_types {\n id\n wrapped {\n ptype\n }\n }\n }\n}\n "])));function We(e){var t=Object(ee.a)(),a=Object(Me.a)(ze).data,n=s.a.useState([]),i=Object(u.a)(n,2),r=i[0],c=i[1];return Object(o.useEffect)((function(){c(void 0!==a?a.payloadtype:[])}),[a]),Object(x.jsxs)("div",{style:{flexDirection:"column",alignItems:"stretch"},children:[Object(x.jsx)(T.a,{elevation:5,style:{backgroundColor:t.pageHeader.main,color:t.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:Object(x.jsx)(L.a,{variant:"h3",style:{textAlign:"left",display:"inline-block",marginLeft:"20px"},children:"Payload Types"})}),r.map((function(e){return Object(x.jsx)(qe,Object(v.a)({},e),"payloadtype"+e.id)}))]})}var He=Object(be.a)(Be||(Be=Object(_.a)(["\nquery GetPC2Details($payload_name: String!) {\n c2profile(where: {name: {_eq: $payload_name}}) {\n c2profileparameters(where: {deleted: {_eq: false}}) {\n default_value\n description\n format_string\n name\n parameter_type\n id\n randomize\n required\n verifier_regex\n }\n }\n}\n"])));function Ue(e){var t=Object(o.useState)([]),a=Object(u.a)(t,2),n=a[0],i=a[1],r=Object(je.a)(He,{variables:{payload_name:e.payload_name},onCompleted:function(e){var t=e.c2profile[0].c2profileparameters.map((function(e){switch(e.parameter_type){case"ChooseOne":return Object(v.a)(Object(v.a)({},e),{},{defaultParameter:e.default_value.split("\n")[0],options:e.default_value.split("\n").join(", ")});case"Date":return Object(v.a)(Object(v.a)({},e),{},{defaultParameter:"Today with an offset of "+e.default_value+" days"});case"Dictionary":return Object(v.a)(Object(v.a)({},e),{},{defaultParameter:JSON.stringify(JSON.parse(e.default_value),null,2)});default:return Object(v.a)(Object(v.a)({},e),{},{defaultParameter:e.default_value})}}));i(t)}}),c=r.loading,l=r.error;return c?Object(x.jsx)(Ae.a,{}):l?(console.error(l),Object(x.jsx)("div",{children:"Error!"})):Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsxs)(V.a,{id:"form-dialog-title",children:[e.payload_name,"'s Build Parameters"]}),Object(x.jsxs)(G.a,{dividers:!0,children:[Object(x.jsx)(K.a,{children:"These are the build parameters associated with this payload"}),Object(x.jsxs)(k.a,{size:"small","aria-label":"details",style:{tableLayout:"fixed",overflowWrap:"break-word"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{children:"Parameter"}),Object(x.jsx)(C.a,{children:"Value"})]})}),Object(x.jsx)(w.a,{children:n.map((function(e){return Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{children:e.description}),Object(x.jsxs)(C.a,{children:[Object(x.jsx)("b",{children:"Scripting/Building Name: "}),Object(x.jsx)("pre",{style:{display:"inline-block",whiteSpace:"pre-wrap",margin:0},children:e.name}),Object(x.jsx)("br",{}),Object(x.jsx)("b",{children:"Parameter Type: "}),Object(x.jsx)("pre",{style:{display:"inline-block",whiteSpace:"pre-wrap",margin:0},children:e.parameter_type}),Object(x.jsx)("br",{}),Object(x.jsx)("b",{children:"Default Parameter: "}),Object(x.jsx)("pre",{style:{display:"inline-block",whiteSpace:"pre-wrap",margin:0},children:e.defaultParameter}),Object(x.jsx)("br",{}),"ChooseOne"===e.parameter_type?Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)("b",{children:"Parameter Options: "}),Object(x.jsx)("pre",{style:{display:"inline-block",whiteSpace:"pre-wrap",margin:0},children:e.options}),Object(x.jsx)("br",{})]}):null,Object(x.jsx)("b",{children:"Required? "}),Object(x.jsx)("pre",{style:{display:"inline-block",whiteSpace:"pre-wrap",margin:0},children:e.required?"Yes":"No"}),Object(x.jsx)("br",{}),""===e.verifier_regex?null:Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)("b",{children:"Verifier Regex: "}),Object(x.jsx)("pre",{style:{display:"inline-block",whiteSpace:"pre-wrap",margin:0},children:e.verifier_regex}),Object(x.jsx)("br",{})]}),Object(x.jsx)("b",{children:"Randomize value?: "}),Object(x.jsx)("pre",{style:{display:"inline-block",whiteSpace:"pre-wrap",margin:0},children:e.randomize?"Yes":"No"}),Object(x.jsx)("br",{}),""===e.format_string?null:Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)("b",{children:"Random Format String: "}),Object(x.jsx)("pre",{style:{display:"inline-block",whiteSpace:"pre-wrap",margin:0},children:e.format_string}),Object(x.jsx)("br",{})]})]})]},"buildprop"+e.id)}))})]})]}),Object(x.jsx)(U.a,{children:Object(x.jsx)(b.a,{variant:"contained",onClick:e.onClose,color:"primary",children:"Close"})})]})}var Ge,Ke=a(164),Ve=a.n(Ke),Qe=a(904),Je=a(105),Ye=a.n(Je),Ze=a(834),Xe=a(536),et=a(842),tt=a(366),at=a(832),nt=Object(be.a)(Ge||(Ge=Object(_.a)(["\nquery getProfileOutput($id: Int!) {\n getProfileOutput(id: $id) {\n status\n error\n output\n }\n}\n"])));function it(e){var t=Object(je.a)(nt,{variables:{id:e.profile_id},onCompleted:function(e){},fetchPolicy:"network-only"}),a=t.loading,n=t.error,i=t.data;return a?Object(x.jsx)(Ae.a,{}):n?(console.error(n),Object(x.jsx)("div",{children:"Error!"})):Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsxs)(V.a,{id:"form-dialog-title",children:[e.payload_name,"'s Current Stdout/Stderr"]}),Object(x.jsxs)(G.a,{dividers:!0,children:[Object(x.jsx)(K.a,{children:"This is the current Stdout/Stderr for the profile. This goes away once you close this dialog."}),Object(x.jsx)(j.a,{multiline:!0,onChange:function(){},value:i.getProfileOutput.output})]}),Object(x.jsx)(U.a,{children:Object(x.jsx)(b.a,{variant:"contained",onClick:e.onClose,color:"primary",children:"Close"})})]})}var rt,ct=a(138),ot=a.n(ct),st=(a(324),a(252),a(325),Object(be.a)(rt||(rt=Object(_.a)(["\nquery getProfileConfigOutput($id: Int!, $filename: String!) {\n downloadContainerFile(id: $id, filename: $filename) {\n status\n error\n filename\n data\n }\n}\n"]))));function lt(e){var t=Object(o.useState)(""),a=Object(u.a)(t,2),n=a[0],i=a[1],r=Object(je.a)(st,{variables:{id:e.profile_id,filename:"config.json"},onCompleted:function(e){"error"===e.downloadContainerFile.status?i("Errored trying to read file from container\n"+e.downloadContainerFile.error):(console.log(e),i(atob(e.downloadContainerFile.data)))},fetchPolicy:"network-only"}),c=r.loading,l=r.error;if(c)return Object(x.jsx)(Ae.a,{});if(l)return console.error(l),Object(x.jsx)("div",{children:"Error!"});return Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsxs)(V.a,{id:"form-dialog-title",children:[e.payload_name,"'s Current Configuration"]}),Object(x.jsx)(G.a,{dividers:!0,children:Object(x.jsx)(ot.a,{mode:"json",theme:"monokai",onChange:function(e,t){i(e)},fontSize:14,showGutter:!0,highlightActiveLine:!0,value:n,focus:!0,width:"100%",setOptions:{showLineNumbers:!0,tabSize:4}})}),Object(x.jsxs)(U.a,{children:[Object(x.jsx)(b.a,{variant:"contained",onClick:e.onClose,color:"primary",children:"Close"}),Object(x.jsx)(b.a,{variant:"contained",onClick:function(){e.onConfigSubmit(btoa(n)),e.onClose()},color:"secondary",children:"Submit"})]})]})}function dt(e){return Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsxs)(V.a,{id:"form-dialog-title",children:[e.payload_name,"'s Current Stdout/Stderr"]}),Object(x.jsxs)(G.a,{dividers:!0,children:[Object(x.jsx)(K.a,{children:"This is the current Stdout/Stderr for the profile. This goes away once you close this dialog."}),Object(x.jsx)(j.a,{multiline:!0,value:e.output,onChange:function(){}})]}),Object(x.jsx)(U.a,{children:Object(x.jsx)(b.a,{variant:"contained",onClick:e.onClose,color:"primary",children:"Close"})})]})}var ut=a(471),bt=a.n(ut),jt=a(26),pt=a(249),mt=a(364),ht=a(368),ft=a(192),Ot=a(363),xt=a(188),gt=a.n(xt),yt=a(90),vt=a(915),_t=a(310),kt=a(19);function wt(e){var t=e.onChange,a=e.parameter_type,n=e.default_value,i=e.name,r=e.required,c=e.verifier_regex,l=e.id,d=e.description,p=e.value,m=(e.returnAllDictValues,s.a.useState("")),h=Object(u.a)(m,2),f=h[0],O=h[1],g=Object(ee.a)(),_=s.a.useState([]),k=Object(u.a)(_,2),w=k[0],S=k[1],D=s.a.useState([]),T=Object(u.a)(D,2),P=T[0],A=T[1],L=s.a.useState([]),F=Object(u.a)(L,2),N=F[0],q=F[1],R=s.a.useState(""),B=Object(u.a)(R,2),z=B[0],W=B[1],H=s.a.useState([]),U=Object(u.a)(H,2),G=U[0],K=U[1],V=s.a.useState(new Date),Q=Object(u.a)(V,2),J=Q[0],Y=Q[1],Z=function(e){var a=e.reduce((function(e,t){return""!==t.value?[].concat(Object(y.a)(e),[{custom:"*"===t.name,key:t.key,name:t.name,value:t.value}]):Object(y.a)(e)}),[]);t(i,a,!1)};Object(o.useEffect)((function(){if("ChooseOne"===a){if(n){var e=n.split("\n");O(e[0]),K(e)}""!==p&&void 0!==p&&(O(p),t(i,p,""))}else if("Date"===a){if(""!==n){var r=new Date;r.setDate(r.getDate()+parseInt(n)),ie(r),O(-1)}""!==p&&void 0!==p&&p.includes("-")&&(Y(new Date(p)),O(-1),t(i,new Date(p).toISOString().slice(0,10),""))}else if("Dictionary"===a)if(""!==p&&void 0!==p&&"object"===typeof p){var c=p.reduce((function(e,t){return t.default_show?[].concat(Object(y.a)(e),[Object(v.a)({},t)]):Object(y.a)(e)}),[]);Z(c),S(c),A(p);var o=p.reduce((function(e,t){var a=c.reduce((function(e,a){return a.name===t.name?e+1:e}),0);return-1===t.max||t.max>a?[].concat(Object(y.a)(e),[Object(v.a)({},t)]):Object(y.a)(e)}),[]);q(o),o.length>0&&W(o[0])}else{var s=JSON.parse(n);A(s);var l=s.reduce((function(e,t){return t.default_show?[].concat(Object(y.a)(e),[Object(v.a)(Object(v.a)({},t),{},{value:t.default_value,key:"*"===t.name?"":t.name})]):Object(y.a)(e)}),[]);Z(l),S(l);var d=s.reduce((function(e,t){var a=l.reduce((function(e,a){return a.name===t.name?e+1:e}),0);return-1===t.max||t.max>a?[].concat(Object(y.a)(e),[Object(v.a)(Object(v.a)({},t),{},{value:t.default_value,key:"*"===t.name?"":t.name})]):Object(y.a)(e)}),[]);q(d),d.length>0&&W(d[0])}else"Boolean"===a?(O(void 0===n||"true"===n.toLowerCase()),""!==p&&void 0!==p&&O(p)):(void 0!==n&&O(n),""!==p&&void 0!==p&&(O(p),t(i,p,"")))}),[n,a,i]);var X=function(e){O(e.target.value),t(i,e.target.value,!1)},te=function(e,a,n){O(a),t(e,a,n)},ae=function(e){return(r&&""!==c||""!==c&&""!==e)&&!RegExp(c).test(e)},ne=function(){var e=Object(v.a)({},z);"*"===e.name&&(e.key="",e.value="");var t=[].concat(Object(y.a)(w),[Object(v.a)(Object(v.a)({},e),{},{default_show:!0})]);S(t);var a=N.reduce((function(a,n){var i=t.reduce((function(e,t){return t.name===n.name?e+1:e}),0);return e.name===n.name&&(i+=1),-1===n.max||n.max>i?[].concat(Object(y.a)(a),[Object(v.a)({},n)]):Object(y.a)(a)}),[]);Z(t),q(a),a.length>0&&W(a[0])},ie=function(e){Y(e),t(i,e.toISOString().slice(0,10),"")},re=function(e){var a=!f;O(a),t(i,a,!1)};return Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{children:Object(x.jsx)(kt.a,{title:i.length>0?i:"No Description",children:d})}),Object(x.jsx)(C.a,{children:function(){switch(a){case"Date":return Object(x.jsx)(yt.a,{utils:_t.a,children:Object(x.jsx)(ft.a,{container:!0,justify:"flex-start",children:Object(x.jsx)(vt.a,{disableToolbar:!0,variant:"inline",format:"MM/dd/yyyy",margin:"normal",value:J,onChange:ie,KeyboardButtonProps:{"aria-label":"change date"}})})});case"ChooseOne":return Object(x.jsx)(mt.a,{children:Object(x.jsx)(ht.a,{native:!0,value:f,onChange:X,children:G.map((function(e,t){return Object(x.jsx)("option",{value:e,children:e},"buildparamopt"+t)}))})});case"Dictionary":return Object(x.jsxs)(s.a.Fragment,{children:[w.map((function(e,t){return Object(x.jsxs)("div",{children:[Object(x.jsxs)(E.a,{onClick:function(e){!function(e){var t=w[e],a=w.filter((function(t,a){return e!==a}));S(a);var n=P.reduce((function(e,n){var i=a.reduce((function(e,t){return t.name===n.name?e+1:e}),0);return t.name===n.name&&(i-=1),-1===n.max||n.max>i?[].concat(Object(y.a)(e),[Object(v.a)({},n)]):Object(y.a)(e)}),[]);Z(a),q(n),n.length>0&&W(n[0])}(t)},children:[Object(x.jsx)(M.a,{style:{color:g.palette.error.main}})," "]}),"*"===e.name?Object(x.jsx)(Ot.a,{style:{width:"20%"},startAdornment:Object(x.jsx)(b.a,{disabled:!0,children:"Key"}),size:"small",value:e.key,onChange:function(e){return function(e,t){var a=w.map((function(a,n){return n===t?Object(v.a)(Object(v.a)({},a),{},{key:e.target.value}):Object(v.a)({},a)}));Z(a),S(a)}(e,t)}}):Object(x.jsx)(Ot.a,{variant:"outlined",size:"small",style:{width:"20%"},startAdornment:Object(x.jsx)(b.a,{disabled:!0,children:"key"}),value:e.key}),Object(x.jsx)(Ot.a,{style:{width:"75%"},startAdornment:Object(x.jsx)(b.a,{disabled:!0,children:"value"}),size:"small",value:e.value,onChange:function(e){return function(e,t){var a=w.map((function(a,n){return n===t?Object(v.a)(Object(v.a)({},a),{},{value:e.target.value}):Object(v.a)({},a)}));Z(a),S(a)}(e,t)}})]},"dictval"+t)})),N.length>0?Object(x.jsxs)("div",{children:[Object(x.jsxs)(E.a,{onClick:ne,children:[" ",Object(x.jsx)(gt.a,{style:{color:g.palette.success.main}})," "]}),Object(x.jsx)(ht.a,{size:"small",value:z,onChange:function(e){return W(e.target.value)},children:N.map((function(e,t){return Object(x.jsx)(tt.a,{value:e,children:"*"===e.name?"Custom Key":e.name},"selectopt"+i+t)}))})]}):null]});case"String":return Object(x.jsx)(j.a,{required:r,value:f,multiline:!0,onChange:te,display:"inline-block",name:i,validate:ae,errorText:"Must match: "+c});case"Boolean":return Object(x.jsx)($.a,{checked:Boolean(f),onChange:re,inputProps:{"aria-label":"primary checkbox"}});default:return null}}()})]},"buildparam"+l)}function Ct(e){var t=function(t,a,n){e.onChange(e.name,t,a,n)};return Object(x.jsx)(S.a,{component:T.a,className:"mythicElement",children:Object(x.jsxs)(k.a,{size:"small",style:{tableLayout:"fixed",maxWidth:"calc(100vw)",overflow:"auto"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{style:{width:"20%"},children:"Parameter"}),Object(x.jsx)(C.a,{children:"Value"})]})}),Object(x.jsx)(w.a,{children:e.c2profileparameters.map((function(a){return Object(x.jsx)(wt,Object(v.a)({returnAllDictValues:e.returnAllDictValues,onChange:t},a),"c2paramtablerow"+a.id)}))})]})})}var St,Dt,It,Tt,$t=a(365),Pt=a(289),At=Object(be.a)(St||(St=Object(_.a)(["\nquery getProfileParameters($id: Int!, $operation_id: Int!) {\n c2profile_by_pk(id: $id) {\n c2profileparameters(where: {deleted: {_eq: false}}, order_by: {name: asc}){\n default_value\n description\n format_string\n id\n name\n parameter_type\n randomize\n required\n verifier_regex\n }\n c2profileparametersinstances(where: {instance_name: {_is_null: false}, operation_id: {_eq: $operation_id}}, distinct_on: instance_name, order_by: {instance_name: asc}){\n instance_name\n }\n }\n}\n"]))),Et=Object(be.a)(Dt||(Dt=Object(_.a)(["\nquery getProfileInstanceQuery($name: String!, $operation_id: Int!) {\n c2profileparametersinstance(where: {instance_name: {_eq: $name}, operation_id: {_eq: $operation_id}}) {\n c2profileparameter {\n default_value\n description\n format_string\n id\n name\n parameter_type\n randomize\n required\n verifier_regex\n }\n id\n value\n }\n}\n"]))),Lt=Object(be.a)(It||(It=Object(_.a)(["\nmutation deleteSavedInstance($name: String!, $operation_id: Int!){\n delete_c2profileparametersinstance(where: {instance_name: {_eq: $name}, operation_id: {_eq: $operation_id}}){\n affected_rows\n }\n}\n"]))),Ft=Object(be.a)(Tt||(Tt=Object(_.a)(["\nmutation createNewC2Instance($instance_name: String!, $c2_instance: String!, $c2profile_id: Int!){\n create_c2_instance(c2_instance: $c2_instance, instance_name: $instance_name, c2profile_id: $c2profile_id){\n status\n error\n }\n}\n"])));function Nt(e){var t=Object(ee.a)(),a=Object(f.a)(h.b),n=Object(o.useState)(""),i=Object(u.a)(n,2),r=i[0],c=i[1],l=Object(o.useState)(""),d=Object(u.a)(l,2),p=d[0],m=d[1],g=Object(o.useState)([]),_=Object(u.a)(g,2),k=_[0],w=_[1],C=Object(o.useState)([]),S=Object(u.a)(C,2),D=S[0],I=S[1],T=Object(o.useState)([]),$=Object(u.a)(T,2),P=$[0],A=$[1],E=Object(je.a)(At,{variables:{id:e.id,operation_id:a.user.current_operation_id},onCompleted:function(e){var t=e.c2profile_by_pk.c2profileparameters.map((function(e){if(""!==e.format_string){var t=new Pt(e.format_string).gen();return Object(v.a)(Object(v.a)({},e),{},{default_value:t,value:t})}if(""!==e.default_value){if("ChooseOne"===e.parameter_type)return Object(v.a)(Object(v.a)({},e),{},{value:e.default_value.split("\n")[0]});if("Dictionary"===e.parameter_type){var a=JSON.parse(e.default_value).reduce((function(e,t){return t.default_show?[].concat(Object(y.a)(e),[{value:t.default_value,key:"*"===t.name?"":t.name,name:t.name,custom:"*"===t.name}]):Object(y.a)(e)}),[]);return Object(v.a)(Object(v.a)({},e),{},{value:a})}if("Date"===e.parameter_type){var n=new Date;return n.setDate(n.getDate()+parseInt(e.default_value)),Object(v.a)(Object(v.a)({},e),{},{value:n.toISOString().slice(0,10)})}return Object(v.a)(Object(v.a)({},e),{},{value:e.default_value})}return Object(v.a)(Object(v.a)({},e),{},{error:e.required,value:e.default_value})}));t.sort((function(e,t){return-t.description.localeCompare(e.description)})),I(Object(y.a)(t)),A(Object(y.a)(t)),w(e.c2profile_by_pk.c2profileparametersinstances)},onError:function(e){},fetchPolicy:"network-only"}).loading,F=Object(pt.a)(Et,{onCompleted:function(e){var t=e.c2profileparametersinstance.map((function(e){var t=Object(v.a)(Object(v.a)({},e),e.c2profileparameter);return"Dictionary"!==t.parameter_type&&"Array"!==t.parameter_type||(t.value=JSON.parse(t.value)),t}));t.sort((function(e,t){return e.name0?Object(x.jsxs)(ft.a,{container:!0,spacing:2,style:{paddingTop:"10px"},children:[Object(x.jsx)(ft.a,{item:!0,xs:6,children:Object(x.jsxs)(mt.a,{style:{width:"100%"},children:[Object(x.jsx)($t.a,{children:"Select an Existing Instance"}),Object(x.jsxs)(ht.a,{style:{width:"100%",marginBottom:"10px"},value:p,label:"Select an Existing Instance",onChange:function(e){m(e.target.value),c(e.target.value),""===e.target.value?A(Object(y.a)(D)):(A([]),N({variables:{name:e.target.value,operation_id:a.user.current_operation_id}}))},children:[Object(x.jsx)(tt.a,{value:"",children:"New Instance"}),k.map((function(e,t){return Object(x.jsx)(tt.a,{value:e.instance_name,children:e.instance_name},"buildparamopt"+t)}))]})]})}),Object(x.jsx)(ft.a,{item:!0,xs:6,children:p.length>0?Object(x.jsx)(b.a,{style:{backgroundColor:t.palette.error.main,color:"white"},variant:"contained",onClick:function(){A([]),R({variables:{name:p,operation_id:a.user.current_operation_id}})},children:" Delete Instance"}):null})]}):null,Object(x.jsx)(j.a,{name:"Instance Name",onChange:function(e,t,a){c(t)},value:r,style:{paddingTop:"10px"}}),Object(x.jsx)(Ct,Object(v.a)(Object(v.a)({},e),{},{returnAllDictValues:!0,c2profileparameters:P,onChange:function(e,t,a,n){var i=P.map((function(e){return e.name===t?Object(v.a)(Object(v.a)({},e),{},{error:n,value:a}):e}));console.log(i),A(i)}}))]}),Object(x.jsxs)(U.a,{children:[Object(x.jsx)(b.a,{variant:"contained",onClick:e.onClose,color:"primary",children:"Close"}),Object(x.jsx)(b.a,{variant:"contained",onClick:function(){if(0!==r.length){var t=P.reduce((function(e,t){return Object(v.a)(Object(v.a)({},e),{},Object(jt.a)({},t.name,t.value))}),{});M({variables:{operation_id:a.user.current_operation_id,instance_name:r,c2profile_id:e.id,c2_instance:JSON.stringify(t)}})}else O.b.warning("Must supply an instance name")},color:"secondary",children:p.length>0?"Update":"Create"})]})]})}var qt,Rt,Bt,Mt=a(41),zt=a(31),Wt=Object(Se.a)((function(e){return{root:{width:"100%",display:"flex",marginBottom:"10px"},expand:{transform:"rotate(0deg)",marginLeft:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest})},expandOpen:{transform:"rotate(180deg)"},running:{backgroundColor:"#44b700",color:"#44b700"},notrunning:{backgroundColor:"red",color:"red"},successButton:{backgroundColor:e.palette.success.main,color:"white","&:hover":{backgroundColor:e.palette.success.dark}},errorButton:{backgroundColor:e.palette.error.main,color:"white","&:hover":{backgroundColor:e.palette.error.dark}}}})),Ht=Object(De.a)((function(e){return{badge:{boxShadow:"0 0 0 2px white","&::after":{position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:"50%",animation:"$ripple 1.2s infinite ease-in-out",border:"1px solid currentColor",content:'""'}},"@keyframes ripple":{"0%":{transform:"scale(.8)",opacity:1},"100%":{transform:"scale(2.4)",opacity:0}}}}))(Pe.a),Ut=Object(be.a)(qt||(qt=Object(_.a)(["\nmutation StartStopProfile($id: Int!, $action: String) {\n startStopProfile(id: $id, action: $action) {\n status\n error\n output\n }\n}\n"]))),Gt=Object(be.a)(Rt||(Rt=Object(_.a)(["\nmutation setProfileConfiguration($id: Int!, $file_path: String!, $data: String!) {\n uploadContainerFile(id: $id, file_path: $file_path, data: $data) {\n status\n error\n filename\n }\n}\n"])));function Kt(e){var t=new Date,a=Object(ee.a)(),n=Wt(a),i=(t.getTime()+6e4*t.getTimezoneOffset()-new Date(e.last_heartbeat).getTime())/1e3<30?"running":"notrunning",r=s.a.useState(!1),c=Object(u.a)(r,2),o=c[0],l=c[1],d=s.a.useState(!1),j=Object(u.a)(d,2),p=j[0],m=j[1],h=s.a.useRef(null),f=function(){m((function(e){return!e}))},g=function(e){h.current&&h.current.contains(e.target)||m(!1)},y=Object(pe.a)(Ut,{update:function(e,t){t.data},onError:function(e){console.error(e)},onCompleted:function(e){q(e.startStopProfile.output),z(!0)}}),_=Object(u.a)(y,1)[0],k=function(){e.running?O.b.info("Submitting stop task..."):O.b.info("Submitting start task..."),_({variables:{id:e.id,action:e.running?"stop":"start"}})},w=s.a.useState(!1),C=Object(u.a)(w,2),S=C[0],D=C[1],I=s.a.useState(!1),$=Object(u.a)(I,2),P=$[0],A=$[1],E=s.a.useState(""),F=Object(u.a)(E,2),N=F[0],q=F[1],R=s.a.useState(!1),B=Object(u.a)(R,2),M=B[0],z=B[1],W=s.a.useState(!1),H=Object(u.a)(W,2),U=H[0],G=H[1],K=Object(pe.a)(Gt,{update:function(e,t){t.data},onError:function(e){console.error(e)},onCompleted:function(e){"success"===e.uploadContainerFile.status?O.b.success("Updated file"):O.b.error("Error updating: "+e.uploadContainerFile.error)}}),V=Object(u.a)(K,1)[0];return Object(x.jsxs)(Ie.a,{className:n.root,elevation:5,style:{maxWidth:"100%"},children:[Object(x.jsx)(Ht,{overlap:"circle",classes:{badge:n[i]},invisible:!1,anchorOrigin:{vertical:"bottom",horizontal:"right"},children:e.is_p2p?Object(x.jsx)(Mt.a,{icon:zt.y,style:{width:"100px",height:"100px",marginTop:"25px"}}):Object(x.jsx)(Ve.a,{style:{width:"100px",height:"100px",marginTop:"25px"}})}),Object(x.jsxs)("div",{style:{maxWidth:"60%"},children:[Object(x.jsx)(L.a,{variant:"h4",component:"h1",style:{textAlign:"left",marginLeft:"10px",display:"inline-block"},children:e.name}),!e.is_p2p&&e.running&&Object(x.jsx)(L.a,{variant:"h6",component:"h1",style:{textAlign:"left",marginLeft:"10px",display:"inline-block",color:a.palette.success.main},children:"(Server Running)"}),!e.is_p2p&&!e.running&&Object(x.jsx)(L.a,{variant:"h6",component:"h1",style:{textAlign:"left",marginLeft:"10px",display:"inline-block",color:a.palette.error.main},children:"(Server Not Running)"}),Object(x.jsxs)($e.a,{style:{textAlign:"left"},children:[Object(x.jsxs)(L.a,{variant:"body1",component:"p",children:[Object(x.jsx)("b",{children:"Author:"})," ",e.author]}),Object(x.jsxs)(L.a,{variant:"body1",component:"p",children:[Object(x.jsx)("b",{children:"Supported Agents:"})," ",e.payloadtypec2profiles.map((function(e){return e.payloadtype.ptype+" "}))]}),Object(x.jsx)(L.a,{variant:"body2",component:"p",children:e.description}),Object(x.jsx)(L.a,{variant:"body2",component:"p"})]})]}),Object(x.jsxs)("div",{style:{display:"inline-flex",paddingRight:"10px",marginLeft:"auto",justifyContent:"space-evenly",alignItems:"stretch",flexDirection:"column",alignContent:"flex-end"},children:[Object(x.jsx)(b.a,{size:"small",variant:"contained",color:"primary",href:"/docs/c2-profiles/"+e.name.toLowerCase(),target:"_blank",children:"Docs"}),Object(x.jsx)(b.a,{size:"small",onClick:function(){l(!0)},color:"primary",variant:"contained",children:"Build Info"}),Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"lg",open:o,onClose:function(){l(!1)},innerDialog:Object(x.jsx)(Ue,Object(v.a)(Object(v.a)({},e),{},{onClose:function(){l(!1)},payload_name:e.name}))}),Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"lg",open:M,onClose:function(){z(!1)},innerDialog:Object(x.jsx)(dt,{output:N,onClose:function(){z(!1)},payload_name:e.name})}),e.container_running?e.running?Object(x.jsxs)(Qe.a,{variant:"contained",ref:h,"aria-label":"split button",children:[Object(x.jsx)(b.a,{size:"small",className:e.running?n.successButton:n.errorButton,onClick:k,style:{width:"100%"},children:"Stop Profile"}),Object(x.jsx)(b.a,{size:"small","aria-controls":p?"split-button-menu":void 0,"aria-expanded":p?"true":void 0,"aria-label":"select merge strategy","aria-haspopup":"menu",className:e.running?n.successButton:n.errorButton,onClick:f,children:Object(x.jsx)(Ye.a,{})})]}):e.is_p2p?null:Object(x.jsxs)(Qe.a,{variant:"contained",ref:h,"aria-label":"split button",children:[Object(x.jsx)(b.a,{size:"small",onClick:k,className:e.running?n.successButton:n.errorButton,style:{width:"100%"},children:"Start Profile"}),Object(x.jsx)(b.a,{size:"small","aria-controls":p?"split-button-menu":void 0,"aria-expanded":p?"true":void 0,"aria-label":"select merge strategy","aria-haspopup":"menu",className:e.running?n.successButton:n.errorButton,onClick:f,children:Object(x.jsx)(Ye.a,{})})]}):Object(x.jsx)(b.a,{disabled:!0,color:"secondary",children:"Container Offline"}),Object(x.jsxs)(b.a,{size:"small",variant:"contained",color:"primary",onClick:function(){G(!0)},children:[Object(x.jsx)(bt.a,{})," Saved Instances"]}),Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"lg",open:S,onClose:function(){D(!1)},innerDialog:Object(x.jsx)(it,Object(v.a)(Object(v.a)({},e),{},{payload_name:e.name,onClose:function(){D(!1)},profile_id:e.id}))}),Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"lg",open:P,onClose:function(){A(!1)},innerDialog:Object(x.jsx)(lt,Object(v.a)(Object(v.a)({},e),{},{onConfigSubmit:function(t){V({variables:{id:e.id,file_path:"config.json",data:t}})},payload_name:e.name,onClose:function(){A(!1)},profile_id:e.id}))}),Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"lg",open:U,onClose:function(){G(!1)},innerDialog:Object(x.jsx)(Nt,Object(v.a)(Object(v.a)({},e),{},{onClose:function(){G(!1)}}))}),Object(x.jsx)(et.a,{open:p,anchorEl:h.current,role:void 0,transition:!0,disablePortal:!0,style:{zIndex:4},children:function(t){var n=t.TransitionProps,i=t.placement;return Object(x.jsx)(Xe.a,Object(v.a)(Object(v.a)({},n),{},{style:{transformOrigin:"bottom"===i?"center top":"center bottom"},children:Object(x.jsx)(T.a,{style:{backgroundColor:"dark"===a.palette.type?a.palette.primary.dark:a.palette.primary.light,color:"white"},children:Object(x.jsx)(Ze.a,{onClickAway:g,children:Object(x.jsxs)(at.a,{id:"split-button-menu",children:[Object(x.jsx)(tt.a,{onClick:function(){A(!0)},children:"View/Edit Config"},"dropdownprofile"+e.id+"menu1"),e.running?Object(x.jsx)(tt.a,{onClick:function(){D(!0)},children:"View Stdout/Stderr"},"dropdownprofile"+e.id+"menu2"):null]})})})}))}})]})]})}var Vt=Object(be.a)(Bt||(Bt=Object(_.a)(["\nsubscription getPayloadTypesSubscription {\n c2profile(where: {deleted: {_eq: false}}, order_by: {name: asc}) {\n author\n id\n container_running\n description\n is_p2p\n last_heartbeat\n name\n running\n payloadtypec2profiles(order_by: {payloadtype: {ptype: asc}}) {\n payloadtype {\n ptype\n }\n }\n }\n}\n"])));function Qt(e){var t=Object(Me.a)(Vt,{fetchPolicy:"network-only"}).data,a=s.a.useState([]),n=Object(u.a)(a,2),i=n[0],r=n[1],c=Object(ee.a)();return Object(o.useEffect)((function(){r(void 0!==t?t.c2profile:[])}),[t]),Object(x.jsxs)("div",{style:{flexDirection:"column",alignItems:"stretch",paddingLeft:"10px"},children:[Object(x.jsx)(T.a,{elevation:5,style:{backgroundColor:c.pageHeader.main,color:c.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:Object(x.jsx)(L.a,{variant:"h3",style:{textAlign:"left",display:"inline-block",marginLeft:"20px"},children:"C2 Profiles"})}),i.map((function(e){return Object(x.jsx)(Kt,Object(v.a)({},e),"c2prof"+e.id)}))]})}var Jt,Yt=Object(Se.a)((function(e){return{root:{width:"100%",display:"flex",marginBottom:"10px"},expand:{transform:"rotate(0deg)",marginLeft:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest})},expandOpen:{transform:"rotate(180deg)"},running:{backgroundColor:"#44b700",color:"#44b700"},notrunning:{backgroundColor:"red",color:"red"}}})),Zt=Object(De.a)((function(e){return{badge:{boxShadow:"0 0 0 2px white","&::after":{position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:"50%",animation:"$ripple 1.2s infinite ease-in-out",border:"1px solid currentColor",content:'""'}},"@keyframes ripple":{"0%":{transform:"scale(.8)",opacity:1},"100%":{transform:"scale(2.4)",opacity:0}}}}))(Pe.a);function Xt(e){var t=Yt(),a=new Date,n=(a.getTime()+6e4*a.getTimezoneOffset()-new Date(e.last_heartbeat).getTime())/1e3<30?"running":"notrunning";return Object(x.jsxs)(Ie.a,{className:t.root,elevation:5,children:[Object(x.jsx)(Zt,{overlap:"circle",classes:{badge:t[n]},invisible:!1,anchorOrigin:{vertical:"bottom",horizontal:"right"},children:Object(x.jsx)(Mt.a,{icon:zt.x,size:"6x",style:{width:"125px",height:"125px"}})}),Object(x.jsxs)("div",{children:[Object(x.jsx)(L.a,{variant:"h4",component:"h1",style:{textAlign:"left",marginLeft:"10px"},children:e.name}),e.payloadtypes.length>0?Object(x.jsxs)(L.a,{variant:"body1",component:"p",children:[Object(x.jsx)("b",{children:"Translated Payload Types:"})," ",e.payloadtypes.map((function(e){return e.ptype})).join(", ")]}):null]})]})}var ea=Object(be.a)(Jt||(Jt=Object(_.a)(["\nsubscription getTranslationContainersSubscription {\n translationcontainer(where: {deleted: {_eq: false}}, order_by: {name: asc}) {\n name\n id\n container_running\n last_heartbeat\n payloadtypes(order_by: {ptype: asc}) {\n ptype\n id\n }\n }\n}\n"])));function ta(e){var t=s.a.useState([]),a=Object(u.a)(t,2),n=a[0],i=a[1],r=s.a.useState([]),c=Object(u.a)(r,2),l=c[0],d=c[1],b=Object(Me.a)(ea).data,j=Object(ee.a)();return Object(o.useEffect)((function(){if(void 0!==b){var e=b.translationcontainer.filter((function(e){return 0===e.payloadtypes.length})),t=b.translationcontainer.filter((function(e){return e.payloadtypes.length>0}));i(e),d(t)}else i([])}),[b]),Object(x.jsxs)("div",{style:{width:"100%",display:"inline-flex",flexDirection:"column",alignItems:"stretch"},children:[n.length>0?Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(T.a,{elevation:5,style:{backgroundColor:j.pageHeader.main,color:j.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:Object(x.jsx)(L.a,{variant:"h4",style:{textAlign:"left",display:"inline-block",marginLeft:"20px"},children:"Translation Containers Not Assigned to Payload Types"})}),n.map((function(e){return Object(x.jsx)(Xt,Object(v.a)({},e),"translation_container"+e.id)}))]}):null,l.length>0?Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(T.a,{elevation:5,style:{backgroundColor:j.pageHeader.main,color:j.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:Object(x.jsx)(L.a,{variant:"h4",style:{textAlign:"left",display:"inline-block",marginLeft:"20px"},children:"Translation Containers"})}),l.map((function(e){return Object(x.jsx)(Xt,Object(v.a)({},e),"translation_container"+e.id)}))]}):null]})}function aa(e){return Object(x.jsx)(s.a.Fragment,{children:Object(x.jsxs)(ft.a,{container:!0,spacing:0,children:[Object(x.jsx)(ft.a,{item:!0,xs:6,children:Object(x.jsx)(We,{})}),Object(x.jsx)(ft.a,{item:!0,xs:6,children:Object(x.jsx)(Qt,{})}),Object(x.jsx)(ft.a,{item:!0,xs:12,children:Object(x.jsx)(ta,{})})]})})}var na,ia=a(922),ra=a(907),ca=a(919),oa=a(843),sa=a(833);function la(e){return Object(x.jsxs)("div",{children:[Object(x.jsx)(b.a,{disabled:e.first,color:"primary",onClick:e.canceled,children:"Back"}),Object(x.jsx)(b.a,{variant:"contained",color:"primary",onClick:e.finished,children:e.last?"Create Payload":"Next"})]})}var da,ua=Object(be.a)(na||(na=Object(_.a)(["\nquery getPayloadTypesQuery {\n payloadtype(where: {deleted: {_eq: false}, wrapper: {_eq: false}}) {\n id\n supported_os\n }\n}\n "])));function ba(e){var t=s.a.useState(""),a=Object(u.a)(t,2),n=a[0],i=a[1],r=s.a.useState([]),c=Object(u.a)(r,2),o=c[0],l=c[1];if(Object(je.a)(ua,{fetchPolicy:"network-only",onCompleted:function(t){var a=t.payloadtype.reduce((function(e,t){var a=t.supported_os.split(",").reduce((function(t,a){return e.includes(a)?t:[].concat(Object(y.a)(t),[a])}),[]);return[].concat(Object(y.a)(e),Object(y.a)(a))}),[]).sort();console.log(e.prevData),void 0!==e.prevData?i(e.prevData):""===n&&i(a[0]),l(a)},onError:function(e){console.error(e)}}).loading)return Object(x.jsx)("div",{children:Object(x.jsx)(oa.a,{})});return Object(x.jsxs)("div",{children:[Object(x.jsx)(L.a,{variant:"h3",align:"left",id:"selectospage",component:"div",style:{marginLeft:"10px"},children:"Select Target Operating System"})," ",Object(x.jsx)("br",{}),Object(x.jsxs)(mt.a,{children:[Object(x.jsx)(ht.a,{native:!0,value:n,onChange:function(e){return i(e.target.value)},children:o.map((function(e){return Object(x.jsx)("option",{value:e,children:e},"step1"+e)}))}),Object(x.jsx)(sa.a,{children:"Target Operating System"})]}),Object(x.jsx)("br",{}),Object(x.jsx)("br",{}),Object(x.jsx)(la,{first:e.first,last:e.last,canceled:function(){e.canceled()},finished:function(){e.finished(n)}})]})}function ja(e){return Object(x.jsxs)(S.a,{component:T.a,className:"mythicElement",children:[Object(x.jsx)(L.a,{variant:"h4",align:"left",id:"SettingsTable",component:"div",style:{display:"inline-block",float:"left",marginLeft:"10px"},children:"Build Parameters"}),Object(x.jsxs)(k.a,{size:"small",style:{tableLayout:"fixed",maxWidth:"calc(100vw)",overflow:"scroll"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{children:"Build Parameter"}),Object(x.jsx)(C.a,{children:"Value"})]})}),Object(x.jsx)(w.a,{children:e.buildParameters.map((function(t){return Object(x.jsx)(wt,Object(v.a)({onChange:e.onChange},t),"buildparamtablerow"+t.id)}))})]})]})}var pa=Object(be.a)(da||(da=Object(_.a)(["\nquery getPayloadTypesBuildParametersQuery($os: String!) {\n payloadtype(where: {supported_os: {_ilike: $os}, deleted: {_eq: false}, wrapper: {_eq: false}}) {\n ptype\n file_extension\n supports_dynamic_loading\n buildparameters(where: {deleted: {_eq: false} }) {\n id\n name\n description\n default_value: parameter\n parameter_type\n required\n verifier_regex\n }\n }\n}\n "])));function ma(e){var t=s.a.useState(""),a=Object(u.a)(t,2),n=a[0],i=a[1],r=s.a.useState(""),c=Object(u.a)(r,2),o=c[0],l=c[1],d=s.a.useState(!1),b=Object(u.a)(d,2),j=b[0],p=b[1],m=s.a.useState([]),h=Object(u.a)(m,2),f=h[0],O=h[1],g=Object(je.a)(pa,{variables:{os:"%"+e.buildOptions+"%"},onCompleted:function(t){if(t.payloadtype.length>0)if(void 0!==e.prevData&&e.prevData.os===e.buildOptions){console.log(e.prevData),i(e.prevData.payload_type),l(e.prevData.file_extension),p(e.prevData.supports_dynamic_loading);var a=t.payloadtype.reduce((function(t,a){if(a.ptype===e.prevData.payload_type){var n=a.buildparameters.map((function(t){for(var a=0;a0&&C(a[0])},P=function(e,a){return Object(x.jsxs)(T.a,{className:t.paper,style:{width:"100%",height:"calc(40vh)",overflow:"auto"},elevation:5,children:[Object(x.jsx)(_a.a,{className:t.cardHeader,title:e}),Object(x.jsx)(ka.a,{classes:{root:t.divider}}),Object(x.jsxs)(Oa.a,{dense:!0,component:"div",role:"list",style:{padding:0},children:[a.map((function(e){var t=e.cmd,a="transfer-list-item-".concat(t,"-label");return Object(x.jsx)("div",{onMouseEnter:$,children:Object(x.jsxs)(xa.a,{style:{padding:0},disabled:e.disabled,role:"listitem",button:!0,onClick:I(e),children:[Object(x.jsx)(ga.a,{children:Object(x.jsx)(va.a,{disabled:e.disabled,checked:-1!==i.findIndex((function(e){return e.cmd===t})),tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":a}})}),Object(x.jsx)(ya.a,{id:a,primary:t})]},t)},"commandtransfer"+t)})),Object(x.jsx)(xa.a,{})]})]})};return Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsxs)(ft.a,{container:!0,spacing:2,justify:"center",alignItems:"center",className:t.root,children:[Object(x.jsx)(ft.a,{item:!0,xs:5,children:P("Available Commands",d)}),Object(x.jsx)(ft.a,{item:!0,children:Object(x.jsxs)(ft.a,{container:!0,direction:"column",alignItems:"center",children:[Object(x.jsx)(b.a,{variant:"outlined",size:"small",className:t.button,onClick:function(){var t=e.commands.reduce((function(e,t){return t.disabled&&!t.selected?[].concat(Object(y.a)(e),[Object(v.a)({},t)]):Object(y.a)(e)}),[]),a=e.commands.reduce((function(e,t){return!t.disabled||t.selected?[].concat(Object(y.a)(e),[Object(v.a)({},t)]):Object(y.a)(e)}),[]);j(t),f(a)},disabled:0===d.length,"aria-label":"move all right",children:"\u226b"}),Object(x.jsx)(b.a,{variant:"outlined",size:"small",className:t.button,onClick:function(){f(h.concat(O)),j(S(d,O)),r(S(i,O))},disabled:0===O.length,"aria-label":"move selected right",children:">"}),Object(x.jsx)(b.a,{variant:"outlined",size:"small",className:t.button,onClick:function(){j(d.concat(g)),f(S(h,g)),r(S(i,g))},disabled:0===g.length,"aria-label":"move selected left",children:"<"}),Object(x.jsx)(b.a,{variant:"outlined",size:"small",className:t.button,onClick:function(){var t=e.commands.reduce((function(e,t){return t.disabled&&t.selected?Object(y.a)(e):[].concat(Object(y.a)(e),[Object(v.a)({},t)])}),[]),a=e.commands.reduce((function(e,t){return t.disabled&&t.selected?[].concat(Object(y.a)(e),[Object(v.a)({},t)]):Object(y.a)(e)}),[]);j(t),f(a)},disabled:0===h.length,"aria-label":"move all left",children:"\u226a"})]})}),Object(x.jsx)(ft.a,{item:!0,xs:5,children:P("Commands Included",h)})]}),Object(x.jsx)(ft.a,{container:!0,justify:"center",alignItems:"flex-start",className:t.root,children:Object(x.jsx)(ft.a,{item:!0,xs:12,style:{height:"100%",marginBottom:"10px"},children:void 0!==w.cmd&&Object(x.jsxs)(T.a,{className:t.paper,style:{width:"100%"},elevation:5,children:[Object(x.jsx)(_a.a,{className:t.cardHeader,title:Object(x.jsxs)(s.a.Fragment,{children:[w.cmd,Object(x.jsx)(b.a,{variant:"contained",color:"primary",href:"/docs/agents/"+e.payload_type+"/commands/"+w.cmd,style:{marginLeft:"10px",float:"right"},target:"_blank",children:"Documentation"})]})}),Object(x.jsx)(ka.a,{classes:{root:t.divider}}),""!==w.reason?Object(x.jsxs)(L.a,{variant:"body1",align:"left",component:"div",style:{marginLeft:"10px"},children:[Object(x.jsxs)("b",{children:[w.disabled?"Disabled Reason: ":"Information: "," "]}),w.reason]}):null,Object(x.jsx)("br",{}),Object(x.jsxs)(L.a,{align:"left",component:"div",style:{marginLeft:"10px"},children:[Object(x.jsx)("b",{children:"Commandline Help: "}),w.help_cmd]}),Object(x.jsxs)(L.a,{align:"left",component:"div",style:{marginLeft:"10px"},children:[Object(x.jsx)("b",{children:"Needs Admin Permissions: "}),w.needs_admin?"True":"False"]}),Object(x.jsxs)(L.a,{align:"left",component:"div",style:{marginLeft:"10px"},children:[Object(x.jsx)("b",{children:"Description: "}),w.description]})]})})}),Object(x.jsx)(la,{first:e.first,last:e.last,canceled:e.canceled,finished:function(){e.finished(h)}})]})}var Ia,Ta,$a=a(905),Pa=Object(be.a)(Ia||(Ia=Object(_.a)(["\nquery getPayloadTypesC2ProfilesQuery($payloadType: String!, $operation_id: Int!) {\n c2profile(where: {payloadtypec2profiles: {payloadtype: {ptype: {_eq: $payloadType}}}, deleted: {_eq: false}}) {\n name\n is_p2p\n description\n id\n c2profileparameters(where: {deleted: {_eq: false}}) {\n default_value\n description\n format_string\n id\n name\n parameter_type\n randomize\n required\n verifier_regex\n }\n c2profileparametersinstances(where: {instance_name: {_is_null: false}, operation_id: {_eq: $operation_id}}, distinct_on: instance_name, order_by: {instance_name: asc}){\n instance_name\n }\n }\n}\n "]))),Aa=Object(be.a)(Ta||(Ta=Object(_.a)(["\nquery getProfileInstanceQuery($name: String!, $operation_id: Int!) {\n c2profileparametersinstance(where: {instance_name: {_eq: $name}, operation_id: {_eq: $operation_id}}) {\n c2profileparameter {\n default_value\n description\n format_string\n id\n name\n parameter_type\n randomize\n required\n verifier_regex\n c2profile {\n name\n }\n }\n id\n value\n }\n}\n"])));function Ea(e){var t=Object(f.a)(h.b),a=s.a.useState([]),n=Object(u.a)(a,2),i=n[0],r=n[1],c=s.a.useState(""),o=Object(u.a)(c,2),l=o[0],d=o[1],b=Object(je.a)(Pa,{variables:{payloadType:e.buildOptions.payload_type,operation_id:t.user.current_operation_id},onCompleted:function(t){var a=t.c2profile.map((function(t){if(void 0!==e.prevData){console.log(e.prevData);for(var a=0;a-1?Object(y.a)(e):[].concat(Object(y.a)(e),[Object(v.a)(Object(v.a)({},t),{},{default_show:!1,key:"*"===t.name?"":t.name,value:t.default_value})])}),Object(y.a)(a));return Object(v.a)(Object(v.a)({},e),{},{value:n})}return e}));return n.sort((function(e,t){return-t.description.localeCompare(e.description)})),Object(v.a)(Object(v.a)({},t),{},{selected:e.prevData[a].selected,c2profileparameters:n})}}var i=t.c2profileparameters.map((function(e){if(""!==e.format_string){var t=new Pt(e.format_string).gen();return Object(v.a)(Object(v.a)({},e),{},{default_value:t,value:t})}if(""!==e.default_value){if("ChooseOne"===e.parameter_type)return Object(v.a)(Object(v.a)({},e),{},{value:e.default_value.split("\n")[0]});if("Dictionary"===e.parameter_type){var a=JSON.parse(e.default_value).reduce((function(e,t){return[].concat(Object(y.a)(e),[Object(v.a)(Object(v.a)({},t),{},{value:t.default_value,key:"*"===t.name?"":t.name,default_show:t.default_show})])}),[]);return Object(v.a)(Object(v.a)({},e),{},{value:a})}if("Date"===e.parameter_type){var n=new Date;return""!==e.default_value&&n.setDate(n.getDate()+parseInt(e.default_value)),Object(v.a)(Object(v.a)({},e),{},{value:n.toISOString().slice(0,10)})}return Object(v.a)(Object(v.a)({},e),{},{value:e.default_value})}return Object(v.a)(Object(v.a)({},e),{},{error:e.required,value:e.default_value})}));return i.sort((function(e,t){return-t.description.localeCompare(e.description)})),Object(v.a)(Object(v.a)({},t),{},{selected:!1,c2profileparameters:i})}));a.sort((function(e,t){return-t.name.localeCompare(e.name)})),r(a)},fetchPolicy:"no-cache"}),j=b.loading,p=b.error,m=function(e,t,a,n){var c=i.map((function(i){if(i.name===e){var r=i.c2profileparameters.map((function(e){return e.name===t?Object(v.a)(Object(v.a)({},e),{},{error:n,value:a}):e}));return Object(v.a)(Object(v.a)({},i),{},{c2profileparameters:r})}return i}));r(c)},g=Object(pt.a)(Aa,{onCompleted:function(e){var t=e.c2profileparametersinstance.map((function(e){var t=Object(v.a)(Object(v.a)({},e),e.c2profileparameter);return"Dictionary"!==t.parameter_type&&"Array"!==t.parameter_type||(t.value=JSON.parse(t.value)),t}));t.sort((function(e,t){return e.name0&&e.selected?Object(x.jsxs)(mt.a,{style:{width:"100%"},children:[Object(x.jsx)($t.a,{children:"Select an Existing Instance"}),Object(x.jsxs)(ht.a,{style:{width:"100%",marginBottom:"10px"},value:l,label:"Select an Existing Instance",onChange:function(a){return function(e,a){if(d(e.target.value),""!==e.target.value){var n=i.map((function(e){return a.name===e.name&&(e.c2profileparameters=[]),e}));r(n),_({variables:{name:e.target.value,operation_id:t.user.current_operation_id}})}}(a,e)},children:[Object(x.jsx)(tt.a,{value:"",children:"New Instance"}),e.c2profileparametersinstances.map((function(e,t){return Object(x.jsx)(tt.a,{value:e.instance_name,children:e.instance_name},"buildparamopt"+t)}))]})]}):null,Object(x.jsx)(L.a,{variant:"body1",align:"left",id:"selectc2profiles",component:"div",style:{marginLeft:"10px"},children:e.description},"step4desc"+e.id),e.selected?Object(x.jsx)(Ct,Object(v.a)(Object(v.a)({returnAllDictValues:!1},e),{},{onChange:m}),"step4table"+e.id):null]},"step4c2switch"+e.id)})),Object(x.jsx)("br",{}),Object(x.jsx)(la,{first:e.first,last:e.last,canceled:function(){e.canceled()},finished:function(){var t=!0,a=!1,n=i.reduce((function(e,t){if(t.selected){var a=t.c2profileparameters.map((function(e){if("Dictionary"===e.parameter_type){var t=e.value.filter((function(e){return""!==e.value}));return Object(v.a)(Object(v.a)({},e),{},{value:t})}return Object(v.a)({},e)}));return[].concat(Object(y.a)(e),[Object(v.a)(Object(v.a)({},t),{},{c2profileparameters:a})])}return[].concat(Object(y.a)(e),[Object(v.a)({},t)])}),[]);if(i.forEach((function(e){e.selected&&(a=!0,e.c2profileparameters.forEach((function(a){a.error&&(O.b.warning(e.name+"'s parameter "+a.name+" is invalid"),t=!1)})))})),t){if(!a)return void O.b.warning("Must select at least one C2 to include");e.finished(n)}}}),Object(x.jsx)("br",{}),Object(x.jsx)("br",{})]})}var La,Fa,Na=a(78),qa=a(8),Ra=a(906),Ba=a(141),Ma=a.n(Ba),za=a(86),Wa=a.n(za),Ha=a(88),Ua=a.n(Ha),Ga=Object(be.a)(La||(La=Object(_.a)(["\nsubscription NewPayloadsSubscription($fromNow: timestamp!) {\n payload(limit: 1, where: {deleted: {_eq: false}, creation_time: {_gte: $fromNow}}, order_by: {creation_time: desc}) {\n build_message\n build_phase\n build_stderr\n build_stdout\n uuid\n tag\n id\n filemetum{\n agent_file_id\n }\n }\n}\n "]))),Ka=Object(Se.a)((function(e){return{root:Object(jt.a)({},e.breakpoints.up("sm"),{minWidth:"344px !important"}),typography:{fontWeight:"bold"},actionRoot:{padding:"8px 8px 8px 16px"},icons:{marginLeft:"auto",float:"right"},expand:{padding:"8px 8px",transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest})},expandOpen:{transform:"rotate(180deg)"},collapse:{padding:16},checkIcon:{fontSize:20,color:"#b3b3b3",paddingRight:4},button:{padding:0,textTransform:"none"}}})),Va=s.a.forwardRef((function(e,t){var a=Object(ee.a)(),n=Ka(a),i=Object(Na.c)().closeSnackbar,r=Object(o.useState)(!0),c=Object(u.a)(r,2),s=c[0],l=c[1];return Object(x.jsx)(Na.a,{ref:t,className:n.root,children:Object(x.jsxs)(Ie.a,{style:{backgroundColor:a.palette.success.main},children:[Object(x.jsxs)(Ra.a,{classes:{root:n.actionRoot},children:[Object(x.jsx)(L.a,{variant:"subtitle2",className:n.typography,children:"Payload successfuly built!"}),Object(x.jsxs)("div",{className:n.icons,children:[Object(x.jsx)(E.a,{"aria-label":"Show more",className:Object(qa.default)(n.expand,Object(jt.a)({},n.expandOpen,s)),onClick:function(){l(!s)},children:Object(x.jsx)(Wa.a,{})}),Object(x.jsx)(E.a,{className:n.expand,onClick:function(){i(e.id)},children:Object(x.jsx)(Ma.a,{})})]})]}),Object(x.jsxs)(A.a,{in:s,timeout:"auto",unmountOnExit:!0,children:[Object(x.jsxs)(T.a,{className:n.collapse,children:[Object(x.jsx)(L.a,{gutterBottom:!0,children:"Agent ready for download"}),Object(x.jsxs)(b.a,{className:n.button,download:!0,href:window.location.origin+"/direct/download/"+e.file_id,children:[Object(x.jsx)(Ua.a,{className:n.checkIcon}),"Download now"]})]}),Object(x.jsx)(T.a,{className:n.collapse,children:Object(x.jsx)(b.a,{variant:"outlined",color:"primary",href:"/new/payloads",children:"View on Payloads Page"})})]})]})})})),Qa=s.a.forwardRef((function(e,t){var a=Object(ee.a)(),n=Ka(a),i=Object(Na.c)().closeSnackbar,r=Object(o.useState)(!1),c=Object(u.a)(r,2),s=c[0],l=c[1];return Object(x.jsx)(Na.a,{ref:t,className:n.root,children:Object(x.jsxs)(Ie.a,{style:{backgroundColor:a.palette.error.main},children:[Object(x.jsxs)(Ra.a,{classes:{root:n.actionRoot},children:[Object(x.jsx)(L.a,{variant:"subtitle2",className:n.typography,style:{color:"white"},children:"Payload Failed to build!"}),Object(x.jsxs)("div",{className:n.icons,children:[Object(x.jsx)(E.a,{"aria-label":"Show more",className:Object(qa.default)(n.expand,Object(jt.a)({},n.expandOpen,s)),onClick:function(){l(!s)},children:Object(x.jsx)(Wa.a,{})}),Object(x.jsx)(E.a,{className:n.expand,onClick:function(){i(e.id)},children:Object(x.jsx)(Ma.a,{})})]})]}),Object(x.jsx)(A.a,{in:s,timeout:"auto",unmountOnExit:!0,children:Object(x.jsx)(T.a,{className:n.collapse,children:e.display})})]})})}));function Ja(e){var t=s.a.useState((new Date).toISOString()),a=Object(u.a)(t,2),n=a[0],i=(a[1],Object(Me.a)(Ga,{variables:{fromNow:n}})),r=i.loading,c=i.error,l=i.data;return Object(o.useEffect)((function(){console.log(l),!r&&!c&&l&&l.payload.length>0?"success"===l.payload[0].build_phase?(O.b.dismiss(),O.b.success(l.payload[0].build_message,{persist:!0,content:function(e){return Object(x.jsx)(Va,{id:e,file_id:l.payload[0].filemetum.agent_file_id})}})):"building"===l.payload[0].build_phase||(""!==l.payload[0].build_stderr?O.b.error(l.payload[0].build_stderr,{persist:!0,content:function(e){return Object(x.jsx)(Qa,{id:e,display:l.payload[0].build_stderr})}}):O.b.error(l.payload[0].build_message,{persist:!0,content:function(e){return Object(x.jsx)(Qa,{id:e,display:l.payload[0].build_message})}})):c&&(console.log(c),O.b.error("Mythic encountered an error: "+c.toString()))}),[r,l,c]),null}var Ya,Za=Object(be.a)(Fa||(Fa=Object(_.a)(["\n mutation createPayloadMutation($payload: String!) {\n createPayload(payloadDefinition: $payload) {\n error\n status\n uuid\n }\n}\n "])));function Xa(e){var t=s.a.useState(""),a=Object(u.a)(t,2),n=a[0],i=a[1],r=s.a.useState(""),c=Object(u.a)(r,2),l=c[0],d=c[1],b=Object(pe.a)(Za,{update:function(e,t){var a=t.data;"success"===a.createPayload.status?O.b.info("Submitted payload to build pipeline"):O.b.error(a.createPayload.error)}}),p=Object(u.a)(b,1)[0];Object(o.useEffect)((function(){""!==e.buildOptions[1].file_extension?i(e.buildOptions[1].payload_type+"."+e.buildOptions[1].file_extension):i(e.buildOptions[1].payload_type)}),[e.buildOptions]);var m=function(){var t=e.buildOptions[1].parameters.map((function(e){return e})),a=e.buildOptions[3].reduce((function(e,t){if(t.selected){var a=t.c2profileparameters.reduce((function(e,t){if("Dictionary"===t.parameter_type){var a=t.value.map((function(e){return{name:e.name,key:e.key,value:e.value,custom:e.custom}}));return Object(v.a)(Object(v.a)({},e),{},Object(jt.a)({},t.name,a))}return Object(v.a)(Object(v.a)({},e),{},Object(jt.a)({},t.name,t.value))}),{});return[].concat(Object(y.a)(e),[{c2_profile:t.name,c2_profile_parameters:a}])}return e}),[]),i={selected_os:e.buildOptions[0],payload_type:e.buildOptions[1].payload_type,filename:n,tag:l,commands:e.buildOptions[2],build_parameters:t,c2_profiles:a};p({variables:{payload:JSON.stringify(i)}}).catch((function(e){console.log(e)}))};return Object(x.jsxs)("div",{children:[Object(x.jsx)(L.a,{variant:"h3",align:"left",id:"selectc2profiles",component:"div",style:{marginLeft:"10px"},children:"Payload Review"}),Object(x.jsx)("br",{}),Object(x.jsx)(j.a,{onEnter:m,autoFocus:!0,required:!1,placeholder:"Filename",value:n,multiline:!1,onChange:function(e,t,a){i(t)},display:"inline-block"}),Object(x.jsx)(j.a,{onEnter:m,required:!1,placeholder:"description",value:l,multiline:!1,onChange:function(e,t,a){d(t)},display:"inline-block"}),Object(x.jsx)(la,{first:e.first,last:e.last,canceled:function(){e.canceled()},finished:m}),Object(x.jsx)("br",{}),Object(x.jsx)("br",{}),Object(x.jsx)(Ja,{})]})}function en(e){var t=s.a.useState({}),a=Object(u.a)(t,2),n=a[0],i=a[1],r=s.a.useState(0),c=Object(u.a)(r,2),o=c[0],l=c[1],d=function(e){i(Object(v.a)(Object(v.a)({},n),{},Object(jt.a)({},o,e))),p()},b=function(){m()},j=["Select Target OS","Payload Type","Select Commands","Select C2 Profiles","Build"],p=function(){l((function(e){return e+1}))},m=function(){l((function(e){return e-1}))};return Object(x.jsxs)("div",{style:{height:"calc(95vh)"},children:[Object(x.jsx)(ia.a,{activeStep:o,alternativeLabel:!0,children:j.map((function(e,t){return Object(x.jsx)(ra.a,{children:Object(x.jsx)(ca.a,{children:e})},e)}))}),function(e){switch(e){case 0:return Object(x.jsx)(ba,{buildOptions:n,prevData:n[0],finished:d,canceled:b,first:!0,last:!1});case 1:return Object(x.jsx)(ma,{buildOptions:n[0],prevData:n[1],finished:d,canceled:b,first:!1,last:!1});case 2:return Object(x.jsx)(Sa,{buildOptions:n[1],prevData:n[2],finished:d,canceled:b,first:!1,last:!1});case 3:return Object(x.jsx)(Ea,{buildOptions:n[1],prevData:n[3],finished:d,canceled:b,first:!1,last:!1});case 4:return Object(x.jsx)(Xa,{buildOptions:n,canceled:b,first:!1,last:!0});default:return"Unknown step"}}(o)]})}function tn(e){return Object(x.jsxs)("div",{children:[Object(x.jsx)(b.a,{disabled:e.first,color:"primary",onClick:e.canceled,children:"Back"}),Object(x.jsx)(b.a,{variant:"contained",color:"primary",onClick:e.finished,disabled:e.disableNext,children:e.last?"Create Payload":"Next"})]})}var an,nn=Object(be.a)(Ya||(Ya=Object(_.a)(["\nquery getPayloadTypesQuery {\n payloadtype(where: {deleted: {_eq: false}, wrapper: {_eq: true}}) {\n id\n supported_os\n }\n}\n "])));function rn(e){var t=s.a.useState(""),a=Object(u.a)(t,2),n=a[0],i=a[1],r=s.a.useState([]),c=Object(u.a)(r,2),o=c[0],l=c[1];if(Object(je.a)(nn,{fetchPolicy:"network-only",onCompleted:function(t){var a=t.payloadtype.reduce((function(e,t){var a=t.supported_os.split(",").reduce((function(t,a){return e.includes(a)?t:[].concat(Object(y.a)(t),[a])}),[]);return[].concat(Object(y.a)(e),Object(y.a)(a))}),[]).sort();console.log(e.prevData),void 0!==e.prevData?i(e.prevData):""===n&&i(a[0]),l(a),0===a.length&&O.b.warning("No Wrappers exist within Mythic. Try importing one first via the mythic-cli binary")},onError:function(e){console.error(e)}}).loading)return Object(x.jsx)("div",{children:Object(x.jsx)(oa.a,{})});return Object(x.jsxs)("div",{children:[Object(x.jsx)(L.a,{variant:"h3",align:"left",id:"selectospage",component:"div",style:{marginLeft:"10px"},children:"Select Target Operating System"})," ",Object(x.jsx)("br",{}),Object(x.jsxs)(mt.a,{children:[Object(x.jsx)(ht.a,{native:!0,value:n,onChange:function(e){return i(e.target.value)},children:o.map((function(e){return Object(x.jsx)("option",{value:e,children:e},"step1"+e)}))}),Object(x.jsx)(sa.a,{children:"Target Operating System"})]}),Object(x.jsx)("br",{}),Object(x.jsx)("br",{}),Object(x.jsx)(tn,{first:e.first,last:e.last,canceled:function(){e.canceled()},finished:function(){0!==o.length?e.finished(n):O.b.warning("No Wrappers exist within Mythic. Try importing one first via the mythic-cli binary")}})]})}function cn(e){var t=e.onChange,a=e.parameter_type,n=e.default_value,i=e.name,r=e.required,c=e.verifier_regex,l=e.id,d=e.description,p=e.value,m=e.returnAllDictValues,h=s.a.useState(""),f=Object(u.a)(h,2),O=f[0],g=f[1],_=Object(ee.a)(),k=s.a.useState([]),w=Object(u.a)(k,2),S=w[0],D=w[1],T=s.a.useState([]),$=Object(u.a)(T,2),P=$[0],A=$[1],L=s.a.useState([]),F=Object(u.a)(L,2),N=F[0],q=F[1],R=s.a.useState(""),B=Object(u.a)(R,2),z=B[0],W=B[1],H=s.a.useState([]),U=Object(u.a)(H,2),G=U[0],K=U[1],V=s.a.useState(new Date),Q=Object(u.a)(V,2),J=Q[0],Y=Q[1],Z=function(e){var a=e.map((function(e){return m?{custom:"*"===e.name,key:e.key,name:e.name,value:e.value}:Object(jt.a)({},e.key,e.value)}));t(i,a,!1)};Object(o.useEffect)((function(){if("ChooseOne"===a){if(n){var e=n.split("\n");g(e[0]),K(e)}""!==p&&void 0!==p&&(g(p),t(i,p,""))}else if("Date"===a){if(""!==n){var r=new Date;r.setDate(r.getDate()+parseInt(n)),ie(r),g(-1)}""!==p&&void 0!==p&&p.includes("-")&&(console.log("passed date value: ",p),Y(new Date(p)),g(-1),t(i,new Date(p).toISOString().slice(0,10),""))}else if("Dictionary"===a){var c=JSON.parse(n);A(c);var o=c.reduce((function(e,t){return t.default_show?[].concat(Object(y.a)(e),[Object(v.a)(Object(v.a)({},t),{},{value:t.default_value,key:"*"===t.name?"":t.name})]):Object(y.a)(e)}),[]);Z(o),D(o);var s=c.reduce((function(e,t){var a=o.reduce((function(e,a){return a.name===t.name?e+1:e}),0);return-1===t.max||t.max>a?[].concat(Object(y.a)(e),[Object(v.a)(Object(v.a)({},t),{},{value:t.default_value,key:"*"===t.name?"":t.name})]):Object(y.a)(e)}),[]);q(s),s.length>0&&W(s[0]),""!==p&&void 0!==p&&"object"===typeof p&&(D(p),Z(p))}else void 0!==n&&g(n),""!==p&&void 0!==p&&(g(p),t(i,p,""))}),[n,a,i]);var X=function(e){g(e.target.value),t(i,e.target.value,!1)},te=function(e,a,n){g(a),t(e,a,n)},ae=function(e){return(r&&""!==c||""!==c&&""!==e)&&!RegExp(c).test(e)},ne=function(){var e=z;D([].concat(Object(y.a)(S),[e]));var t=N.reduce((function(t,a){var n=S.reduce((function(e,t){return t.name===a.name?e+1:e}),0);return e.name===a.name&&(n+=1),-1===a.max||a.max>n?[].concat(Object(y.a)(t),[Object(v.a)({},a)]):Object(y.a)(t)}),[]);Z(t),q(t),t.length>0&&W(t[0])},ie=function(e){Y(e),t(i,e.toISOString().slice(0,10),"")};return Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{children:Object(x.jsx)(kt.a,{title:i.length>0?i:"No Description",children:d})}),Object(x.jsx)(C.a,{children:function(){switch(a){case"Date":return Object(x.jsx)(yt.a,{utils:_t.a,children:Object(x.jsx)(ft.a,{container:!0,justify:"flex-start",children:Object(x.jsx)(vt.a,{disableToolbar:!0,variant:"inline",format:"MM/dd/yyyy",margin:"normal",value:J,onChange:ie,KeyboardButtonProps:{"aria-label":"change date"}})})});case"ChooseOne":return Object(x.jsx)(mt.a,{children:Object(x.jsx)(ht.a,{native:!0,value:O,onChange:X,children:G.map((function(e,t){return Object(x.jsx)("option",{value:e,children:e},"buildparamopt"+t)}))})});case"Dictionary":return Object(x.jsxs)(s.a.Fragment,{children:[S.map((function(e,t){return Object(x.jsxs)("div",{children:[Object(x.jsxs)(E.a,{onClick:function(e){!function(e){var t=S[e],a=S.filter((function(t,a){return e!==a}));D(a);var n=P.reduce((function(e,n){var i=a.reduce((function(e,t){return t.name===n.name?e+1:e}),0);return t.name===n.name&&(i-=1),-1===n.max||n.max>i?[].concat(Object(y.a)(e),[Object(v.a)(Object(v.a)({},n),{},{value:n.default_value,key:"*"===n.name?"":n.name})]):Object(y.a)(e)}),[]);Z(n),q(n),n.length>0&&W(n[0])}(t)},children:[Object(x.jsx)(M.a,{style:{color:_.palette.error.main}})," "]}),"*"===e.name?Object(x.jsx)(Ot.a,{style:{width:"20%"},startAdornment:Object(x.jsx)(b.a,{disabled:!0,children:"Key"}),size:"small",value:e.key,onChange:function(e){return function(e,t){var a=S.map((function(a,n){return n===t?Object(v.a)(Object(v.a)({},a),{},{key:e.target.value}):Object(v.a)({},a)}));Z(a),D(a)}(e,t)}}):Object(x.jsx)(Ot.a,{variant:"outlined",size:"small",style:{width:"20%"},startAdornment:Object(x.jsx)(b.a,{disabled:!0,children:"key"}),value:e.key}),Object(x.jsx)(Ot.a,{style:{width:"75%"},startAdornment:Object(x.jsx)(b.a,{disabled:!0,children:"value"}),size:"small",value:e.value,onChange:function(e){return function(e,t){var a=S.map((function(a,n){return n===t?Object(v.a)(Object(v.a)({},a),{},{value:e.target.value}):Object(v.a)({},a)}));Z(a),D(a)}(e,t)}})]},"dictval"+t)})),N.length>0?Object(x.jsxs)("div",{children:[Object(x.jsxs)(E.a,{onClick:ne,children:[" ",Object(x.jsx)(gt.a,{style:{color:_.palette.success.main}})," "]}),Object(x.jsx)(ht.a,{size:"small",value:z,onChange:function(e){return W(e.target.value)},children:N.map((function(e,t){return Object(x.jsx)(tt.a,{value:e,children:"*"===e.name?"Custom Key":e.name},"selectopt"+i+"i")}))})]}):null]});case"String":return Object(x.jsx)(j.a,{required:r,value:O,multiline:!0,onChange:te,display:"inline-block",name:i,validate:ae,errorText:"Must match: "+c});default:return null}}()})]},"buildparam"+l)}function on(e){return Object(x.jsxs)(S.a,{component:T.a,className:"mythicElement",children:[Object(x.jsx)(L.a,{variant:"h4",align:"left",id:"SettingsTable",component:"div",style:{display:"inline-block",float:"left",marginLeft:"10px"},children:"Build Parameters"}),Object(x.jsxs)(k.a,{size:"small",style:{tableLayout:"fixed",maxWidth:"calc(100vw)",overflow:"scroll"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{children:"Build Parameter"}),Object(x.jsx)(C.a,{children:"Value"})]})}),Object(x.jsx)(w.a,{children:e.buildParameters.map((function(t){return Object(x.jsx)(cn,Object(v.a)({onChange:e.onChange},t),"buildparamtablerow"+t.id)}))})]})]})}var sn,ln=Object(be.a)(an||(an=Object(_.a)(["\nquery getPayloadTypesBuildParametersQuery($os: String!) {\n payloadtype(where: {supported_os: {_ilike: $os}, deleted: {_eq: false}, wrapper: {_eq: true}}) {\n ptype\n id\n file_extension\n supports_dynamic_loading\n buildparameters(where: {deleted: {_eq: false} }) {\n id\n name\n description\n default_value: parameter\n parameter_type\n required\n verifier_regex\n }\n }\n}\n "])));function dn(e){var t=s.a.useState(""),a=Object(u.a)(t,2),n=a[0],i=a[1],r=s.a.useState(0),c=Object(u.a)(r,2),o=c[0],l=c[1],d=s.a.useState(""),b=Object(u.a)(d,2),j=b[0],p=b[1],m=s.a.useState([]),h=Object(u.a)(m,2),f=h[0],g=h[1],_=Object(je.a)(ln,{variables:{os:"%"+e.buildOptions+"%"},onCompleted:function(t){if(t.payloadtype.length>0)if(void 0!==e.prevData&&e.prevData.os===e.buildOptions){i(e.prevData.payload_type),l(e.prevData.payload_type_id),p(e.prevData.file_extension);var a=t.payloadtype.reduce((function(t,a){if(a.ptype===e.prevData.payload_type){var n=a.buildparameters.map((function(t){for(var a=0;at.cmd?1:t.cmd>e.cmd?-1:0}));c(t);var a=e.payload[0].buildparameterinstances.map((function(e){return{description:e.buildparameter.description,value:e.parameter}})).sort((function(e,t){return e.description>t.description?1:t.description>e.description?-1:0}));j(a);var n=e.payload[0].c2profileparametersinstances.reduce((function(e,t){return t.c2profile.name in e?Object(v.a)(Object(v.a)({},e),{},Object(jt.a)({},t.c2profile.name,[].concat(Object(y.a)(e[t.c2profile.name]),[{description:t.c2profileparameter.description,value:t.value,enc_key:t.enc_key_base64,dec_key:t.dec_key_base64,parameter_type:t.c2profileparameter.parameter_type}]))):Object(v.a)(Object(v.a)({},e),{},Object(jt.a)({},t.c2profile.name,[{description:t.c2profileparameter.description,value:t.value,enc_key:t.enc_key_base64,dec_key:t.dec_key_base64,parameter_type:t.c2profileparameter.parameter_type}]))}),{}),i=Object.keys(n).reduce((function(e,t){return[].concat(Object(y.a)(e),[{c2_profile:t,parameters:n[t].sort((function(e,t){return e.description>t.description?1:t.description>e.description?-1:0}))}])}),[]);g(i)}}),S=_.loading,$=_.error,P=_.data;return S?Object(x.jsx)(Ae.a,{style:{marginTop:"10px"}}):$?(console.error($),Object(x.jsx)("div",{children:"Error!"})):Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(T.a,{elevation:5,style:{backgroundColor:a.pageHeader.main,color:a.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:Object(x.jsx)(L.a,{variant:"h6",style:{textAlign:"left",display:"inline-block",marginLeft:"20px",color:a.pageHeaderColor},children:"Payload Information"})}),Object(x.jsxs)(k.a,{size:"small","aria-label":"details",style:{overflowWrap:"break-word"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"Payload Info"}),Object(x.jsx)(C.a,{children:"Value"})]})}),Object(x.jsxs)(w.a,{children:[Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"Payload Type"}),Object(x.jsx)(C.a,{children:P.payload[0].payloadtype.ptype})]}),Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"Selected OS"}),Object(x.jsx)(C.a,{children:P.payload[0].os})]}),Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"UUID"}),Object(x.jsx)(C.a,{children:P.payload[0].uuid})]}),P.payload[0].filemetum?Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"Filename"}),Object(x.jsx)(C.a,{children:P.payload[0].filemetum.filename_text})]},"filename_text"):null,Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"Download URL"}),Object(x.jsx)(C.a,{children:window.location.origin+"/direct/download/"+P.payload[0].filemetum.agent_file_id})]}),Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"SHA1"}),Object(x.jsx)(C.a,{children:P.payload[0].filemetum.sha1})]}),Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"MD5"}),Object(x.jsx)(C.a,{children:P.payload[0].filemetum.md5})]})]})]}),Object(x.jsx)(T.a,{elevation:5,style:{backgroundColor:a.pageHeader.main,color:a.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:Object(x.jsx)(L.a,{variant:"h6",style:{textAlign:"left",display:"inline-block",marginLeft:"20px",color:a.pageHeaderColor},children:"Build Parameters"})}),Object(x.jsxs)(k.a,{size:"small","aria-label":"details",style:{overflowWrap:"break-word"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{style:{width:"30%"},children:"Parameter"}),Object(x.jsx)(C.a,{children:"Value"})]})}),Object(x.jsx)(w.a,{children:d.map((function(t,a){return Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{children:t.description}),Object(x.jsx)(C.a,{children:t.value})]},"buildprop"+a+"for"+e.payload_id)}))})]}),O.map((function(t){return Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(T.a,{elevation:5,style:{backgroundColor:a.pageHeader.main,color:a.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:Object(x.jsx)(L.a,{variant:"h6",style:{textAlign:"left",display:"inline-block",marginLeft:"20px",color:a.pageHeaderColor},children:t.c2_profile})}),Object(x.jsxs)(k.a,{size:"small","aria-label":"details",style:{overflowWrap:"break-word"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{style:{width:"30%"},children:"Parameter"}),Object(x.jsx)(C.a,{children:"Value"})]})}),Object(x.jsx)(w.a,{style:{whiteSpace:"pre"},children:t.parameters.map((function(a,n){return Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:a.description}),Object(x.jsxs)(C.a,{children:["Dictionary"===a.parameter_type?JSON.stringify(JSON.parse(a.value),null,2):a.value,null===a.enc_key?null:Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)("br",{}),Object(x.jsx)("b",{children:"Encryption Key: "})," ",a.enc_key]}),null===a.dec_key?null:Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)("br",{}),Object(x.jsx)("b",{children:"Decryption Key: "})," ",a.dec_key]})]})]},"c2frag"+e.payload_id+t.c2_profile+n)}))})]})]},"c2frag"+e.payload_id+t.c2_profile)})),r.length>0&&Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(T.a,{elevation:5,style:{backgroundColor:a.pageHeader.main,color:a.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:Object(x.jsx)(L.a,{variant:"h6",style:{textAlign:"left",display:"inline-block",marginLeft:"20px",color:a.pageHeaderColor},children:"Loaded Commands"})}),Object(x.jsxs)(k.a,{size:"small","aria-label":"details",style:{overflowWrap:"break-word"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{children:"Command Name"}),Object(x.jsx)(C.a,{children:"Mythic Version"}),Object(x.jsx)(C.a,{children:"Loaded Version"}),Object(x.jsx)(C.a,{style:{width:"5rem"},children:"Documentation"})]})}),Object(x.jsx)(w.a,{children:r.map((function(t){return Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:t.cmd}),Object(x.jsx)(C.a,{children:t.mythic}),Object(x.jsx)(C.a,{children:t.payload}),Object(x.jsx)(C.a,{children:Object(x.jsx)(b.a,{variant:"contained",color:"primary",target:"_blank",href:"/docs/agents/"+P.payload[0].payloadtype.ptype+"/commands/"+t.cmd,children:"Docs"})})]},t.cmd+e.payload_id)}))})]})]}),null!==P.payload[0].wrapped_payload_id&&Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(T.a,{elevation:5,style:{backgroundColor:a.pageHeader.main,color:a.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:Object(x.jsx)(L.a,{variant:"h5",style:{textAlign:"left",display:"inline-block",marginLeft:"20px",color:a.pageHeaderColor},children:"Wrapped Payload Information"})}),Object(x.jsx)(jn,{payload_id:P.payload[0].wrapped_payload_id})]})]})}var pn,mn,hn=a(209),fn=a.n(hn),On=Object(Se.a)((function(e){return{root:{margin:"auto",width:"100%"},paper:{width:200,height:230,overflow:"auto"},button:{margin:e.spacing(.5,0)}}})),xn=Object(be.a)(pn||(pn=Object(_.a)(['\nquery getWrappablePayloads($payloadType: Int!) {\n payloadtype_by_pk(id: $payloadType) {\n wrap_these_payload_types {\n wrapped {\n ptype\n payloads(where: {auto_generated: {_eq: false}, build_phase: {_eq: "success"}, deleted: {_eq: false}}) {\n id\n tag\n uuid\n creation_time\n filemetum {\n agent_file_id\n filename_text\n id\n }\n }\n }\n }\n }\n}\n '])));function gn(e){var t=s.a.useState([]),a=Object(u.a)(t,2),n=a[0],i=a[1],r=Object(je.a)(xn,{fetchPolicy:"network-only",variables:{payloadType:e.buildOptions.payload_type_id},onCompleted:function(){if(r.payloadtype_by_pk.wrap_these_payload_types.length>0){for(var e=[],t=0;t0?"success"===l.payload[0].build_phase?(O.b.dismiss(),O.b.success(l.payload[0].build_message,{persist:!0,content:function(e){return Object(x.jsx)(Cn,{id:e,file_id:l.payload[0].filemetum.agent_file_id})}})):"building"===l.payload[0].build_phase?O.b.info("Building payload ".concat(l.payload[0].uuid,"..."),{autoHideDuration:5e3}):""!==l.payload[0].build_error?O.b.error(l.payload[0].build_stderr,{persist:!0,content:function(e){return Object(x.jsx)(Sn,{id:e,display:l.payload[0].build_stderr})}}):O.b.error(l.payload[0].build_message,{persist:!0,content:function(e){return Object(x.jsx)(Sn,{id:e,display:l.payload[0].build_message})}}):c&&(console.log(c),O.b.error("Mythic encountered an error: "+c.toString()))}),[r,l,c]),null}var In=Object(be.a)(_n||(_n=Object(_.a)(["\n mutation createPayloadMutation($payload: String!) {\n createPayload(payloadDefinition: $payload) {\n error\n status\n uuid\n }\n}\n "])));function Tn(e){var t=s.a.useState(""),a=Object(u.a)(t,2),n=a[0],i=a[1],r=s.a.useState(""),c=Object(u.a)(r,2),l=c[0],d=c[1],b=Object(pe.a)(In,{update:function(e,t){var a=t.data;"success"===a.createPayload.status?O.b.info("Submitted payload to build pipeline"):O.b.error(a.createPayload.error)}}),p=Object(u.a)(b,1)[0];Object(o.useEffect)((function(){""!==e.buildOptions[1].file_extension?i(e.buildOptions[1].payload_type+"."+e.buildOptions[1].file_extension):i(e.buildOptions[1].payload_type)}),[e.buildOptions]);var m=function(){var t=e.buildOptions[1].parameters.map((function(e){return e})),a={selected_os:e.buildOptions[0],payload_type:e.buildOptions[1].payload_type,filename:n,tag:l,commands:[],build_parameters:t,c2_profiles:[],wrapper:!0,wrapped_payload:e.buildOptions[2]};p({variables:{payload:JSON.stringify(a)}}).catch((function(e){console.log(e)}))};return Object(x.jsxs)("div",{children:[Object(x.jsx)(L.a,{variant:"h3",align:"left",id:"selectc2profiles",component:"div",style:{marginLeft:"10px"},children:"Payload Review"}),Object(x.jsx)("br",{}),Object(x.jsx)(j.a,{onEnter:m,autoFocus:!0,required:!1,placeholder:"Filename",value:n,multiline:!1,onChange:function(e,t,a){i(t)},display:"inline-block"}),Object(x.jsx)(j.a,{onEnter:m,required:!1,placeholder:"description",value:l,multiline:!1,onChange:function(e,t,a){d(t)},display:"inline-block"}),Object(x.jsx)(tn,{first:e.first,last:e.last,canceled:function(){e.canceled()},finished:m}),Object(x.jsx)("br",{}),Object(x.jsx)("br",{}),Object(x.jsx)(Dn,{})]})}function $n(e){var t=s.a.useState({}),a=Object(u.a)(t,2),n=a[0],i=a[1],r=s.a.useState(0),c=Object(u.a)(r,2),o=c[0],l=c[1],d=function(e){i(Object(v.a)(Object(v.a)({},n),{},Object(jt.a)({},o,e))),p()},b=function(){m()},j=["Select Target OS","Payload Type","Select Payload","Build"],p=function(){l((function(e){return e+1}))},m=function(){l((function(e){return e-1}))};return Object(x.jsxs)("div",{style:{height:"calc(95vh)"},children:[Object(x.jsx)(ia.a,{activeStep:o,alternativeLabel:!0,children:j.map((function(e,t){return Object(x.jsx)(ra.a,{children:Object(x.jsx)(ca.a,{children:e})},e)}))}),function(e){switch(e){case 0:return Object(x.jsx)(rn,{buildOptions:n,prevData:n[0],finished:d,canceled:b,first:!0,last:!1});case 1:return Object(x.jsx)(dn,{buildOptions:n[0],prevData:n[1],finished:d,canceled:b,first:!1,last:!1});case 2:return Object(x.jsx)(gn,{buildOptions:n[1],prevData:n[2],finished:d,canceled:b,first:!1,last:!1});case 3:return Object(x.jsx)(Tn,{buildOptions:n,canceled:b,first:!1,last:!0});default:return"Unknown step"}}(o)]})}var Pn=a(909),An=a(923),En=a(472),Ln=a.n(En),Fn=a(466),Nn=a(908);function qn(e){var t=s.a.useState(null),a=Object(u.a)(t,2),n=a[0],i=a[1],r=function(){c(),e.onUpdateResolution({id:e.id,resolved:!e.resolved})},c=function(){i(null)},o=s.a.useCallback((function(e){i(e.currentTarget)}),[]);return Object(x.jsxs)(Nn.a,{children:[Object(x.jsx)(E.a,{"aria-controls":"eventmenu"+e.id,"aria-haspopup":"true",onClick:o,children:Object(x.jsx)(Ln.a,{})}),Object(x.jsxs)(Fn.a,{elevation:5,id:"eventmenu"+e.id,anchorEl:n,open:Boolean(n),onClose:c,children:["warning"===e.level&&e.resolved?Object(x.jsx)(tt.a,{onClick:r,children:"Unresolve"}):"warning"!==e.level||e.resolved?Object(x.jsx)(tt.a,{onClick:function(){c(),e.onUpdateLevel({id:e.id})},children:"Make Warning"}):Object(x.jsx)(tt.a,{onClick:r,children:"Resolve"}),Object(x.jsx)(tt.a,{onClick:function(){c(),e.getSurroundingEvents({id:e.id})},children:"Get Surrounding Events"}),Object(x.jsxs)(tt.a,{onClick:function(){c(),e.onUpdateDeleted({id:e.id})},children:[Object(x.jsx)(M.a,{}),"Delete"]})]})]})}var Rn=Object(Se.a)((function(e){return{root:{width:"100%",maxWidth:"36ch"},inline:{display:"inline"}}}));function Bn(e){var t=Rn(),a=Object(ee.a)(),n=Object(f.a)(h.b);return Object(x.jsxs)(xa.a,{alignItems:"flex-start",style:Object(v.a)({},e.style),children:[Object(x.jsx)(Pn.a,{children:Object(x.jsx)(An.a,{children:e.operator?e.operator.username[0]:"M"})}),Object(x.jsx)(ya.a,{disableTypography:!0,primary:Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsxs)(L.a,{component:"span",variant:"body1",className:t.inline,style:{fontWeight:"bold",margin:0,padding:0},children:[e.operator?e.operator.username:"Mythic",e.count>1?" ( "+e.count+" )":""]}),Object(x.jsx)(L.a,{component:"span",variant:"caption",className:t.inline,style:{margin:"0 0 0 10px"},children:Object(Z.b)(e.timestamp,n.user.view_utc_time)})]}),secondary:Object(x.jsx)("pre",{style:{overflowX:"auto",width:"max-content",maxWidth:"97%",margin:"0 0 0 0",borderRadius:"9px",padding:"5px",backgroundColor:"warning"===e.level&&e.resolved?a.palette.textBackgroundColorSuccess:"warning"!==e.level||e.resolved?e.operator?a.palette.textBackgroundColor:a.palette.textBackgroundColorMythic:a.palette.textBackgroundColorError},children:e.message}),style:{}}),Object(x.jsx)(qn,{id:e.id,level:e.level,onUpdateDeleted:e.onUpdateDeleted,onUpdateResolution:e.onUpdateResolution,onUpdateLevel:e.onUpdateLevel,getSurroundingEvents:e.getSurroundingEvents,resolved:e.resolved})]})}var Mn=a(290),zn=a.n(Mn),Wn=a(827);function Hn(e){var t=s.a.useState(""),a=Object(u.a)(t,2),n=a[0],i=a[1],r=function(t){t.preventDefault(),n&&n.length>0&&(e.onSubmitMessage(n),i(""))};return Object(x.jsx)("div",{style:{padding:"0",margin:"0",position:"absolute",bottom:0,width:"100%"},children:Object(x.jsx)("form",{onSubmit:r,children:Object(x.jsx)(Wn.a,{InputProps:{endAdornment:Object(x.jsx)(E.a,{color:"primary",variant:"contained",onClick:r,children:Object(x.jsx)(zn.a,{})})},fullWidth:!0,size:"small",style:{padding:0,margin:0},variant:"outlined",value:n,onChange:function(e){e.preventDefault(),i(e.target.value)},label:"Type Message..."})})})}var Un,Gn,Kn,Vn,Qn,Jn,Yn,Zn,Xn,ei,ti=a(169),ai=a(165),ni=function(e){var t=e.data,a=e.index,n=e.style,i=t[t.length-a-1];return Object(x.jsx)("div",{style:n,children:Object(x.jsx)(Bn,Object(v.a)({},i))})},ii=function(e){var t=e.onUpdateDeleted,a=e.onUpdateLevel,n=e.onUpdateResolution,i=e.getSurroundingEvents,r=e.operationeventlog,c=s.a.createRef(),l=function(e){return 75+20*(r[r.length-e-1].message.match(/\n/g)||[]).length},d=r.map((function(e){return Object(v.a)({onUpdateDeleted:t,onUpdateLevel:a,onUpdateResolution:n,getSurroundingEvents:i},e)}));return Object(o.useEffect)((function(){c.current&&c.current.resetAfterIndex(0)}),[r]),Object(x.jsx)(ai.a,{children:function(e){var t=e.height,a=e.width;return Object(x.jsx)(ti.c,{ref:c,height:t-50,itemData:d,itemCount:r.length,width:a,itemSize:l,overscanCount:20,children:ni})}})};function ri(e){var t=Object(o.useRef)(null),a=Object(ee.a)(),n=s.a.useRef(null),i=s.a.useState(!1),r=Object(u.a)(i,2),c=r[0],l=r[1],d=function(){t.current.scrollIntoView({behavior:"smooth"})},j=[{name:"Load More Events",click:e.loadMore},{name:"Load All Errors",click:e.loadNextError},{name:"Resolve Viewable Errors",click:e.resolveViewableErrors},{name:"Resolve All Errors",click:e.resolveAllErrors}];return Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsxs)(T.a,{elevation:5,style:{backgroundColor:a.pageHeader.main,color:a.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:[Object(x.jsx)(L.a,{variant:"h3",style:{textAlign:"left",display:"inline-block",marginLeft:"20px"},children:"Operational Event Messages"}),Object(x.jsx)(Qe.a,{variant:"contained",ref:n,"aria-label":"split button",style:{marginRight:"10px",marginTop:"10px",float:"right"},color:"primary",children:Object(x.jsxs)(b.a,{size:"small",color:"primary","aria-controls":c?"split-button-menu":void 0,"aria-expanded":c?"true":void 0,"aria-haspopup":"menu",onClick:function(){return l(!c)},children:["Actions ",Object(x.jsx)(Ye.a,{})]})}),Object(x.jsx)(et.a,{open:c,anchorEl:n.current,role:void 0,transition:!0,disablePortal:!0,style:{zIndex:10},children:function(e){var t=e.TransitionProps,n=e.placement;return Object(x.jsx)(Xe.a,Object(v.a)(Object(v.a)({},t),{},{style:{transformOrigin:"bottom"===n?"center top":"center bottom"},children:Object(x.jsx)(T.a,{style:{backgroundColor:"dark"===a.palette.type?a.palette.primary.dark:a.palette.primary.light,color:"white"},children:Object(x.jsx)(Ze.a,{onClickAway:function(){return l(!1)},children:Object(x.jsx)(at.a,{id:"split-button-menu",children:j.map((function(e,t){return Object(x.jsx)(tt.a,{onClick:function(e){return function(e,t){j[t].click(),l(!1)}(0,t)},children:e.name},e.name)}))})})})}))}})]}),Object(x.jsxs)(T.a,{elevation:5,style:{position:"relative",height:"calc(90vh)",backgroundColor:a.body},variant:"elevation",children:[Object(x.jsx)(ii,{onUpdateResolution:e.onUpdateResolution,onUpdateLevel:e.onUpdateLevel,onUpdateDeleted:e.onUpdateDeleted,getSurroundingEvents:e.getSurroundingEvents,operationeventlog:e.operationeventlog}),Object(x.jsx)("div",{ref:t}),Object(x.jsx)(Hn,{onSubmitMessage:function(t){t&&t.length>0&&(e.onSubmitMessage({level:"info",message:t}),d())}})]})]})}var ci=Object(be.a)(Un||(Un=Object(_.a)(["\nquery GetOperationEventLogs($operation_id: Int!, $offset: Int!, $eventQuerySize: Int!) {\n operationeventlog(where: {operation_id: {_eq: $operation_id}, deleted: {_eq: false}}, order_by: {id: desc}, limit: $eventQuerySize, offset: $offset) {\n id\n level\n message\n resolved\n timestamp\n count\n operator {\n id\n username\n }\n }\n}\n "]))),oi=Object(be.a)(Gn||(Gn=Object(_.a)(["\nsubscription GetOperationEventLogs($operation_id: Int!, $offset: Int!, $eventQuerySize: Int!) {\n operationeventlog(where: {operation_id: {_eq: $operation_id}, deleted: {_eq: false}}, order_by: {id: desc}, limit: $eventQuerySize, offset: $offset) {\n id\n level\n message\n resolved\n timestamp\n count\n operator {\n id\n username\n }\n }\n}\n "]))),si=Object(be.a)(Kn||(Kn=Object(_.a)(["\nquery GetSurroundingOperationEventLogs($operation_id: Int!, $lower_id: Int!, $upper_id: Int!) {\n operationeventlog(where: {operation_id: {_eq: $operation_id}, deleted: {_eq: false}, id: {_gt: $lower_id, _lt: $upper_id}}, order_by: {id: desc}) {\n id\n level\n message\n resolved\n timestamp\n count\n operator {\n id\n username\n }\n }\n}\n "]))),li=Object(be.a)(Vn||(Vn=Object(_.a)(["\nmutation CreateOperationEventLog($message: String!, $level: String!) {\n insert_operationeventlog_one(object:{level: $level, message: $message}) {\n id\n }\n}\n "]))),di=Object(be.a)(Qn||(Qn=Object(_.a)(['\n query GetOperationEventLogError($operation_id: Int!) {\n operationeventlog(where: {operation_id: {_eq: $operation_id}, deleted: {_eq: false}, level: {_eq: "warning"}, resolved: {_eq: false}}, order_by: {id: desc}) {\n id\n level\n message\n resolved\n timestamp\n count\n operator {\n id\n username\n }\n }\n }\n ']))),ui=Object(be.a)(Jn||(Jn=Object(_.a)(["\nmutation UpdateDeletedOperationEventLog($id: Int!) {\n update_operationeventlog(where:{id: {_eq: $id}}, _set: {deleted: true}) {\n returning{\n id\n deleted\n }\n }\n}\n "]))),bi=Object(be.a)(Yn||(Yn=Object(_.a)(["\nmutation UpdateResolutionOperationEventLog($id: Int!, $resolved: Boolean!) {\n update_operationeventlog_by_pk(pk_columns:{id: $id}, _set: {resolved: $resolved}) {\n id\n resolved\n }\n}\n "]))),ji=Object(be.a)(Zn||(Zn=Object(_.a)(['\nmutation UpdateLevelOperationEventLog($id: Int!) {\n update_operationeventlog_by_pk(pk_columns: {id: $id}, _set: {level: "warning"}) {\n id\n level\n }\n}\n ']))),pi=Object(be.a)(Xn||(Xn=Object(_.a)(["\n mutation UpdateResolveViewableErrorsOperationEventLog($ids: [Int]!) {\n update_operationeventlog(where:{id: {_in: $ids}}, _set: {resolved: true}) {\n returning{\n id\n resolved\n }\n }\n }\n "]))),mi=Object(be.a)(ei||(ei=Object(_.a)(["\n mutation UpdateResolveAllErrorsOperationEventLog($operation_id: Int!) {\n update_operationeventlog(where: {resolved: {_eq: false}, operation_id: {_eq: $operation_id}}, _set: {resolved: true}) {\n returning{\n id\n resolved\n }\n }\n }\n "])));function hi(e){var t=Object(f.a)(h.b),a=s.a.useState([]),n=Object(u.a)(a,2),i=n[0],r=n[1],c=s.a.useState(0),o=Object(u.a)(c,2),l=o[0],d=o[1];Object(Me.a)(oi,{variables:{operation_id:t.user.current_operation_id,offset:0,eventQuerySize:100},fetchPolicy:"network-only",shouldResubscribe:!0,onSubscriptionData:function(e){var t=e.subscriptionData;0===l&&d(t.data.operationeventlog.length);var a=t.data.operationeventlog.reduce((function(e,t){if(e.find((function(e){return e.id===t.id}))){var a=e.findIndex((function(e){return e.id===t.id})),n=Object(y.a)(e);return n[a]=t,Object(y.a)(n)}return[].concat(Object(y.a)(e),[t])}),Object(y.a)(i));a.sort((function(e,t){return e.id>t.id?-1:t.id>e.id?1:0})),r(a)}});var b=Object(pt.a)(ci,{onError:function(e){console.error(e)},fetchPolicy:"network-only",onCompleted:function(e){if(O.b.dismiss(),0!==e.operationeventlog.length){var t=e.operationeventlog.reduce((function(e,t){return e.find((function(e){return e.id===t.id}))?Object(y.a)(e):[].concat(Object(y.a)(e),[t])}),Object(y.a)(i));d(l+100),r(t),O.b.success("Successfully fetched more events")}else O.b.info("No more events")}}),j=Object(u.a)(b,1)[0],p=Object(pt.a)(si,{onError:function(e){console.error(e)},fetchPolicy:"network-only",onCompleted:function(e){O.b.dismiss();var t=!1,a=e.operationeventlog.reduce((function(e,a){return e.find((function(e){return e.id===a.id}))?Object(y.a)(e):(t=!0,[].concat(Object(y.a)(e),[a]))}),Object(y.a)(i));r(a),t?O.b.success("Successfully fetched surrounding events"):O.b.info("No additional surrounding events")}}),m=Object(u.a)(p,1)[0],g=Object(pt.a)(di,{onError:function(e){console.error(e)},fetchPolicy:"network-only",onCompleted:function(e){if(O.b.dismiss(),0!==e.operationeventlog.length){var t=e.operationeventlog.reduce((function(e,t){return e.find((function(e){return e.id===t.id}))?Object(y.a)(e):[].concat(Object(y.a)(e),[t])}),Object(y.a)(i));r(t),O.b.success("Successfully fetched more errors")}else O.b.info("No more events")}}),_=Object(u.a)(g,1)[0],k=Object(pe.a)(li),w=Object(u.a)(k,1)[0],C=Object(pe.a)(ui,{update:function(e,t){var a=t.data.update_operationeventlog.returning[0],n=i.filter((function(e){return e.id!==a.id}));r(n),O.b.success("Successfully deleted event log")}}),S=Object(u.a)(C,1)[0],D=Object(pe.a)(bi,{update:function(e,t){var a=t.data.update_operationeventlog_by_pk,n=i.map((function(e){return e.id===a.id?Object(v.a)(Object(v.a)({},e),{},{resolved:a.resolved}):e}));r(n)}}),I=Object(u.a)(D,1)[0],T=Object(pe.a)(ji,{update:function(e,t){var a=t.data.update_operationeventlog_by_pk,n=i.map((function(e){return e.id===a.id?Object(v.a)(Object(v.a)({},e),{},{level:a.level}):e}));r(n)}}),$=Object(u.a)(T,1)[0],P=Object(pe.a)(pi,{update:function(e,t){var a=t.data;if(O.b.dismiss(),a.update_operationeventlog.returning.length>0){O.b.success("Resolved All Errors");var n=a.update_operationeventlog.returning.map((function(e){return e.id})),c=i.map((function(e){return n.includes(e.id)?Object(v.a)(Object(v.a)({},e),{},{resolved:!0}):Object(v.a)({},e)}));r(c)}else O.b.info("No Viewable Errors to Resolve")}}),A=Object(u.a)(P,1)[0],E=Object(pe.a)(mi,{update:function(e,t){var a=t.data;if(O.b.dismiss(),a.update_operationeventlog.returning.length>0){O.b.success("Resolved All Errors");var n=a.update_operationeventlog.returning.map((function(e){return e.id})),c=i.map((function(e){return n.includes(e.id)?Object(v.a)(Object(v.a)({},e),{},{resolved:!0}):Object(v.a)({},e)}));r(c)}else O.b.info("No Errors to Resolve")}}),L=Object(u.a)(E,1)[0];return Object(x.jsx)(ri,{onSubmitMessage:function(e){var t=e.level,a=e.message;w({variables:{level:t,message:a}})},operationeventlog:i,loadMore:function(){O.b.info("Loading more events..."),j({variables:{operation_id:t.user.current_operation_id,offset:l,eventQuerySize:100}})},loadNextError:function(){O.b.info("Loading more errors..."),_({variables:{operation_id:t.user.current_operation_id}})},onUpdateDeleted:function(e){var t=e.id;O.b.info("Deleting event log..."),S({variables:{id:t}})},onUpdateResolution:function(e){var t=e.id,a=e.resolved;I({variables:{id:t,resolved:a}})},onUpdateLevel:function(e){var t=e.id;$({variables:{id:t}})},getSurroundingEvents:function(e){var a=e.id;O.b.info("Loading surrounding events..."),m({variables:{lower_id:a-5,upper_id:a+5,operation_id:t.user.current_operation_id}})},resolveViewableErrors:function(){O.b.info("Resolving Errors...");var e=i.reduce((function(e,t){return"warning"!==t.level||t.resolved?Object(y.a)(e):[].concat(Object(y.a)(e),[t.id])}),[]);A({variables:{ids:e}})},resolveAllErrors:function(){O.b.info("Resolving Errors..."),L({variables:{operation_id:t.user.current_operation_id}})}})}var fi,Oi,xi,gi,yi,vi=a(82),_i=a.n(vi);function ki(e){var t=s.a.useState(!1),a=Object(u.a)(t,2),n=a[0],i=a[1],r=s.a.useState("operator"),c=Object(u.a)(r,2),l=c[0],d=c[1],b=s.a.useState({}),j=Object(u.a)(b,2),p=j[0],m=j[1],h=Object(o.useRef)(null);Object(o.useEffect)((function(){i(e.operator.checked),d(e.operator.view_mode),console.log(e.operator),e.operator.disabledcommandsprofile?m(e.operator.disabledcommandsprofile.name):m("")}),[e.operator]);return Object(x.jsx)(s.a.Fragment,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{children:Object(x.jsx)($.a,{checked:n,onChange:function(t){i(t.target.checked),e.updateOperator(Object(v.a)(Object(v.a)({},e.operator),{},{checked:t.target.checked,view_mode:l}))},color:"secondary"})}),Object(x.jsx)(C.a,{children:e.operator.username}),Object(x.jsx)(C.a,{children:n?Object(x.jsxs)(mt.a,{style:{width:"100%"},children:[Object(x.jsx)($t.a,{ref:h,children:"Options"}),Object(x.jsx)(ht.a,{labelId:"demo-dialog-select-label",id:"demo-dialog-select",value:l,onChange:function(t){d(t.target.value),e.updateOperator(Object(v.a)(Object(v.a)({},e.operator),{},{checked:n,view_mode:t.target.value}))},input:Object(x.jsx)(Ot.a,{style:{width:"100%"}}),children:["operator","spectator","lead"].map((function(e){return Object(x.jsx)(tt.a,{value:e,children:e},e)}))})]}):null}),Object(x.jsx)(C.a,{children:n?Object(x.jsxs)(mt.a,{style:{width:"100%"},children:[Object(x.jsx)($t.a,{ref:h,children:"Block List Options"}),Object(x.jsxs)(ht.a,{labelId:"demo-dialog-select-label",id:"demo-dialog-select",value:p,onChange:function(t){m(t.target.value);var a=e.commandBlockLists.findIndex((function(e){return e.name===t.target.value}));a>-1?e.updateOperator(Object(v.a)(Object(v.a)({},e.operator),{},{checked:n,disabledcommandsprofile:e.commandBlockLists[a]})):e.updateOperator(Object(v.a)(Object(v.a)({},e.operator),{},{checked:n,disabledcommandsprofile:null}))},input:Object(x.jsx)(Ot.a,{style:{width:"100%"}}),children:[Object(x.jsx)(tt.a,{value:-1,children:"None"},"None"),e.commandBlockLists.map((function(t){return Object(x.jsx)(tt.a,{value:t.name,children:t.name},e.operator.username+t.name)}))]})]}):null})]})})}var wi=Object(be.a)(fi||(fi=Object(_.a)(["\nquery GetOperation($operation_id: Int!) {\n operation_by_pk(id: $operation_id) {\n id\n admin {\n username\n id\n }\n operatoroperations {\n view_mode\n operator {\n username\n id\n }\n disabledcommandsprofile {\n name\n id\n }\n id\n }\n }\n operator(where: {active: {_eq: true}, deleted: {_eq: false}}) {\n id\n username\n }\n disabledcommandsprofile(where: {operation_id: {_eq: $operation_id}}, distinct_on: name, order_by: {name: asc}) {\n name\n id\n }\n}\n"]))),Ci=Object(be.a)(Oi||(Oi=Object(_.a)(["\nmutation updateLeadMutation($operation_id: Int!, $admin_id: Int!) {\n update_operation_by_pk(pk_columns: {id: $operation_id}, _set: {admin_id: $admin_id}) {\n admin {\n id\n username\n }\n id\n }\n}\n"]))),Si=Object(be.a)(xi||(xi=Object(_.a)(["\nmutation updateOperatorViewMode($operatoroperation_id: Int!, $view_mode: String!, $disabledcommandsprofile: Int) {\n update_operatoroperation_by_pk(pk_columns: {id: $operatoroperation_id}, _set: {view_mode: $view_mode, base_disabled_commands_id: $disabledcommandsprofile}) {\n id\n view_mode\n }\n}"]))),Di=Object(be.a)(gi||(gi=Object(_.a)(["\nmutation removeOperatorsFromOperation($operatoroperation_ids: [Int!]!) {\n delete_operatoroperation(where: {id: {_in: $operatoroperation_ids}}) {\n returning {\n id\n }\n }\n}"]))),Ii=Object(be.a)(yi||(yi=Object(_.a)(["\nmutation addNewOperators($operators: [operatoroperation_insert_input!]!) {\n insert_operatoroperation(objects: $operators) {\n returning {\n id\n }\n }\n}"])));function Ti(e){var t=s.a.useState([]),a=Object(u.a)(t,2),n=a[0],i=a[1],r=s.a.useState({}),c=Object(u.a)(r,2),o=c[0],l=c[1],d=s.a.useState([]),j=Object(u.a)(d,2),p=j[0],m=j[1],h=s.a.useState([]),f=Object(u.a)(h,2),g=f[0],_=f[1];Object(je.a)(wi,{variables:{operation_id:e.id},fetchPolicy:"network-only",onCompleted:function(e){var t=e.operator.map((function(e){return Object(v.a)(Object(v.a)({},e),{},{checked:!1})}));m(e.operation_by_pk.operatoroperations),l(e.operation_by_pk.admin);var a=t.map((function(t){var a=e.operation_by_pk.operatoroperations.find((function(e){return e.operator.id===t.id}));return a?a.operator.id===e.operation_by_pk.admin.id?Object(v.a)(Object(v.a)({},t),{},{checked:!0,view_mode:"lead",operatoroperation_id:a.id,disabledcommandsprofile:a.disabledcommandsprofile}):Object(v.a)(Object(v.a)({},t),{},{checked:!0,view_mode:a.view_mode,operatoroperation_id:a.id,disabledcommandsprofile:a.disabledcommandsprofile}):Object(v.a)(Object(v.a)({},t),{},{view_mode:"operator"})}));a.sort((function(e,t){return e.username>t.username?1:-1})),i(a);var n=Object(y.a)(e.disabledcommandsprofile);_(n)},onError:function(e){O.b.error("Failed to get operational data"),console.error(e)}});var $=Object(pe.a)(Ci,{onCompleted:function(e){O.b.success("Successfully updated Lead")},onError:function(e){O.b.error("Failed to update operation"),console.log("error updating operation",e)}}),P=Object(u.a)($,1)[0],A=Object(pe.a)(Ii,{onCompleted:function(e){O.b.success("Sucessfully added operators")},onError:function(e){O.b.error("Failed to add operators"),console.error("error adding operators to operation",e)}}),E=Object(u.a)(A,1)[0],L=Object(pe.a)(Di,{onCompleted:function(e){O.b.success("Sucessfully removed operators")},onError:function(e){O.b.error("Failed to remove operators"),console.error("error removing operators from operation",e)}}),F=Object(u.a)(L,1)[0],N=Object(pe.a)(Si,{onCompleted:function(e){O.b.success("Successfully updated operator view mode")},onError:function(e){O.b.error("Failed to update operator view mode"),console.error("failed to update view mode: ",e)}}),q=Object(u.a)(N,1)[0],R=function(e){var t=Object(y.a)(n);"lead"===e.view_mode&&(t=t.map((function(e){return"lead"===e.view_mode?Object(v.a)(Object(v.a)({},e),{},{view_mode:"operator"}):Object(v.a)({},e)}))),t=t.map((function(t){return t.id===e.id?Object(v.a)({},e):Object(v.a)({},t)})),i(t)};return Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(V.a,{id:"form-dialog-title",children:"Modify Operator Assignments"}),Object(x.jsx)(G.a,{dividers:!0,children:Object(x.jsx)(S.a,{component:T.a,className:"mythicElement",style:{maxHeight:"calc(50vh)"},children:Object(x.jsxs)(k.a,{size:"small",style:{tableLayout:"fixed",maxWidth:"calc(100vw)",overflow:"scroll"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{style:{width:"8rem"},children:"Assign to Operation"}),Object(x.jsx)(C.a,{style:{width:"8rem"},children:"Operator"}),Object(x.jsx)(C.a,{style:{width:"10rem"},children:"Role"}),Object(x.jsx)(C.a,{children:"Block List"})]})}),Object(x.jsx)(w.a,{children:n.map((function(e){return Object(x.jsx)(ki,{operator:e,updateOperator:R,commandBlockLists:g},"operator"+e.id)}))})]})})}),Object(x.jsxs)(U.a,{children:[Object(x.jsx)(b.a,{onClick:e.onClose,variant:"contained",color:"primary",children:"Cancel"}),Object(x.jsx)(b.a,{onClick:function(){var t=n.find((function(e){return"lead"===e.view_mode}));if(t){t.id!==o.id&&P({variables:{operation_id:e.id,admin_id:t.id}});var a=[],i=[];n.forEach((function(t){var n=p.find((function(e){return e.operator.id===t.id}));n?t.checked?t.view_mode===n.view_mode&&t.disabledcommandsprofile===n.disabledcommandsprofile||q({variables:{operatoroperation_id:n.id,view_mode:t.view_mode,disabledcommandsprofile:t.disabledcommandsprofile?t.disabledcommandsprofile.id:null}}):i.push(n.id):t.checked&&a.push({operation_id:e.id,operator_id:t.id,view_mode:t.view_mode})})),a.length>0&&E({variables:{operators:a}}),i.length>0&&F({variables:{operatoroperation_ids:i}}),e.onClose()}else O.b.error("No Lead for the operation is set")},variant:"contained",color:"secondary",children:"Update"})]})]})}var $i,Pi,Ai=a(474),Ei=a.n(Ai),Li=a(291),Fi=a.n(Li),Ni=a(473),qi=a.n(Ni),Ri=Object(be.a)($i||($i=Object(_.a)(["\nquery GetOperations($operation_id: Int!) {\n operation_by_pk(id: $operation_id) {\n name\n id\n channel\n display_name\n icon_emoji\n icon_url\n webhook\n webhook_message\n complete\n }\n}\n"])));function Bi(e){var t=s.a.useState(""),a=Object(u.a)(t,2),n=a[0],i=a[1],r=s.a.useState(""),c=Object(u.a)(r,2),o=c[0],l=c[1],d=s.a.useState(""),p=Object(u.a)(d,2),m=p[0],h=p[1],f=s.a.useState(""),g=Object(u.a)(f,2),y=g[0],v=g[1],_=s.a.useState(""),k=Object(u.a)(_,2),w=k[0],C=k[1],S=s.a.useState(""),D=Object(u.a)(S,2),I=D[0],T=D[1],P=s.a.useState(""),A=Object(u.a)(P,2),E=A[0],L=A[1],F=s.a.useState(!1),N=Object(u.a)(F,2),q=N[0],R=N[1];Object(je.a)(Ri,{fetchPolicy:"no-cache",variables:{operation_id:e.id},onCompleted:function(e){var t=e.operation_by_pk.webhook_message;try{t=JSON.stringify(JSON.parse(t),null,4)}catch(a){}i(e.operation_by_pk.name),l(e.operation_by_pk.channel),h(e.operation_by_pk.display_name),v(e.operation_by_pk.icon_emoji),C(e.operation_by_pk.icon_url),T(e.operation_by_pk.webhook),L(t),R(e.operation_by_pk.complete)},onError:function(){O.b.error("Failed to fetch data")}});var B=function(e,t,a){switch(e){case"name":i(t);break;case"Webhook Channel":l(t);break;case"Webhook Display Name":h(t);break;case"Webhook Icon Emoji":v(t);break;case"Webhook Icon URL":C(t);break;case"Webhook URL":T(t);break;case"Webhook POST Message":L(t)}};return Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsxs)(V.a,{id:"form-dialog-title",children:["Modify ",n]}),Object(x.jsxs)(G.a,{dividers:!0,style:{maxHeight:"calc(70vh)"},children:[Object(x.jsx)(K.a,{children:"Use this dialog to update some information about an operation."}),Object(x.jsx)(j.a,{autoFocus:!0,value:n,onChange:B,margin:"dense",name:"name"}),"Complete Operation? ",Object(x.jsx)($.a,{checked:q,onChange:function(e){R(e.target.checked)},color:"secondary"}),Object(x.jsx)(j.a,{margin:"dense",value:o,onChange:B,name:"Webhook Channel"}),Object(x.jsx)(j.a,{margin:"dense",value:m,onChange:B,name:"Webhook Display Name"}),Object(x.jsx)(j.a,{margin:"dense",value:y,onChange:B,name:"Webhook Icon Emoji"}),Object(x.jsx)(j.a,{margin:"dense",value:w,onChange:B,name:"Webhook Icon URL"}),Object(x.jsx)(j.a,{margin:"dense",value:I,onChange:B,name:"Webhook URL"}),Object(x.jsx)(ot.a,{mode:"json",theme:"monokai",onChange:function(e,t){L(e)},fontSize:14,showGutter:!0,maxLines:20,highlightActiveLine:!0,value:E,width:"100%",setOptions:{showLineNumbers:!0,tabSize:4,useWorker:!1}})]}),Object(x.jsxs)(U.a,{children:[Object(x.jsx)(b.a,{onClick:e.onClose,variant:"contained",color:"primary",children:"Cancel"}),Object(x.jsx)(b.a,{onClick:function(){e.onUpdateOperation({operation_id:e.id,name:n,channel:o,display_name:m,icon_emoji:y,icon_url:w,webhook:I,webhook_message:E,complete:q}),e.onClose()},variant:"contained",color:"secondary",children:"Update"})]})]})}var Mi,zi,Wi,Hi=Object(be.a)(Pi||(Pi=Object(_.a)(["\nmutation updateCurrentOpertionMutation($operator_id: Int!, $operation_id: Int!) {\n updateCurrentOperation(user_id: $operator_id, operation_id: $operation_id) {\n status\n error\n operation_id\n }\n}\n"])));function Ui(e){var t=s.a.useState(!1),a=Object(u.a)(t,2),n=a[0],i=a[1],r=s.a.useState(!1),c=Object(u.a)(r,2),o=c[0],l=c[1],d=s.a.useState(!1),j=Object(u.a)(d,2),p=j[0],m=j[1],g=Object(f.a)(h.b),y=Object(pe.a)(Hi,{onCompleted:function(e){"success"===e.updateCurrentOperation.status?(Object(h.b)(Object(v.a)(Object(v.a)({},h.b),{},{user:Object(v.a)(Object(v.a)({},h.b.user),{},{current_operation_id:e.updateCurrentOperation.operation_id,current_operation_name:e.updateCurrentOperation.operation_name})})),O.b.success("Updated current operation")):O.b.error(e.updateCurrentOperation.error)},onError:function(e){O.b.error("Failed to update current operation"),console.error(e)}}),_=Object(u.a)(y,1)[0];return Object(x.jsx)(s.a.Fragment,{children:Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsxs)(C.a,{children:[Object(x.jsx)(b.a,{size:"small",onClick:function(){i(!0)},startIcon:Object(x.jsx)(_i.a,{}),color:e.complete?"secondary":"primary",variant:"contained",children:"Edit"}),n&&Object(x.jsx)(Y.a,{open:n,fullWidth:!0,maxWidth:"lg",onClose:function(){i(!1)},innerDialog:Object(x.jsx)(Bi,{onClose:function(){i(!1)},id:e.id,onUpdateOperation:e.onUpdateOperation})})]}),Object(x.jsxs)(C.a,{children:[Object(x.jsx)(b.a,{size:"small",onClick:function(){l(!0)},startIcon:Object(x.jsx)(qi.a,{}),color:e.complete?"secondary":"primary",variant:"contained",children:"Edit"}),o&&Object(x.jsx)(Y.a,{open:o,maxHeight:"calc(80vh)",fullWidth:!0,maxWidth:"md",onClose:function(){l(!1)},innerDialog:Object(x.jsx)(Ti,{id:e.id,onClose:function(){l(!1)}})})]}),Object(x.jsxs)(C.a,{children:[e.name," ",e.complete?" (Completed) ":""]}),Object(x.jsx)(C.a,{children:e.admin.username}),Object(x.jsx)(C.a,{children:Object(x.jsx)(b.a,{size:"small",startIcon:Object(x.jsx)(Fi.a,{}),onClick:function(){O.b.warning("Not Implemented")},color:"primary",variant:"contained",children:"Analysis"})}),Object(x.jsx)(C.a,{children:e.id===g.user.current_operation_id?"Current Operation":Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(b.a,{size:"small",startIcon:Object(x.jsx)(Ei.a,{}),onClick:function(){m(!0)},color:"primary",variant:"contained",children:"Make Current"}),p&&Object(x.jsx)(fa.a,{onClose:function(){m(!1)},onSubmit:function(){_({variables:{operator_id:g.user.user_id,operation_id:e.id}})},open:p,title:"Change Current Operation?",acceptText:"Update",dialogText:"Changing operations will force you to log in again"})]})})]},e.id)})}var Gi,Ki=Object(be.a)(Mi||(Mi=Object(_.a)(["\nmutation NewOperator($username: String!, $password: String!) {\n createOperator(input: {password: $password, username: $username}) {\n error\n id\n status\n }\n}\n"]))),Vi=Object(be.a)(zi||(zi=Object(_.a)(["\nmutation MyMutation($operation_id: Int!, $channel: String!, $complete: Boolean!, $display_name: String!, $icon_emoji: String!, $icon_url: String!, $name: String!, $webhook: String!, $webhook_message: String!) {\n update_operation_by_pk(pk_columns: {id: $operation_id}, _set: {channel: $channel, complete: $complete, display_name: $display_name, icon_emoji: $icon_emoji, icon_url: $icon_url, name: $name, webhook: $webhook, webhook_message: $webhook_message}) {\n id\n name\n complete\n }\n}\n"]))),Qi=Object(be.a)(Wi||(Wi=Object(_.a)(["\nmutation newOperationMutation{\n createOperation{\n status\n error\n operation{\n name\n id\n admin {\n id\n username\n }\n }\n \n }\n}\n"])));function Ji(e){var t=Object(ee.a)(),a=s.a.useState(!1),n=Object(u.a)(a,2),i=n[0],r=n[1],c=Object(pe.a)(Ki,{update:function(e,t){var a=t.data;"success"===a.createOperator.status?O.b.success("Created operator"):O.b.error(a.createOperator.error)},onError:function(e){O.b.warning("Unable to create new operator"),console.log(e)}}),o=Object(u.a)(c,1)[0],l=Object(pe.a)(Vi,{onCompleted:function(t){e.onUpdateOperation(t.update_operation_by_pk),O.b.success("Successfully updated operation")},onError:function(e){O.b.error("Failed to update operation"),console.log("error updating operation",e)}}),d=Object(u.a)(l,1)[0],j=Object(pe.a)(Qi,{onCompleted:function(t){console.log(t),"success"===t.createOperation.status?(O.b.success("Successfully created operation!"),e.onNewOperation(t.createOperation.operation)):O.b.error(t.createOperation.error)},onError:function(e){console.log(e)}}),p=Object(u.a)(j,1)[0],m=function(e){var t=e.operation_id,a=e.name,n=e.channel,i=e.display_name,r=e.icon_emoji,c=e.icon_url,o=e.webhook,s=e.webhook_message,l=e.complete;d({variables:{operation_id:t,name:a,channel:n,display_name:i,icon_emoji:r,icon_url:c,webhook:o,webhook_message:s,complete:l}})};return Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsxs)(T.a,{elevation:5,style:{backgroundColor:t.pageHeader.main,color:t.pageHeaderText.main,marginBottom:"5px",marginTop:"10px",marginRight:"5px"},variant:"elevation",children:[Object(x.jsx)(L.a,{variant:"h3",style:{textAlign:"left",display:"inline-block",marginLeft:"20px"},children:"Operations"}),Object(x.jsx)(b.a,{size:"small",onClick:function(){p()},style:{marginRight:"20px",float:"right",marginTop:"10px"},startIcon:Object(x.jsx)(W.a,{}),color:"primary",variant:"contained",children:"New Operation"}),Object(x.jsx)(b.a,{size:"small",onClick:function(){r(!0)},style:{marginRight:"20px",float:"right",marginTop:"10px"},startIcon:Object(x.jsx)(W.a,{}),color:"primary",variant:"contained",children:"New Operator"}),i&&Object(x.jsx)(Y.a,{open:i,onClose:function(){r(!1)},innerDialog:Object(x.jsx)(Q,Object(v.a)({title:"New Operator",onAccept:function(e,t,a,n){a!==n?O.b.error("Passwords don't match"):0===n.length?O.b.error("Password must not be empty"):0===t.length?O.b.error("Username must not be empty"):(o({variables:{username:t,password:n}}),r(!1))},handleClose:function(){r(!1)}},e))})]}),Object(x.jsx)(S.a,{component:T.a,className:"mythicElement",children:Object(x.jsxs)(k.a,{size:"small",style:{tableLayout:"fixed",maxWidth:"calc(100vw)",overflow:"scroll"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{style:{width:"8rem"},children:"Configure"}),Object(x.jsx)(C.a,{style:{width:"8rem"},children:"Operators"}),Object(x.jsx)(C.a,{children:"Operation Name"}),Object(x.jsx)(C.a,{children:"Operation Admin"}),Object(x.jsx)(C.a,{style:{width:"10rem"},children:"Analysis"}),Object(x.jsx)(C.a,{style:{width:"12rem"},children:"Operation Status"})]})}),Object(x.jsx)(w.a,{children:e.operations.map((function(t){return Object(x.jsx)(Ui,Object(v.a)(Object(v.a)({onUpdateOperation:m},t),{},{operator:e.operator}),"operation"+t.id)}))})]})})]})}var Yi=Object(Se.a)((function(e){return{root:{margin:"auto"},paper:{overflow:"auto",backgroundColor:"rgb(76,80,86) !important"},button:{margin:e.spacing(.5,0)},divider:{backgroundColor:"rgb(100, 170, 204)",border:"2px solid rgba(100, 170, 204)"}}}));function Zi(e){var t=Yi(),a=Object(ee.a)(),n=s.a.useState([]),i=Object(u.a)(n,2),r=i[0],c=i[1],l=s.a.useState([]),d=Object(u.a)(l,2),j=d[0],p=d[1],m=s.a.useState([]),h=Object(u.a)(m,2),f=h[0],O=h[1],g=s.a.useState(""),v=Object(u.a)(g,2),_=v[0],k=v[1],w=s.a.useState(""),C=Object(u.a)(w,2),S=C[0],D=C[1],I=A(r,j),$=A(r,f);function P(t,a){return e.itemKey?t.filter((function(t){return void 0===a.find((function(a){return a[e.itemKey]===t[e.itemKey]}))})):t.filter((function(e){return-1===a.indexOf(e)}))}function A(t,a){return e.itemKey?t.filter((function(t){return void 0!==a.find((function(a){return a[e.itemKey]===t[e.itemKey]}))})):t.filter((function(e){return-1!==a.indexOf(e)}))}var E=function(t){return function(){var a=-1;a=e.itemKey?r.findIndex((function(a){return a[e.itemKey]===t[e.itemKey]})):r.indexOf(t);var n=Object(y.a)(r);-1===a?n.push(t):n.splice(a,1),c(n)}};Object(o.useEffect)((function(){var t=e.left.reduce((function(t,a){return void 0===e.itemKey?e.right.includes(a)?Object(y.a)(t):[].concat(Object(y.a)(t),[a]):e.right.find((function(t){return t[e.itemKey]===a[e.itemKey]}))?Object(y.a)(t):[].concat(Object(y.a)(t),[a])}),[]);p(t),O(e.right),k(e.leftTitle),D(e.rightTitle)}),[e.left,e.right,e.leftTitle,e.rightTitle,e.itemKey]),Object(o.useEffect)((function(){e.onChange({selected:f,ptype:e.ptype})}),[f]);var F=function(a,n){return Object(x.jsx)(T.a,{style:{width:"100%"},children:Object(x.jsxs)(Ie.a,{children:[Object(x.jsx)(_a.a,{className:t.paper,title:a}),Object(x.jsx)(ka.a,{classes:{root:t.divider}}),Object(x.jsx)($e.a,{style:{height:"calc(30vh)",overflow:"auto"},className:t.paper,children:Object(x.jsx)(Oa.a,{dense:!0,component:"div",role:"list",style:{padding:0},className:t.paper,children:n.map((function(t){var a=void 0===e.itemKey?t:t[e.itemKey],n="transfer-list-item-".concat(a,"-label");return Object(x.jsxs)(xa.a,{style:{padding:0},role:"listitem",button:!0,onClick:E(t),children:[Object(x.jsx)(ga.a,{children:Object(x.jsx)(va.a,{checked:void 0===e.itemKey?-1!==r.indexOf(a):-1!==r.findIndex((function(t){return t[e.itemKey]===a})),tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":n}})}),Object(x.jsx)(ya.a,{id:n,primary:a})]},a)}))})})]})})};return Object(x.jsxs)(ft.a,{container:!0,spacing:2,justify:"center",alignItems:"center",className:t.root,children:[Object(x.jsx)(ft.a,{item:!0,xs:12,children:Object(x.jsx)(T.a,{elevation:5,style:{backgroundColor:a.pageHeader.main,color:a.pageHeaderText.main,marginBottom:"5px",marginTop:"10px",marginRight:"5px"},variant:"elevation",children:Object(x.jsx)(L.a,{variant:"h3",style:{textAlign:"left",display:"inline-block",marginLeft:"20px"},children:e.ptype})})}),Object(x.jsx)(ft.a,{item:!0,xs:5,children:F(_,j)}),Object(x.jsx)(ft.a,{item:!0,children:Object(x.jsxs)(ft.a,{container:!0,direction:"column",alignItems:"center",children:[Object(x.jsx)(b.a,{variant:"outlined",size:"small",className:t.button,onClick:function(){O(f.concat(j)),p([])},disabled:0===j.length,"aria-label":"move all right",children:"\u226b"}),Object(x.jsx)(b.a,{variant:"outlined",size:"small",className:t.button,onClick:function(){O(f.concat(I)),p(P(j,I)),c(P(r,I))},disabled:0===I.length,"aria-label":"move selected right",children:">"}),Object(x.jsx)(b.a,{variant:"outlined",size:"small",className:t.button,onClick:function(){p(j.concat($)),O(P(f,$)),c(P(r,$))},disabled:0===$.length,"aria-label":"move selected left",children:"<"}),Object(x.jsx)(b.a,{variant:"outlined",size:"small",className:t.button,onClick:function(){p(j.concat(f)),O([])},disabled:0===f.length,"aria-label":"move all left",children:"\u226a"})]})}),Object(x.jsx)(ft.a,{item:!0,xs:5,children:F(S,f)})]})}var Xi=s.a.memo(Zi),er=Object(be.a)(Gi||(Gi=Object(_.a)(["\n query getPayloadTypesAndCommands{\n payloadtype(where: {deleted: {_eq: false}}, order_by: {ptype: asc}) {\n commands(order_by: {cmd: asc}) {\n cmd\n id\n }\n id\n ptype\n }\n }\n"])));function tr(e){var t=e.dialogTitle,a=e.onSubmit,n=e.blockListName,i=e.onClose,r=e.currentSelected,c=e.editable,o=s.a.useState([]),l=Object(u.a)(o,2),d=l[0],p=l[1],m=s.a.useState({}),h=Object(u.a)(m,2),f=h[0],g=h[1],_=s.a.useState(""),k=Object(u.a)(_,2),w=k[0],C=k[1];Object(je.a)(er,{fetchPolicy:"network-only",onCompleted:function(e){n&&C(n);var t=e.payloadtype.map((function(e){var t=[];return void 0!==r[e.ptype]&&(t=Object(y.a)(r[e.ptype])),Object(v.a)(Object(v.a)({},e),{},{selected:t})}));p(t),g(Object(v.a)({},r))},onError:function(e){}});var S=s.a.useCallback((function(e){var t=e.selected,a=e.ptype;g(Object(v.a)(Object(v.a)({},f),{},Object(jt.a)({},a,t)))}),[f]);return Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(V.a,{id:"form-dialog-title",children:t}),Object(x.jsxs)(G.a,{dividers:!0,children:[Object(x.jsx)(j.a,{disabled:!c,onChange:function(e,t,a){C(t)},value:w,name:"Block List Name",autoFocus:!0,requiredValue:!0}),d.map((function(e){return Object(x.jsx)(Xi,{leftTitle:"Not Blocked",onChange:S,rightTitle:"Blocked Commands",itemKey:"cmd",right:e.selected,left:e.commands,ptype:e.ptype},e.ptype)}))]}),Object(x.jsxs)(U.a,{children:[Object(x.jsx)(b.a,{onClick:i,variant:"contained",color:"primary",children:"Close"}),Object(x.jsx)(b.a,{onClick:function(){if(""!==w.trim()){for(var e=[],t=[],n=0,c=Object.values(f);n-1?e.splice(i,1):t.push({command_id:a[n].id,name:w.trim()})},i=0;i0&&p({variables:{entries:t}});var n=a.map((function(e){return e.command_id}));n.length>0&&g({variables:{entries:n,name:a[0].name}})},$=function(e){var t=e.name;h({variables:{name:t}})};return Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsxs)(T.a,{elevation:5,style:{backgroundColor:t.pageHeader.main,color:t.pageHeaderText.main,marginBottom:"5px",marginTop:"10px",marginRight:"5px"},variant:"elevation",children:[Object(x.jsx)(L.a,{variant:"h3",style:{textAlign:"left",display:"inline-block",marginLeft:"20px"},children:"Command Block Lists"}),Object(x.jsx)(b.a,{size:"small",onClick:function(){r(!0)},style:{marginRight:"20px",float:"right",marginTop:"10px"},startIcon:Object(x.jsx)(W.a,{}),color:"primary",variant:"contained",children:"New Block List"}),i&&Object(x.jsx)(Y.a,{open:i,fullWidth:!0,maxWidth:"lg",onClose:function(){r(!1)},innerDialog:Object(x.jsx)(tr,{editable:!0,currentSelected:[],onSubmit:function(e){var t=e.toAdd;p({variables:{entries:t}})},dialogTitle:"Create New Block List",onClose:function(){return r(!1)}})})]}),Object(x.jsx)(S.a,{component:T.a,className:"mythicElement",children:Object(x.jsxs)(k.a,{size:"small",style:{tableLayout:"fixed",maxWidth:"calc(100vw)",overflow:"scroll"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{style:{width:"5rem"},children:"Delete"}),Object(x.jsx)(C.a,{style:{width:"7rem"},children:"Modify"}),Object(x.jsx)(C.a,{style:{width:"15rem"},children:"Name"}),Object(x.jsx)(C.a,{children:"Blocked Commands"})]})}),Object(x.jsx)(w.a,{children:l.map((function(e){return Object(x.jsx)(jr,Object(v.a)(Object(v.a)({},e),{},{onAcceptDelete:$,onSubmitEdits:_}),e.name)}))})]})})]})}function jr(e){var t=Object(ee.a)(),a=s.a.useState(!1),n=Object(u.a)(a,2),i=n[0],r=n[1],c=s.a.useState([]),o=Object(u.a)(c,2),l=o[0],d=o[1],j=s.a.useState(!1),p=Object(u.a)(j,2),m=p[0],h=p[1],f=s.a.useState({}),O=Object(u.a)(f,2),g=O[0],y=O[1];s.a.useEffect((function(){for(var t=[],a={},n=0,i=Object.entries(e.entries);n0&&p(t.payloadtype[0].id),void 0!==e.command_id){O(e.command_id);for(var a=0;a0&&t.payloadtype[0].commands.length>0&&(S(t.payloadtype[0].commands),O(t.payloadtype[0].commands[0].id));void 0!==e.author&&$(e.author)},onError:function(e){}}),Object(o.useEffect)((function(){void 0!==e.script&&r(atob(e.script))}),[e.script]);var E=function(){e.onSubmitEdit({script:btoa(i),command_id:f,payload_type_id:d,author:T}),e.onClose()};return Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(V.a,{children:e.title?e.title:"Edit BrowserScript Code"}),Object(x.jsxs)(G.a,{dividers:!0,style:{height:"calc(80vh)"},children:[Object(x.jsxs)(mt.a,{style:{width:"50%"},children:[Object(x.jsx)($t.a,{ref:P,children:"Payload Type"}),Object(x.jsx)(ht.a,{labelId:"demo-dialog-select-label",id:"demo-dialog-select",value:d,onChange:function(e){p(e.target.value);var t=v.filter((function(t){return t.id===e.target.value}));S(t[0].commands),O(t[0].commands[0].id)},input:Object(x.jsx)(Ot.a,{style:{width:"100%"}}),children:v.map((function(e){return Object(x.jsx)(tt.a,{value:e.id,children:e.ptype},"payloadtype"+e.id)}))})]}),Object(x.jsxs)(mt.a,{style:{width:"50%",paddingBottom:"10px"},children:[Object(x.jsx)($t.a,{ref:A,children:"Command"}),Object(x.jsx)(ht.a,{labelId:"demo-dialog-select-label",id:"demo-dialog-select",value:f,onChange:function(e){O(e.target.value)},input:Object(x.jsx)(Ot.a,{style:{width:"100%"}}),children:C.map((function(e){return Object(x.jsx)(tt.a,{value:e.id,children:e.cmd},"command"+e.id)}))})]}),Object(x.jsx)(j.a,{value:T,onChange:function(e,t,a){$(t)},name:"Author",fullWidth:!0}),Object(x.jsx)(ot.a,{mode:"javascript",theme:"dark"===t.palette.type?"monokai":"github",width:"100%",height:"100%",value:i,focus:!0,onChange:function(e){r(e)},setOptions:{}})]}),Object(x.jsxs)(U.a,{children:[Object(x.jsx)(b.a,{onClick:e.onClose,variant:"contained",style:{backgroundColor:t.palette.primary.main},children:"Close"}),e.new?Object(x.jsx)(b.a,{onClick:E,variant:"contained",style:{backgroundColor:t.palette.warning.main},children:"Create"}):Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(b.a,{onClick:function(){e.onRevert(),e.onClose()},variant:"contained",style:{backgroundColor:t.palette.success.main},children:"Revert"}),Object(x.jsx)(b.a,{onClick:E,variant:"contained",style:{backgroundColor:t.palette.warning.main},children:"Save"})]})]})]})}function gr(e){var t=Object(ee.a)(),a=s.a.useState(!1),n=Object(u.a)(a,2),i=n[0],r=n[1],c=s.a.useState(!1),l=Object(u.a)(c,2),d=l[0],j=l[1],p=s.a.useState(!1),m=Object(u.a)(p,2),h=m[0],f=m[1];Object(o.useEffect)((function(){var t=!1;e.browserscriptoperations.forEach((function(a){a.operation_id===e.operation_id&&(t=!0)})),j(t)}),[e.browserscriptoperations,e.operation_id]);return Object(x.jsx)(s.a.Fragment,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsxs)(C.a,{children:[Object(x.jsx)(E.a,{size:"small",onClick:function(){f(!0)},style:{color:t.palette.error.main},variant:"contained",children:Object(x.jsx)(M.a,{})}),Object(x.jsx)(fa.a,{onClose:function(){f(!1)},onSubmit:function(){e.onDelete({browserscript_id:e.id})},open:h})]}),Object(x.jsx)(C.a,{children:Object(x.jsx)($.a,{checked:e.active,onChange:function(){e.onToggleActive({browserscript_id:e.id,active:!e.active})},color:"primary",inputProps:{"aria-label":"checkbox",track:"white"},name:"Active"})}),Object(x.jsx)(C.a,{children:e.payloadtype.ptype}),Object(x.jsx)(C.a,{children:e.command.cmd}),Object(x.jsx)(C.a,{children:e.author}),Object(x.jsxs)(C.a,{children:[e.user_modified?"User Modified":""," "]}),Object(x.jsx)(C.a,{children:Object(x.jsx)(b.a,{size:"small",variant:"contained",onClick:function(){r(!0)},color:"primary",children:" Edit "})}),Object(x.jsx)(C.a,{children:d?Object(x.jsx)(b.a,{size:"small",variant:"contained",onClick:function(){e.onSubmitRemoveFromOperation({browserscript_id:e.id})},color:"secondary",children:"Remove"}):Object(x.jsx)(b.a,{size:"small",variant:"contained",onClick:function(){e.onSubmitApplyToOperation({browserscript_id:e.id})},color:"primary",children:"Apply"})}),i?Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"xl",open:i,onClose:function(){r(!1)},innerDialog:Object(x.jsx)(xr,{onClose:function(){r(!1)},payload_type_id:e.payloadtype.id,command_id:e.command.id,script:e.script,onSubmitEdit:function(t){var a=t.script,n=t.command_id,i=t.payload_type_id,r=t.author;e.onSubmitEdit({browserscript_id:e.id,script:a,command_id:n,payload_type_id:i,author:r})},onRevert:function(){e.onRevert({browserscript_id:e.id,script:e.container_version})},author:e.author})}):null]},"payload"+e.id)})}function yr(e){var t=Object(ee.a)(),a=s.a.useState(!1),n=Object(u.a)(a,2),i=n[0],r=n[1];return Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsxs)(T.a,{elevation:5,style:{backgroundColor:t.pageHeader.main,color:t.pageHeaderText.main,marginBottom:"5px",marginTop:"10px",marginRight:"5px"},variant:"elevation",children:[Object(x.jsx)(L.a,{variant:"h3",style:{textAlign:"left",display:"inline-block",marginLeft:"20px"},children:"Browser Scripts"}),Object(x.jsx)(b.a,{size:"small",onClick:function(){return r(!0)},style:{float:"right",marginTop:"10px",marginRight:"30px"},startIcon:Object(x.jsx)(W.a,{}),color:"primary",variant:"contained",children:"New Script"}),i?Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"md",open:i,onClose:function(){r(!1)},innerDialog:Object(x.jsx)(xr,{onClose:function(){r(!1)},title:"Create New Browser Script",new:!0,onSubmitEdit:e.onSubmitNew})}):null]}),Object(x.jsx)(S.a,{component:T.a,className:"mythicElement",style:{maxHeight:"calc(50vh)"},children:Object(x.jsxs)(k.a,{size:"small",style:{tableLayout:"fixed",maxWidth:"100%",overflow:"scroll"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{style:{width:"5rem"},children:"Delete"}),Object(x.jsx)(C.a,{style:{width:"5rem"},children:"Active"}),Object(x.jsx)(C.a,{children:"Payload"}),Object(x.jsx)(C.a,{children:"Command"}),Object(x.jsx)(C.a,{children:" Author"}),Object(x.jsx)(C.a,{style:{width:"15em"},children:"User Modified?"}),Object(x.jsx)(C.a,{style:{width:"8em"},children:" Edit"}),Object(x.jsx)(C.a,{style:{width:"15rem"},children:"Apply to Operation"})]})}),Object(x.jsx)(w.a,{children:e.browserscript.map((function(t){return Object(x.jsx)(gr,Object(v.a)({onSubmitApplyToOperation:e.onSubmitApplyToOperation,onSubmitRemoveFromOperation:e.onSubmitRemoveFromOperation,operation_id:e.operation_id,onToggleActive:e.onToggleActive,onSubmitEdit:e.onSubmitEdit,onRevert:e.onRevert,onToggleOperation:e.onToggleOperation,onDelete:e.onDelete},t),"script"+t.id)}))})]})})]})}var vr,_r,kr,wr,Cr,Sr,Dr,Ir=a(166);function Tr(e){var t=s.a.useState(!1),a=Object(u.a)(t,2),n=a[0],i=a[1],r=s.a.useState(""),c=Object(u.a)(r,2),l=c[0],d=c[1];return Object(o.useEffect)((function(){d(null===e.browserscript.command?"Support Script: "+e.browserscript.name:e.browserscript.command.cmd)}),[e.browserscript]),Object(x.jsx)(s.a.Fragment,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{children:e.browserscript.payloadtype.ptype}),Object(x.jsx)(C.a,{children:l}),Object(x.jsxs)(C.a,{children:[e.browserscript.user_modified?"User Modified":""," "]}),Object(x.jsx)(C.a,{children:e.operation.admin.username}),Object(x.jsx)(C.a,{children:Object(x.jsx)(b.a,{size:"small",variant:"contained",style:{color:Ir.a.palette.info.main},onClick:function(){i(!0)},children:" View "})}),Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"md",open:n,onClose:function(){i(!1)},innerDialog:Object(x.jsx)(ot.a,{mode:"javascript",theme:"github",width:"100%",value:atob(e.browserscript.script),focus:!0,readOnly:!0,onChange:function(){},setOptions:{}})})]},"opscript"+e.browserscript.id)})}function $r(e){var t=Object(ee.a)();return e.browserscriptoperation.length>0&&Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(T.a,{elevation:5,style:{backgroundColor:t.pageHeader.main,color:t.pageHeaderText.main,marginBottom:"5px",marginTop:"10px",marginRight:"5px"},variant:"elevation",children:Object(x.jsx)(L.a,{variant:"h3",style:{textAlign:"left",display:"inline-block",marginLeft:"20px"},children:"Operation Browser Scripts"})}),Object(x.jsx)(S.a,{component:T.a,className:"mythicElement",style:{maxHeight:"calc(30vh)"},children:Object(x.jsxs)(k.a,{size:"small",style:{tableLayout:"fixed",maxWidth:"100%",overflow:"scroll"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{style:{width:"10em"},children:"Payload"}),Object(x.jsx)(C.a,{style:{},children:"Command"}),Object(x.jsx)(C.a,{style:{width:"5em"},children:"User Modified?"}),Object(x.jsx)(C.a,{style:{},children:"Operator"}),Object(x.jsx)(C.a,{style:{width:"5em"},children:"View Script"})]})}),Object(x.jsx)(w.a,{children:e.browserscriptoperation.map((function(e){return Object(x.jsx)(Tr,Object(v.a)({},e),"opscriptrow"+e.browserscript.id)}))})]})})]})}var Pr,Ar,Er=Object(be.a)(vr||(vr=Object(_.a)(["\nsubscription SubscribeBrowserScripts($operator_id: Int!) {\n browserscript(where: {operator_id: {_eq: $operator_id}, for_new_ui: {_eq: true}}) {\n active\n author\n user_modified\n script\n payloadtype {\n ptype\n id\n }\n name\n id\n creation_time\n container_version_author\n container_version\n command {\n cmd\n id\n }\n browserscriptoperations {\n operation_id\n id\n }\n }\n}\n "]))),Lr=Object(be.a)(_r||(_r=Object(_.a)(["\nsubscription SubscribeOperationBrowserScripts($operation_id: Int!) {\n browserscriptoperation(where: {operation_id: {_eq: $operation_id}, browserscript: {for_new_ui: {_eq: true}}}){\n browserscript{\n active\n author\n user_modified\n script\n payloadtype {\n ptype\n id\n }\n name\n id\n creation_time\n container_version_author\n container_version\n command {\n cmd\n id\n }\n }\n operation{\n admin{\n username\n }\n }\n }\n}\n "]))),Fr=Object(be.a)(kr||(kr=Object(_.a)(["\nmutation updateBrowserScriptActive($browserscript_id: Int!, $active: Boolean!) {\n update_browserscript_by_pk(pk_columns: {id: $browserscript_id}, _set: {active: $active}) {\n id\n }\n}\n"]))),Nr=Object(be.a)(wr||(wr=Object(_.a)(["\nmutation updateBrowserScriptScript($browserscript_id: Int!, $script: String!, $command_id: Int!, $payload_type_id: Int!, $author: String!) {\n update_browserscript_by_pk(pk_columns: {id: $browserscript_id}, _set: {script: $script, author: $author, user_modified: true, command_id: $command_id, payload_type_id: $payload_type_id}) {\n id\n }\n}\n"]))),qr=Object(be.a)(Cr||(Cr=Object(_.a)(["\nmutation updateBrowserScriptRevert($browserscript_id: Int!, $script: String!) {\n update_browserscript_by_pk(pk_columns: {id: $browserscript_id}, _set: {script: $script, user_modified: false}) {\n id\n }\n}\n"]))),Rr=Object(be.a)(Sr||(Sr=Object(_.a)(["\nmutation insertNewBrowserScript($script: String!, $author: String!, $payload_type_id: Int!, $command_id: Int!){\n insert_browserscript_one(object: {script: $script, author: $author, payload_type_id: $payload_type_id, command_id: $command_id}){\n id\n }\n}\n"]))),Br=Object(be.a)(Dr||(Dr=Object(_.a)(["\nmutation deleteBrowserScriptMutation($browserscript_id: Int!){\n delete_browserscript_by_pk(id: $browserscript_id){\n id\n }\n}\n"])));function Mr(e){var t=Object(f.a)(h.b),a=s.a.useState({browserscript:[]}),n=Object(u.a)(a,2),i=n[0],r=n[1],c=s.a.useState({browserscriptoperation:[]}),o=Object(u.a)(c,2),l=o[0],d=o[1];Object(Me.a)(Er,{variables:{operator_id:t.user.id},fetchPolicy:"no-cache",shouldResubscribe:!0,onSubscriptionData:function(e){var t=e.subscriptionData;console.log(t),r(t.data)}}),Object(Me.a)(Lr,{variables:{operation_id:t.user.current_operation_id},fetchPolicy:"no-cache",shouldResubscribe:!0,onSubscriptionData:function(e){var t=e.subscriptionData;d(t.data)}});var b=Object(pe.a)(Fr,{onCompleted:function(e){O.b.success("Successfully Updated!",{autoHideDuration:1e3})},onError:function(e){console.error(e)}}),j=Object(u.a)(b,1)[0],p=Object(pe.a)(Nr,{onCompleted:function(e){O.b.success("Successfully Updated!",{autoHideDuration:1e3})},onError:function(e){console.error(e)}}),m=Object(u.a)(p,1)[0],g=Object(pe.a)(qr,{onCompleted:function(e){O.b.success("Successfully Updated!",{autoHideDuration:1e3})},onError:function(e){console.error(e)}}),y=Object(u.a)(g,1)[0],_=Object(pe.a)(Rr,{onCompleted:function(e){O.b.success("Successfully created new browser script!")},onError:function(e){O.b.error("Failed to create new script: "+e)}}),k=Object(u.a)(_,1)[0],w=Object(pe.a)(Br,{onCompleted:function(e){O.b.success("Successfully deleted browser script")},onError:function(e){O.b.error("Failed to delete browser script: "+e)}}),C=Object(u.a)(w,1)[0];return Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(yr,Object(v.a)(Object(v.a)({},i),{},{operation_id:t.user.current_operation_id,onToggleActive:function(e){var t=e.browserscript_id,a=e.active;j({variables:{browserscript_id:t,active:a}})},onSubmitEdit:function(e){var t=e.browserscript_id,a=e.script,n=e.command_id,i=e.payload_type_id,r=e.author;m({variables:{browserscript_id:t,script:a,command_id:n,payload_type_id:i,author:r}})},onRevert:function(e){var t=e.browserscript_id,a=e.script;y({variables:{browserscript_id:t,script:a}})},onSubmitNew:function(e){var t=e.script,a=e.author,n=e.payload_type_id,i=e.command_id;k({variables:{author:a,script:t,payload_type_id:n,command_id:i}})},onDelete:function(e){var t=e.browserscript_id;C({variables:{browserscript_id:t}})},onSubmitApplyToOperation:function(e){e.browserscript_id;O.b.warning("Not Implemented Yet!",{autoHideDuration:1e3})},onSubmitRemoveFromOperation:function(e){e.browserscript_id;O.b.warning("Not Implemented Yet!",{autoHideDuration:1e3})}})),Object(x.jsx)($r,Object(v.a)({},l))]})}var zr,Wr,Hr=Object(be.a)(Pr||(Pr=Object(_.a)(["\nmutation updateDescription ($payload_id: Int!, $description: String) {\n update_payload_by_pk(pk_columns: {id: $payload_id}, _set: {tag: $description}) {\n tag\n id\n }\n}\n"]))),Ur=Object(be.a)(Ar||(Ar=Object(_.a)(["\nquery getDescriptionQuery ($payload_id: Int!) {\n payload_by_pk(id: $payload_id) {\n tag\n id\n }\n}\n"])));function Gr(e){var t=Object(o.useState)(""),a=Object(u.a)(t,2),n=a[0],i=a[1],r=Object(je.a)(Ur,{variables:{payload_id:e.payload_id},onCompleted:function(e){i(e.payload_by_pk.tag)},fetchPolicy:"network-only"}),c=r.loading,l=r.error,d=Object(pe.a)(Hr,{onCompleted:function(e){O.b.success("Updated Description")}}),p=Object(u.a)(d,1)[0];if(c)return Object(x.jsx)(Ae.a,{style:{marginTop:"10px"}});if(l)return console.error(l),Object(x.jsx)("div",{children:"Error!"});var m=function(){p({variables:{payload_id:e.payload_id,description:n}}),e.onClose()};return Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(V.a,{id:"form-dialog-title",children:"Edit Payload Description"}),Object(x.jsx)(G.a,{dividers:!0,children:Object(x.jsx)(j.a,{autoFocus:!0,onChange:function(e,t,a){i(t)},value:n,onEnter:m})}),Object(x.jsxs)(U.a,{children:[Object(x.jsx)(b.a,{variant:"contained",onClick:e.onClose,color:"primary",children:"Close"}),Object(x.jsx)(b.a,{variant:"contained",onClick:m,color:"secondary",children:"Submit"})]})]})}var Kr,Vr=Object(be.a)(zr||(zr=Object(_.a)(["\nmutation updateDescription ($file_id: Int!, $filename: bytea!) {\n update_filemeta_by_pk(pk_columns: {id: $file_id}, _set: {filename: $filename}) {\n filename_text\n id\n }\n}\n"]))),Qr=Object(be.a)(Wr||(Wr=Object(_.a)(["\nquery getFilenameQuery ($payload_id: Int!) {\n payload_by_pk(id: $payload_id) {\n filemetum {\n filename_text\n id\n }\n id\n }\n}\n"])));function Jr(e){var t=Object(o.useState)(""),a=Object(u.a)(t,2),n=a[0],i=a[1],r=Object(o.useState)(),c=Object(u.a)(r,2),l=c[0],d=c[1],p=Object(je.a)(Qr,{variables:{payload_id:e.payload_id},onCompleted:function(e){i(e.payload_by_pk.filemetum.filename_text),d(e.payload_by_pk.filemetum.id)},fetchPolicy:"network-only"}),m=p.loading,h=p.error,f=Object(pe.a)(Vr,{onCompleted:function(e){O.b.success("Updated filename")}}),g=Object(u.a)(f,1)[0];if(m)return Object(x.jsx)(Ae.a,{style:{marginTop:"10px"}});if(h)return console.error(h),Object(x.jsx)("div",{children:"Error!"});var y=function(){g({variables:{file_id:l,filename:n}}),e.onClose()};return Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(V.a,{id:"form-dialog-title",children:"Edit Payload Filename"}),Object(x.jsx)(G.a,{dividers:!0,children:Object(x.jsx)(j.a,{autoFocus:!0,onChange:function(e,t,a){i(t)},value:n,onEnter:y})}),Object(x.jsxs)(U.a,{children:[Object(x.jsx)(b.a,{variant:"contained",onClick:e.onClose,color:"primary",children:"Close"}),Object(x.jsx)(b.a,{variant:"contained",onClick:y,color:"secondary",children:"Submit"})]})]})}var Yr=Object(be.a)(Kr||(Kr=Object(_.a)(["\nquery getDescriptionQuery ($payload_id: Int!) {\n payload_by_pk(id: $payload_id) {\n build_message\n build_stderr\n build_stdout\n id\n }\n}\n"])));function Zr(e){var t=Object(o.useState)({}),a=Object(u.a)(t,2),n=a[0],i=a[1],r=Object(o.useState)(!1),c=Object(u.a)(r,2),l=c[0],d=c[1],j=Object(je.a)(Yr,{variables:{payload_id:e.payload_id},onCompleted:function(t){d(e.viewError);var a="Message:\n"+t.payload_by_pk.build_message;a+="\nSTDOUT:\n"+t.payload_by_pk.build_stdout,i({message:a,error:"STDERR:\n"+t.payload_by_pk.build_stderr})},fetchPolicy:"network-only"}),p=j.loading,m=j.error;return Object(o.useEffect)((function(){d(e.viewError)}),[e.viewError]),p?Object(x.jsx)(Ae.a,{style:{marginTop:"10px"}}):m?(console.error(m),Object(x.jsx)("div",{children:"Error!"})):Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(V.a,{id:"form-dialog-title",children:"Payload Build Messages"}),Object(x.jsx)(G.a,{dividers:!0,children:Object(x.jsx)("pre",{style:{},children:l?n.error:n.message})}),Object(x.jsx)(U.a,{children:Object(x.jsx)(b.a,{variant:"contained",onClick:e.onClose,color:"primary",children:"Close"})})]})}var Xr=a(236),ec=a.n(Xr),tc=a(475),ac=a.n(tc);function nc(e){var t=Object(ee.a)();return Object(x.jsx)(s.a.Fragment,{children:e.payloadc2profiles.map((function(a){return Object(x.jsxs)(L.a,{style:{display:"flex"},children:[a.c2profile.is_p2p?a.c2profile.container_running?Object(x.jsx)(kt.a,{title:"C2 Container online",children:Object(x.jsx)(Ua.a,{style:{color:t.palette.success.main}})}):Object(x.jsx)(kt.a,{title:"C2 Container offline",children:Object(x.jsx)(ec.a,{style:{color:t.palette.error.main}})}):a.c2profile.running?Object(x.jsx)(kt.a,{title:"C2 Internal Server Running",children:Object(x.jsx)(Ua.a,{style:{color:t.palette.success.main}})}):a.c2profile.container_running?Object(x.jsx)(kt.a,{title:"C2 Internal Server Not Running, but Container Online",children:Object(x.jsx)(ac.a,{style:{color:t.palette.warning.main}})}):Object(x.jsx)(kt.a,{title:"C2 Container offline",children:Object(x.jsx)(ec.a,{style:{color:t.palette.error.main}})})," - ",a.c2profile.name]},a.c2profile.name+e.uuid)}))})}var ic,rc=a(106),cc=a.n(rc),oc=a(476),sc=a.n(oc);function lc(e){var t=Object(ee.a)();return Object(x.jsx)(s.a.Fragment,{children:"success"===e.build_phase?Object(x.jsx)(kt.a,{title:"Download payload",children:Object(x.jsx)(E.a,{variant:"contained",target:"_blank",color:"primary",href:window.location.origin+"/direct/download/"+e.filemetum.agent_file_id,download:!0,children:Object(x.jsx)(cc.a,{style:{color:t.palette.success.main}})})}):"building"===e.build_phase?Object(x.jsx)(kt.a,{title:"Payload still building",children:Object(x.jsx)(E.a,{variant:"contained",children:Object(x.jsx)(oa.a,{size:20,thickness:4,style:{color:t.palette.info.main}})})}):Object(x.jsx)(kt.a,{title:"Failed to build payload",children:Object(x.jsx)(E.a,{variant:"contained",onClick:function(){return O.b.warning("Payload failed to build, cannot download")},children:Object(x.jsx)(sc.a,{style:{color:t.palette.error.main}})})})})}var dc,uc=Object(be.a)(ic||(ic=Object(_.a)(["\nquery checkPayloadConfigurationQuery($uuid: String!) {\n config_check(uuid: $uuid) {\n status\n error\n output\n }\n}\n"])));function bc(e){var t=Object(o.useState)(""),a=Object(u.a)(t,2),n=a[0],i=a[1],r=Object(je.a)(uc,{variables:{uuid:e.uuid},onCompleted:function(e){"success"===e.config_check.status?i(e.config_check.output):(O.b.warning(e.config_check.error),i("Error!\n"+e.config_check.error))},fetchPolicy:"network-only"}),c=r.loading,l=r.error;return c?Object(x.jsx)(Ae.a,{style:{marginTop:"10px"}}):l?(console.error(l),Object(x.jsx)("div",{children:"Error!"})):Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(V.a,{id:"form-dialog-title",children:"Payload Config Check"}),Object(x.jsx)(G.a,{dividers:!0,children:Object(x.jsx)(j.a,{multiline:!0,onChange:function(){},value:n})}),Object(x.jsx)(U.a,{children:Object(x.jsx)(b.a,{variant:"contained",onClick:e.onClose,color:"primary",children:"Close"})})]})}var jc=Object(be.a)(dc||(dc=Object(_.a)(["\nquery generateRedirectRulesMutation($uuid: String!) {\n redirect_rules(uuid: $uuid) {\n status\n error\n output\n }\n}\n"])));function pc(e){var t=Object(o.useState)(""),a=Object(u.a)(t,2),n=a[0],i=a[1],r=Object(je.a)(jc,{variables:{uuid:e.uuid},onCompleted:function(e){"success"===e.redirect_rules.status?i(e.redirect_rules.output):(O.b.warning(e.redirect_rules.error),i("Error!\n"+e.redirect_rules.error))},fetchPolicy:"network-only"}),c=r.loading,l=r.error;return c?Object(x.jsx)(Ae.a,{style:{marginTop:"10px"}}):l?(console.error(l),Object(x.jsx)("div",{children:"Error!"})):Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(V.a,{id:"form-dialog-title",children:"Payload Redirect Rules Check"}),Object(x.jsx)(G.a,{dividers:!0,children:Object(x.jsx)(j.a,{multiline:!0,onChange:function(){},value:n})}),Object(x.jsx)(U.a,{children:Object(x.jsx)(b.a,{variant:"contained",onClick:e.onClose,color:"primary",children:"Close"})})]})}var mc,hc,fc,Oc=a(167),xc=a.n(Oc),gc=Object(be.a)(mc||(mc=Object(_.a)(["\nmutation triggerRebuildMutation($uuid: String!) {\n rebuild_payload(uuid: $uuid) {\n status\n error\n uuid\n }\n}\n"]))),yc=Object(be.a)(hc||(hc=Object(_.a)(["\nquery exportPayloadConfigQuery($uuid: String!) {\n export_payload_config(uuid: $uuid) {\n status\n error \n config \n }\n}\n"])));function vc(e){var t=s.a.useState(!0),a=Object(u.a)(t,2),n=a[0],i=a[1],r=s.a.useState(!1),c=Object(u.a)(r,2),l=c[0],d=c[1],j=s.a.useState(!1),p=Object(u.a)(j,2),m=p[0],g=p[1],y=s.a.useState(!1),_=Object(u.a)(y,2),k=_[0],w=_[1],S=s.a.useState(!1),D=Object(u.a)(S,2),$=D[0],P=D[1],A=s.a.useState(!1),L=Object(u.a)(A,2),F=L[0],N=L[1],q=s.a.useState(!1),R=Object(u.a)(q,2),B=R[0],z=R[1],W=s.a.useState(!1),H=Object(u.a)(W,2),U=H[0],G=H[1],K=s.a.useState(!1),V=Object(u.a)(K,2),Q=V[0],J=V[1],X=Object(o.useRef)(null),te=Object(f.a)(h.b),ae=Object(ee.a)(),ne=Object(pe.a)(gc,{onCompleted:function(e){console.log(e),O.b.success("Successfully triggered rebuild")},onError:function(e){O.b.error("Failed to trigger rebuild: "+e)}}),ie=Object(u.a)(ne,1)[0],re=Object(pt.a)(yc,{fetchPolicy:"no-cache",onCompleted:function(t){if("success"===t.export_payload_config.status){var a=new Blob([t.export_payload_config.config],{type:"text/plain"}),n=document.getElementById("download_config");if(null!==n)n.href=URL.createObjectURL(a),n.download=e.filemetum.filename_text+".json",n.click();else{var i=document.createElement("a");i.id="download_config",i.href=URL.createObjectURL(a),i.download=e.filemetum.filename_text+".json",document.body.appendChild(i),i.click()}}else O.b.error("Failed to export configuration: "+t.export_payload_config.error)},onError:function(e){O.b.error("Failed to export configuration: "+e)}}),ce=Object(u.a)(re,1)[0],oe=[{name:"Rename File",click:function(){P(!0)}},{name:"Edit Description",click:function(){w(!0)}},{name:e.callback_alert?"Stop Alerting to New Callbacks":"Start Alerting to New Callbacks",click:function(){!function(){var t=e.id,a=e.callback_alert;e.onAlertChanged(t,!a)}()}},{name:"View Build Message/Stdout",click:function(){i(!1),N(!0)}},{name:"View Build Errors",click:function(){i(!0),N(!0)}},{name:"Trigger New Build",click:function(){ie({variables:{uuid:e.uuid}})}},{name:"Export Payload Config",click:function(){ce({variables:{uuid:e.uuid}})}},{name:"Generate Redirect Rules",click:function(){J(!0)}},{name:"Check Agent C2 Configuration",click:function(){G(!0)}}],se=function(e){X.current&&X.current.contains(e.target)||d(!1)};return s.a.useMemo((function(){return!e.deleted&&!e.auto_generated||(e.deleted&&e.showDeleted?!e.auto_generated||!(!e.auto_generated||!e.showAutoGenerated):!(!e.auto_generated||!e.showAutoGenerated)&&(!e.deleted||!(!e.deleted||!e.showDeleted)))}),[e.deleted,e.showDeleted,e.auto_generated,e.showAutoGenerated])?Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:e.deleted?Object(x.jsx)(kt.a,{title:"Mark payload as not deleted so you can get callbacks, but does not recreate the payload on disk",children:Object(x.jsx)(E.a,{size:"small",onClick:function(){e.onRestorePayload(e.id)},style:{color:ae.palette.success.main},variant:"contained",children:Object(x.jsx)(xc.a,{})})}):Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(kt.a,{title:"Delete the payload from disk and mark as deleted. No new callbacks can be generated from this payload",children:Object(x.jsx)(E.a,{size:"small",onClick:function(){g(!0)},style:{color:ae.palette.error.main},variant:"contained",children:Object(x.jsx)(M.a,{})})}),m&&Object(x.jsx)(fa.a,{onClose:function(){g(!1)},onSubmit:function(){e.onDeletePayload(e.filemetum.id),g(!1)},open:m})]})}),Object(x.jsx)(C.a,{children:Object(Z.b)(e.creation_time,te.user.view_utc_time)}),Object(x.jsxs)(C.a,{children:[Object(x.jsx)(b.a,{ref:X,size:"small",onClick:function(){d(!0)},color:"primary",variant:"contained",children:"Actions"}),Object(x.jsx)(et.a,{open:l,anchorEl:X.current,role:void 0,transition:!0,disablePortal:!0,style:{zIndex:4},children:function(t){var a=t.TransitionProps,n=t.placement;return Object(x.jsx)(Xe.a,Object(v.a)(Object(v.a)({},a),{},{style:{transformOrigin:"bottom"===n?"center top":"center bottom"},children:Object(x.jsx)(T.a,{variant:"outlined",style:{backgroundColor:"dark"===ae.palette.type?ae.palette.primary.dark:ae.palette.primary.light,color:"white"},children:Object(x.jsx)(Ze.a,{onClickAway:se,children:Object(x.jsx)(at.a,{id:"split-button-menu",children:oe.map((function(t,a){return Object(x.jsx)(tt.a,{onClick:function(e){return function(e,t){oe[t].click(),d(!1)}(0,a)},children:t.name},t.name+e.uuid)}))})})})}))}}),k?Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"md",open:k,onClose:function(){w(!1)},innerDialog:Object(x.jsx)(Gr,{payload_id:e.id,onClose:function(){w(!1)}})}):null,$?Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"md",open:$,onClose:function(){P(!1)},innerDialog:Object(x.jsx)(Jr,{payload_id:e.id,onClose:function(){P(!1)}})}):null,F?Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"md",open:F,onClose:function(){N(!1)},innerDialog:Object(x.jsx)(Zr,{payload_id:e.id,viewError:n,onClose:function(){N(!1)}})}):null,U?Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"md",open:U,onClose:function(){G(!1)},innerDialog:Object(x.jsx)(bc,{uuid:e.uuid,onClose:function(){G(!1)}})}):null,Q?Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"md",open:Q,onClose:function(){J(!1)},innerDialog:Object(x.jsx)(pc,{uuid:e.uuid,onClose:function(){J(!1)}})}):null]}),Object(x.jsx)(C.a,{children:Object(x.jsx)(lc,Object(v.a)({},e))}),Object(x.jsx)(C.a,{children:e.filemetum.filename_text}),Object(x.jsx)(C.a,{children:e.tag}),Object(x.jsx)(C.a,{children:Object(x.jsx)(nc,{payloadc2profiles:e.payloadc2profiles,uuid:e.uuid})}),Object(x.jsx)(C.a,{children:Object(x.jsx)(E.a,{size:"small",color:"primary",onClick:function(){return z(!0)},children:Object(x.jsx)(fn.a,{})})})]},"payload"+e.uuid),Object(x.jsx)(I.a,{children:B?Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"md",open:B,onClose:function(){z(!1)},innerDialog:Object(x.jsx)(bn,Object(v.a)(Object(v.a)({},e),{},{payload_id:e.id,onClose:function(){z(!1)}}))}):null})]}):null}var _c,kc,wc,Cc,Sc,Dc,Ic=Object(be.a)(fc||(fc=Object(_.a)(["\n mutation createPayloadMutation($payload: String!) {\n createPayload(payloadDefinition: $payload) {\n error\n status\n uuid\n }\n}\n "])));function Tc(e){var t=s.a.useState({name:""}),a=Object(u.a)(t,2),n=a[0],i=a[1],r=Object(pe.a)(Ic,{update:function(e,t){var a=t.data;"success"===a.createPayload.status?O.b.info("Submitted payload to build pipeline"):O.b.error(a.createPayload.error)}}),c=Object(u.a)(r,1)[0];return Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(V.a,{id:"form-dialog-title",children:"Import Payload Config to Generate New Payload"}),Object(x.jsx)(G.a,{dividers:!0,children:Object(x.jsxs)(b.a,{variant:"contained",component:"label",children:[""===n.name?"Select File":n.name,Object(x.jsx)("input",{onChange:function(e){var t=new FileReader;t.onload=function(t){var a=t.target.result;i({name:e.target.files[0].name,contents:a})},t.readAsBinaryString(e.target.files[0])},type:"file",hidden:!0})]})}),Object(x.jsxs)(U.a,{children:[Object(x.jsx)(b.a,{variant:"contained",onClick:e.onClose,color:"primary",children:"Close"}),Object(x.jsx)(b.a,{variant:"contained",onClick:function(){c({variables:{payload:n.contents}}).catch((function(e){console.log(e)})),e.onClose()},color:"secondary",children:"Submit"})]})]})}function $c(e){var t=e.payload,a=e.onDeletePayload,n=e.onUpdateCallbackAlert,i=e.onRestorePayload,r=Object(ee.a)(),c=s.a.useState(!1),o=Object(u.a)(c,2),l=o[0],d=o[1],j=s.a.useState(!1),p=Object(u.a)(j,2),h=p[0],f=p[1],O=s.a.useState(!1),g=Object(u.a)(O,2),y=g[0],_=g[1],$=s.a.useRef(null),P=s.a.useState(!1),A=Object(u.a)(P,2),E=A[0],F=A[1],N=Object(m.g)(),q=[{name:"Generate New Payload",click:function(){N.push("/new/createpayload")}},{name:"Generate New Wrapper Payload",click:function(){N.push("/new/createwrapper")}},{name:"Import Payload Config",click:function(){_(!0)}},{name:l?"Hide Deleted Payloads":"Show Deleted Payloads",click:function(){d(!l)}},{name:h?"Hide Autogenerated Payloads":"Show Autogenerated Payloads",click:function(){f(!h)}}];return Object(x.jsxs)("div",{style:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},children:[Object(x.jsxs)(T.a,{elevation:5,style:{backgroundColor:r.pageHeader.main,color:r.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:[Object(x.jsx)(L.a,{variant:"h3",style:{textAlign:"left",display:"inline-block",marginLeft:"20px"},children:"Payloads"}),Object(x.jsx)(Qe.a,{variant:"contained",ref:$,"aria-label":"split button",style:{marginRight:"10px",marginTop:"10px",float:"right"},color:"primary",children:Object(x.jsxs)(b.a,{size:"small",color:"primary","aria-controls":E?"split-button-menu":void 0,"aria-expanded":E?"true":void 0,"aria-haspopup":"menu",onClick:function(){return F(!E)},children:["Actions ",Object(x.jsx)(Ye.a,{})]})}),Object(x.jsx)(et.a,{open:E,anchorEl:$.current,role:void 0,transition:!0,disablePortal:!0,style:{zIndex:10},children:function(e){var t=e.TransitionProps,a=e.placement;return Object(x.jsx)(Xe.a,Object(v.a)(Object(v.a)({},t),{},{style:{transformOrigin:"bottom"===a?"center top":"center bottom"},children:Object(x.jsx)(T.a,{style:{backgroundColor:"dark"===r.palette.type?r.palette.primary.dark:r.palette.primary.light,color:"white"},children:Object(x.jsx)(Ze.a,{onClickAway:function(){return F(!1)},children:Object(x.jsx)(at.a,{id:"split-button-menu",children:q.map((function(e,t){return Object(x.jsx)(tt.a,{onClick:function(e){return function(e,t){q[t].click(),F(!1)}(0,t)},children:e.name},e.name)}))})})})}))}}),y&&Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"sm",open:y,onClose:function(){_(!1)},innerDialog:Object(x.jsx)(Tc,{onClose:function(){_(!1)}})})]}),Object(x.jsx)("div",{style:{display:"flex",flexGrow:1,overflow:"auto"},children:Object(x.jsx)(S.a,{component:T.a,className:"mythicElement",children:Object(x.jsxs)(k.a,{size:"small",style:{maxWidth:"100%",overflow:"scroll"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{style:{width:"4rem"},children:" Delete"}),Object(x.jsx)(C.a,{style:{width:"15rem"},children:"Timestamp"}),Object(x.jsx)(C.a,{style:{width:"6rem"},children:"Modify"}),Object(x.jsx)(C.a,{style:{width:"6rem"},children:"Download"}),Object(x.jsx)(C.a,{children:"File"}),Object(x.jsx)(C.a,{children:"Description"}),Object(x.jsx)(C.a,{children:"C2 Status"}),Object(x.jsx)(C.a,{style:{width:"5rem"},children:"Details"})]})}),Object(x.jsx)(w.a,{children:t.map((function(e){return Object(x.jsx)(vc,Object(v.a)({onDeletePayload:a,onAlertChanged:n,showDeleted:l,showAutoGenerated:h,onRestorePayload:i},e),"payload"+e.id)}))})]})})})]})}var Pc=Object(be.a)(_c||(_c=Object(_.a)(["\nfragment payloadData on payload {\n build_message\n build_phase\n build_stderr\n callback_alert\n creation_time\n id\n operator {\n id\n username\n }\n uuid\n tag\n deleted\n auto_generated\n payloadtype {\n id\n ptype\n }\n filemetum {\n agent_file_id\n filename_text\n id\n }\n payloadc2profiles {\n c2profile {\n running\n name\n is_p2p\n container_running\n }\n }\n}\n"]))),Ac=Object(be.a)(kc||(kc=Object(_.a)(["\n","\nsubscription SubPayloadsQuery($operation_id: Int!) {\n payload(where: { operation_id: {_eq: $operation_id}}, order_by: {id: desc}) {\n ...payloadData\n }\n}\n"])),Pc),Ec=Object(be.a)(wc||(wc=Object(_.a)(["\n","\nquery GetPayloadsQuery($operation_id: Int!) {\n payload(where: { operation_id: {_eq: $operation_id}}, order_by: {id: desc}, limit: 20) {\n ...payloadData\n }\n}\n"])),Pc),Lc=Object(be.a)(Cc||(Cc=Object(_.a)(["\nmutation PayloadsDeletePayloadMutation($id: Int!) {\n deleteFile(file_id: $id) {\n file_ids\n status\n error\n payload_ids\n }\n}\n"]))),Fc=Object(be.a)(Sc||(Sc=Object(_.a)(["\nmutation PayloadsCallbackAlertMutation($id: Int!, $callback_alert: Boolean!) {\n update_payload_by_pk(pk_columns: {id: $id}, _set: {callback_alert: $callback_alert}) {\n id\n callback_alert\n }\n}\n"]))),Nc=Object(be.a)(Dc||(Dc=Object(_.a)(["\nmutation RestorePayloadToUndeleted($id: Int!){\n update_payload_by_pk(pk_columns: {id: $id}, _set: {deleted: false}){\n id\n deleted\n }\n}\n"])));function qc(e){var t,a,n=Object(f.a)(h.b),i=s.a.useState([]),r=Object(u.a)(i,2),c=r[0],o=r[1],l=s.a.useRef(!0);Object(je.a)(Ec,{variables:{operation_id:(null===n||void 0===n||null===(t=n.user)||void 0===t?void 0:t.current_operation_id)||0},fetchPolicy:"no-cache",onCompleted:function(e){if(!l.current)return null;var t=e.payload.reduce((function(e,t){var a=e.findIndex((function(e){return e.id===t.id}));return a>-1?(e[a]=Object(v.a)({},t),Object(y.a)(e)):[t].concat(Object(y.a)(e))}),Object(y.a)(c));t.sort((function(e,t){return e.id>t.id?-1:1})),o(t)}}),Object(Me.a)(Ac,{variables:{operation_id:(null===n||void 0===n||null===(a=n.user)||void 0===a?void 0:a.current_operation_id)||0},fetchPolicy:"no-cache",onSubscriptionData:function(e){var t=e.subscriptionData;if(!l.current)return null;var a=t.data.payload.reduce((function(e,t){var a=e.findIndex((function(e){return e.id===t.id}));return a>-1?(e[a]=Object(v.a)({},t),Object(y.a)(e)):[t].concat(Object(y.a)(e))}),Object(y.a)(c));a.sort((function(e,t){return e.id>t.id?-1:1})),o(a)},onError:function(e){O.b.warning("Failed to get payloads"),console.log(e)}});var d=Object(pe.a)(Lc,{onCompleted:function(e){if("success"===e.deleteFile.status){var t=c.map((function(t){return e.deleteFile.payload_ids.includes(t.id)?Object(v.a)(Object(v.a)({},t),{},{deleted:!0}):Object(v.a)({},t)}));o(t),O.b.success("Successfully deleted")}else O.b.error(e.deleteFile.error)},onError:function(e){O.b.warning("Failed to delete payload"),console.log(e)}}),b=Object(u.a)(d,1)[0],j=Object(pe.a)(Nc,{onCompleted:function(e){var t=c.map((function(t){return t.id===e.update_payload_by_pk.id?Object(v.a)(Object(v.a)({},t),e.update_payload_by_pk):Object(v.a)({},t)}));o(t),!1===e.update_payload_by_pk.deleted&&O.b.success("Successfully marked payload as not deleted")},onError:function(e){O.b.warning("Failed to mark as not deleted"),console.log(e)}}),p=Object(u.a)(j,1)[0],m=Object(pe.a)(Fc,{onCompleted:function(e){var t=c.map((function(t){return t.id===e.update_payload_by_pk.id?Object(v.a)(Object(v.a)({},t),e.update_payload_by_pk):Object(v.a)({},t)}));e.update_payload_by_pk.callback_alert?O.b.success("Now Alerting on New Callbacks"):O.b.success("No Longer Alerting on New Callbacks"),o(t)},onError:function(e){O.b.warning("Failed to update callback alerting status"),console.log(e)}}),g=Object(u.a)(m,1)[0];return s.a.useEffect((function(){return function(){l.current=!1}}),[]),Object(x.jsx)("div",{style:{display:"flex",flexGrow:1,flexDirection:"column",marginTop:"10px"},children:Object(x.jsx)($c,{onDeletePayload:function(e){b({variables:{id:e}})},onUpdateCallbackAlert:function(e,t){g({variables:{id:e,callback_alert:t}})},payload:c,onRestorePayload:function(e){p({variables:{id:e}})}})})}var Rc=a(107),Bc=a.n(Rc),Mc=a(293),zc=a.n(Mc),Wc=a(171),Hc=a.n(Wc),Uc=a(84),Gc=function(e,t,a,n,i,r){!function(e,t,a,n,i,r){Uc.select(".contextMenu").remove(),n.length>0&&(Uc.select(r).append("g").attr("class","contextMenu").selectAll("tmp").data(n).enter().append("g").attr("class","menuEntry").style({cursor:"pointer"}),Uc.selectAll(".menuEntry").append("rect").attr("x",t).attr("y",(function(e,t){return a+30*t})).attr("rx",2).attr("fill","#ffffff").attr("width",180).attr("height",30).on("click",(function(t){t.action(e,i)})),Uc.selectAll(".menuEntry").append("text").text((function(e){return e.title})).attr("x",t).attr("y",(function(e,t){return a+30*t})).attr("dy",20).attr("dx",10).on("click",(function(t){t.action(e,i)})),Uc.select("body").on("click",(function(){Uc.select(".contextMenu").remove(),Uc.select(".menuEntry").remove()})))}(e,Uc.event.pageX,Uc.event.pageY-80,a,t,r),Uc.event.preventDefault()},Kc=a(314),Vc=a.n(Kc);function Qc(e){var t=Object(o.useRef)(null),a=Object(o.useState)(!0),n=Object(u.a)(a,2),i=n[0],r=n[1],c=Object(ee.a)();return Object(o.useEffect)((function(){Yc(e.callbackgraphedges,t,i,{rankDir:"LR",label_components:["id","user"],packet_flow_view:!0,include_disconnected:!0,show_all_nodes:!0},{mouseover:function(e,t,a){},mouseout:function(e,t,a){},click:function(e,t,a){},contextmenu:[]},c),r(!1)}),[e.callbackgraphedges,i,c]),Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsxs)(V.a,{id:"form-dialog-title",children:["Callback ",e.id,"'s Egress Path"]}),Object(x.jsx)(G.a,{dividers:!0,children:Object(x.jsx)(s.a.Fragment,{children:Object(x.jsx)("svg",{ref:t,id:"nodeTree",style:{width:"100%",height:"calc(78vh)",marginTop:"10px"}})})}),Object(x.jsx)(U.a,{children:Object(x.jsx)(b.a,{onClick:e.onClose,variant:"contained",color:"primary",children:"Close"})})]})}var Jc,Yc=function(e,t,a,n,i,r){var c,o="stroke: ".concat(r.palette.warning.main,"; stroke-width: 3px; stroke-dasharray: 5, 5; fill:none"),s="fill: ".concat(r.palette.warning.main),l="stroke: ".concat(r.palette.info.main,"; fill: none; stroke-width: 1.5px;"),d="stroke: ".concat(r.palette.info.main,"; fill: ").concat(r.palette.info.main,"; stroke-width: 1.5px;"),u="fill: ".concat(r.palette.success.main,","),b='labelStyle: "font-size: 2em"; fill: '.concat(r.palette.text.primary),j='labelStyle: "font-size: 2em"; fill: '.concat(r.palette.text.primary),p=function(e,t,a){(t.source.active||a.show_all_nodes)&&(m(e,t.source,a),e.setEdge(t.source.id,"Mythic",{label:t.c2profile.name,edge_id:t.id,end_timestamp:t.end_timestamp,direction:t.direction,style:null===t.end_timestamp?l:o,labelStyle:j,arrowheadStyle:null===t.end_timestamp?d:s},t.c2profile.name))},m=function(e,t,a){e.setNode(t.id,{label:h(t,a.label_components),node:t,style:u,labelStyle:b,shape:"circle",isParent:!1}),e.setNode(t.host,{label:t.host,clusterLabelPos:"top",style:"fill:".concat(r.palette.graphGroup),node:null,labelStyle:b,isParent:!0}),e.setParent(t.id,t.host),e.setNode(t.host+"mythic_expander",{label:"",shape:"square",node:t,isParent:!1}),e.setParent(t.host+"mythic_expander",t.host)},h=function(e,t){return t.map((function(t){return e[t]})).join(", ")},f=function(e,t,a){if(t.source.active||t.destination.active||a.show_all_nodes){if(a.show_all_nodes)m(e,t.source,a),m(e,t.destination,a);else if(t.source.active&&m(e,t.source,a),t.destination.active&&m(e,t.destination,a),!t.source.active||!t.destination.active)return;1===t.direction?a.packet_flow_view?O(e,t,2):O(e,t,1):(2===t.direction||O(e,t,1),O(e,t,2))}},O=function(e,t,a){1===a?e.setEdge(t.source.id,t.destination.id,{label:t.c2profile.name,edge_id:t.id,end_timestamp:t.end_timestamp,direction:t.direction,style:null===t.end_timestamp?l:o,labelStyle:j,arrowheadStyle:null===t.end_timestamp?d:s},t.c2profile.name):2===a&&e.setEdge(t.destination.id,t.source.id,{label:t.c2profile.name,edge_id:t.id,end_timestamp:t.end_timestamp,direction:t.direction,style:null===t.end_timestamp?l:o,labelStyle:j,arrowheadStyle:null===t.end_timestamp?d:s},t.c2profile.name)},x=new Vc.a.graphlib.Graph({compound:!0,multigraph:!0,directed:!0}).setGraph({rankdir:n.rankDir}).setDefaultEdgeLabel((function(){return{}})),g=Uc.select(t.current),y=g.select("g")._groups[0][0];c=y?g.select("g"):g.append("g");var v=Uc.zoom().on("zoom",(function(){c.attr("transform",Uc.event.transform)}));a&&(g.select("g.output").remove(),g.call(v)),x.setNode("Mythic",{label:"",style:u,shape:"circle",node:null,labelStyle:b}),e.forEach((function(e){(n.include_disconnected||null===e.end_timestamp)&&(e.destination.id===e.source.id?x.hasEdge(e.source.id,"Mythic",e.c2profile.name)?e.id>x.edge(e.source.id,"Mythic",e.c2profile.name).edge_id&&p(x,e,n):p(x,e,n):1===e.direction?n.packet_flow_view?x.hasEdge(e.destination.id,e.source.id,e.c2profile.name)?e.id>x.edge(e.destination.id,e.source.id,e.c2profile.name).edge_id&&f(x,e,n):f(x,e,n):x.hasEdge(e.source.id,e.destination.id,e.c2profile.name)?e.id>x.edge(e.source.id,e.destination.id,e.c2profile.name).edge_id?f(x,e,n):console.log("doing nothing, dropping data"):f(x,e,n):2===e.direction&&(x.hasEdge(e.destination.id,e.source.id,e.c2profile.name)?e.id>x.edge(e.destination.id,e.source.id,e.c2profile.name).edge_id&&f(x,e,n):f(x,e,n)))}));var _=new Vc.a.render,k=g.node().getBoundingClientRect().width,w=g.node().getBoundingClientRect().height;if(_.shapes().circle=function(e,t,a){var n=e.insert("image").attr("class","nodeImage").attr("xlink:href",(function(e){return a.node?"/static/"+a.node.payload.payloadtype.ptype+".svg":"/static/mythic.svg"})).attr("x","-20px").attr("y","-20px").attr("width","40px").attr("height","40px").on("mouseover",(function(t){i.mouseover(e,a,t)})).on("mouseout",(function(t){i.mouseout(e,a,t)})).on("click",(function(t){Uc.event.preventDefault(),i.click(e,a,t)})).on("contextmenu",(function(e){Gc(x,a,i.contextmenu,0,0,"#callbacksgraph")}));return a.intersect=function(e){return Vc.a.intersect.circle(a,20,e)},n},_.shapes().square=function(e,t,a){return e.insert("rect").attr("width",(function(e){var t=x.children(a.node.host),i=a.node.host.length;if(void 0!==t&&t.forEach((function(e){x.node(e).label.length>i&&(i=x.node(e).label.length)})),"LR"===n.rankDir)return 9*i+"px";if(void 0!==t){var r=0;return t.forEach((function(e){x.outEdges(e,"Mythic").length>0&&(r+=1)})),(i=9*i-100*r)<0?0:i+"px"}console.log("candidates were undefined")})).attr("height",0)},_(c,x),a){var C=x.graph().width+40,S=x.graph().height+40,D=Math.min(k/C,w/S),I=k/2-C*D/2,T=w/2-S*D/2;g.transition().duration(500).call(v.transform,Uc.zoomIdentity.translate(I,T).scale(D))}c.selectAll("g.nodes g.label").attr("transform","translate(0,30)")},Zc=Object(be.a)(Jc||(Jc=Object(_.a)(["\nsubscription CallbacksSubscription ($operation_id: Int!){\n callbackgraphedge(where: {operation_id: {_eq: $operation_id}}, order_by: {id: desc}) {\n id\n end_timestamp\n direction\n destination {\n active\n id\n operation_id\n user\n host\n payload {\n payloadtype {\n ptype\n id\n }\n }\n callbackc2profiles {\n c2profile {\n name\n }\n }\n }\n source {\n active\n id\n user\n operation_id\n host\n payload {\n payloadtype {\n ptype\n id\n }\n }\n callbackc2profiles {\n c2profile {\n name\n }\n }\n }\n c2profile {\n id\n is_p2p\n name\n }\n }\n}\n "])));function Xc(e){var t=Object(ee.a)();return Object(x.jsxs)("div",{style:{maxWidth:"30%",width:"30%",display:"inline-flex",height:"calc(94vh)",flexDirection:"column"},children:[Object(x.jsx)(T.a,{elevation:5,style:{backgroundColor:t.pageHeader.main,color:t.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:Object(x.jsxs)(L.a,{variant:"h3",style:{textAlign:"left",display:"inline-block",marginLeft:"20px"},children:["Callback ",e.callback.id]})}),Object(x.jsx)(S.a,{component:T.a,className:"mythicElement",children:Object(x.jsx)(eo,Object(v.a)({},e.callback))})]})}function eo(e){s.a.useRef(null);var t=Object(ee.a)(),a=Object(f.a)(h.b),n=s.a.useState(""),i=Object(u.a)(n,2),r=i[0],c=i[1],l=s.a.useState(!1),d=Object(u.a)(l,2),b=d[0],j=d[1],p=s.a.useState(t.palette.success.main),m=Object(u.a)(p,2),O=m[0],g=m[1],_=s.a.useState(!0),S=Object(u.a)(_,2),D=S[0],T=S[1],$=s.a.useState(!1),P=Object(u.a)($,2),A=P[0],E=P[1],F=s.a.useState([]),N=Object(u.a)(F,2),q=N[0],R=N[1],B=s.a.useState([]),M=Object(u.a)(B,2),z=M[0],W=M[1],H=s.a.useState(!0),U=Object(u.a)(H,2),G=U[0],K=U[1],V=s.a.useState([]),Q=Object(u.a)(V,2),J=Q[0],X=Q[1];Object(Me.a)(Zc,{variables:{operation_id:a.user.current_operation_id},fetchPolicy:"network-only",shouldResubscribe:!0,onSubscriptionData:function(e){var t=e.subscriptionData;X(t.data.callbackgraphedge)}});Object(Z.c)((function(){var t;t=e.last_checkin,c(Object(Z.a)(t))})),Object(o.useEffect)((function(){var t=z.filter((function(t){return!t.c2profile.is_p2p&&t.source.id===e.id&&t.destination.id===e.id})).length;t>0&&!G?K(!0):0===t&&G&&K(!1)}),[z]),Object(o.useEffect)((function(){var t=function(t){for(var a=J.filter((function(a){return(a.source.id===e.id||a.destination.id===e.id)&&(!t||null===a.end_timestamp)})),n=!0;n;){var i=J.reduce((function(e,a){return e.includes(a)?Object(y.a)(e):e.filter((function(e){return(e.source.id===a.source.id||e.source.id===a.destination.id||e.destination.id===a.source.id)&&(!t||null===a.end_timestamp)})).length>0?[].concat(Object(y.a)(e),[a]):Object(y.a)(e)}),Object(y.a)(a));n=i.length>a,a=Object(y.a)(i)}return a},a=t(!0),n=t(!1);R(a),W(n)}),[J,e.id]),Object(o.useEffect)((function(){0===q.filter((function(e){return!e.c2profile.is_p2p&&null===e.end_timestamp})).length?(g(t.palette.error.main),T(!1)):(g(t.palette.success.main),T(!0))}),[q,t.palette.success.main,t.palette.error.main]);e.locked&&e.locked_operator.username,e.locked?Hc.a:Bc.a,_i.a;return Object(x.jsx)(k.a,{size:"small",style:{overflow:"scroll"},children:Object(x.jsxs)(w.a,{children:[Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"Elevation Level"}),Object(x.jsxs)(C.a,{children:[e.integrity_level,e.integrity_level>2?" ( Elevated Access )":"",2===e.integrity_level?" ( Medium Integrity ) ":"",e.integrity_level<2?" ( Low Integrity )":""]})]}),Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"Callback Lock Status"}),Object(x.jsx)(C.a,{children:e.locked?Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(Hc.a,{style:{paddingRight:"5px",display:"inline-block",paddingTop:"6px"}}),Object(x.jsx)(L.a,{style:{display:"inline-block"},children:"Unlock (Locked by "+e.locked_operator.username+")"})]}):Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(Bc.a,{style:{paddingRight:"5px",display:"inline-block",paddingTop:"6px"}}),Object(x.jsx)(L.a,{style:{display:"inline-block"},children:"Lock Callback"})]})})]}),Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"IP Address"}),Object(x.jsx)(C.a,{children:e.ip})]}),Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"External IP"}),Object(x.jsx)(C.a,{children:e.external_ip})]}),Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"Host"}),Object(x.jsx)(C.a,{children:e.host})]}),Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"User"}),Object(x.jsx)(C.a,{children:e.user})]}),Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"Domain"}),Object(x.jsx)(C.a,{children:e.domain})]}),Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"OS / Architecture"}),Object(x.jsxs)(C.a,{children:[e.os,"(",e.architecture,")"]})]}),Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"Process ID"}),Object(x.jsx)(C.a,{children:e.pid})]}),Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"Last Checkin"}),Object(x.jsx)(C.a,{children:r})]}),Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"Description"}),Object(x.jsx)(C.a,{children:e.description})]}),Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"Sleep Info"}),Object(x.jsx)(C.a,{children:e.sleep_info})]}),Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"Agent Type"}),Object(x.jsx)(C.a,{children:e.payload.payloadtype.ptype})]}),Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"Egress Route"}),Object(x.jsx)(C.a,{children:G?Object(x.jsx)(Ve.a,{onClick:function(e){e.stopPropagation(),E(!0)},style:{color:O,cursor:"pointer"}}):Object(x.jsx)(zc.a,{onClick:function(e){e.stopPropagation(),E(!0)},style:{color:O,cursor:"pointer"}})})]}),Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"Process Name"}),Object(x.jsx)(C.a,{children:e.process_name})]}),Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"lg",open:A,onClose:function(){E(!1)},innerDialog:Object(x.jsx)(Qc,Object(v.a)(Object(v.a)({onClose:function(){E(!1)}},e),{},{callbackgraphedges:D?q:z}))}),Object(x.jsx)(Y.a,{fullWidth:!0,open:b,onClose:function(){j(!1)},innerDialog:Object(x.jsx)(Y.b,{title:"Edit Callback's Description",onClose:function(){j(!1)},value:e.description,onSubmit:function(t){e.updateDescription({description:t,id:e.id})}})}),Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"Extra Info"}),Object(x.jsx)(C.a,{children:e.extra_info})]})]})})}var to,ao=a(108),no=Object(be.a)(to||(to=Object(_.a)(["\nsubscription CallbacksSubscription ($callback_id: Int!){\n callback_by_pk(id: $callback_id) {\n architecture\n description\n domain\n external_ip\n host\n id\n integrity_level\n ip\n last_checkin\n locked\n locked_operator {\n username\n }\n extra_info\n sleep_info\n pid\n os\n user\n agent_callback_id\n operation_id\n process_name\n payload {\n os\n payloadtype {\n ptype\n id\n }\n tag\n id\n }\n callbacktokens(where: {deleted: {_eq: false}}) {\n token {\n TokenId\n id\n User\n description\n }\n callback {\n id\n }\n id\n }\n }\n}\n "])));function io(e){var t=Object(m.h)().callbackId,a=s.a.useState({payload:{payloadtype:{ptype:""}},callbacktokens:[]}),n=Object(u.a)(a,2),i=n[0],r=n[1],c=s.a.useState({callbackID:parseInt(t)}),o=Object(u.a)(c,2),l=o[0],d=o[1];return Object(Me.a)(no,{variables:{callback_id:t},fetchPolicy:"network-only",shouldResubscribe:!0,onSubscriptionData:function(e){var a=e.subscriptionData;null!==a.data.callback_by_pk?(r(a.data.callback_by_pk),d({tabID:"interact",tabType:"interact",callbackID:parseInt(t),payloadtype:a.data.callback_by_pk.payload.payloadtype.ptype,payloadDescription:a.data.callback_by_pk.payload.tag,callbackDescription:a.data.callback_by_pk.description,os:a.data.callback_by_pk.payload.os})):O.b.error("Unknown Callback")}}),Object(x.jsx)("div",{style:{width:"100%",height:"100%",maxHeight:"100%",display:"flex",flexDirection:"row"},children:void 0!==l.payloadtype?Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(Xc,{callback:i}),Object(x.jsx)(ao.b,{style:{height:"calc(".concat(96,"vh)"),maxHeight:"calc(".concat(96,"vh)"),width:"69%",maxWidth:"69%",position:"absolute",overflow:"auto",display:"inline-flex",flexDirection:"column"},tabInfo:l,callbacktokens:i.callbacktokens})]}):Object(x.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",left:"50%",top:"50%"},children:"Fetching Callback"})})}var ro=a(312),co=a(848),oo=Object(Se.a)((function(e){return{root:{width:"100%"},expand:{transform:"rotate(0deg)",marginLeft:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest})},expandOpen:{transform:"rotate(180deg)"},avatar:{backgroundColor:ro.a[500]}}}));function so(){var e=oo(),t=s.a.useState(!1),a=Object(u.a)(t,2),n=a[0],i=a[1];return Object(x.jsxs)(Ie.a,{className:e.root,elevation:5,children:[Object(x.jsx)(_a.a,{avatar:Object(x.jsx)(An.a,{className:e.avatar}),title:"Mythic Quick Start Guide",subheader:"Expand this section to learn how to: Generate a Payload, Download the Payload, Get To Callbacks",style:{paddingBottom:0,marginBottom:0}}),Object(x.jsx)(Ra.a,{styl:{padding:0,margin:0},children:Object(x.jsx)(E.a,{className:Object(qa.default)(e.expand,Object(jt.a)({},e.expandOpen,n)),onClick:function(){i(!n)},"aria-expanded":n,"aria-label":"show more",children:Object(x.jsx)(Wa.a,{})})}),Object(x.jsx)(A.a,{in:n,timeout:"auto",unmountOnExit:!0,children:Object(x.jsx)($e.a,{style:{margin:0,paddingTop:0},children:Object(x.jsxs)("ol",{children:[Object(x.jsxs)("li",{children:["Create a payload at ",Object(x.jsx)(co.a,{style:{wordBreak:"break-all"},color:"textPrimary",underline:"always",target:"_blank",href:"/new/createpayload",children:"Create -> Create Payload"}),Object(x.jsxs)("ul",{children:[Object(x.jsx)("li",{children:"Select Desired OS"}),Object(x.jsx)("li",{children:"Select Payload Type and Supply Build Parameters"}),Object(x.jsx)("li",{children:"Select Commands You Want Stamped Into The Agent"}),Object(x.jsx)("li",{children:"Select C2 Profiles and Fill Out Parameters"}),Object(x.jsx)("li",{children:"Name Your Payload"}),Object(x.jsx)("li",{children:"Provide a Description"}),Object(x.jsx)("li",{children:"Build Your Payload"})]})]}),Object(x.jsxs)("li",{children:["Download Your Payload at ",Object(x.jsx)(co.a,{style:{wordBreak:"break-all"},color:"textPrimary",underline:"always",target:"_blank",href:"/new/payloads",children:"Operational Data -> Payloads"})]}),Object(x.jsxs)("li",{children:["Run Your payload",Object(x.jsx)("ul",{children:Object(x.jsxs)("li",{children:["For More Information About Your Agent, Check Out The ",Object(x.jsx)(co.a,{style:{wordBreak:"break-all"},color:"textPrimary",underline:"always",target:"_blank",href:"/docs/agents",children:"Internal Documentation"})]})})]}),Object(x.jsxs)("li",{children:["Interact With Your Agent At ",Object(x.jsx)(co.a,{style:{wordBreak:"break-all"},color:"textPrimary",underline:"always",target:"_blank",href:"/new/callbacks",children:"Active Callbacks"})]})]})})})]})}var lo,uo=a(248),bo=Object(be.a)(lo||(lo=Object(_.a)(["\nquery GetC2AndPayloadType {\n c2profile(where: {deleted: {_eq: false}}) {\n name\n id\n }\n payloadtype(where: {deleted: {_eq: false}, wrapper: {_eq: false}}) {\n ptype\n id\n payloadtypec2profiles {\n c2profile {\n name\n id\n }\n }\n }\n wrappers: payloadtype(where: {deleted: {_eq: false}, wrapper: {_eq: true}}) {\n ptype\n id\n wrap_these_payload_types {\n wrapped {\n ptype\n }\n }\n }\n}\n"])));function jo(e){var t=Object(ee.a)(),a=s.a.useState([]),n=Object(u.a)(a,2),i=n[0],r=n[1],c=s.a.useState([]),o=Object(u.a)(c,2),l=o[0],d=o[1],b=s.a.useState([]),j=Object(u.a)(b,2),p=j[0],m=j[1];return Object(je.a)(bo,{fetchPolicy:"network-only",onCompleted:function(e){var t=e.c2profile.map((function(e){return e.name})),a=e.payloadtype.map((function(e){var t=e.payloadtypec2profiles.map((function(e){return e.c2profile.name}));return{ptype:e.ptype,payloadtypec2profiles:t}}));t.sort(),a.sort((function(e,t){return e.ptype0&&Object(x.jsx)(S.a,{component:T.a,className:"mythicElement",style:{marginTop:"10px"},children:Object(x.jsxs)(k.a,{size:"small",children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{}),l.map((function(e){return Object(x.jsx)(C.a,{children:e.ptype},"wrapped"+e.ptype)}))]})}),Object(x.jsx)(w.a,{children:p.map((function(e){return Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:e.ptype}),l.map((function(a){return Object(x.jsx)(C.a,{children:e.wrapped.includes(a.ptype)?Object(x.jsx)(uo.a,{title:e.ptype+" wraps "+a.ptype,children:Object(x.jsx)(Ua.a,{style:{color:t.palette.success.main}})}):""},"payload"+a.ptype)}))]},"wrapper"+e.ptype)}))})]})})]})}function po(){var e=Object(ee.a)();return Object(x.jsxs)("div",{style:{maxHeight:"calc(96vh)",margin:"10px"},children:[Object(x.jsx)(T.a,{elevation:5,style:{backgroundColor:e.pageHeader.main,color:e.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:Object(x.jsx)(L.a,{variant:"h3",style:{textAlign:"left",display:"inline-block",marginLeft:"20px"},children:"Welcome To Mythic"})}),Object(x.jsx)(so,{}),Object(x.jsx)(jo,{})]})}var mo=a(85),ho=["component"];function fo(e){var t=e.component,a=Object(mo.a)(e,ho),n=Object(f.a)(h.b);return Object(x.jsx)(m.b,Object(v.a)(Object(v.a)({},a),{},{render:function(e){return n.loggedIn&&n.user?s.a.createElement(t,e):Object(x.jsx)(m.a,{to:{pathname:"/new/login",state:{from:e.location}}})}}))}var Oo=a(910),xo=a(918),go=a(48),yo=a(498),vo=a.n(yo),_o=a(304),ko=a.n(_o),wo=a(305),Co=a.n(wo),So=a(29),Do=a(497),Io=a.n(Do),To=a(301),$o=a.n(To),Po=a(496),Ao=a.n(Po),Eo=a(213),Lo=a.n(Eo),Fo=a(214),No=a.n(Fo),qo=["onSelectNode","onExpandNode","onCollapseNode"],Ro=Object(Se.a)((function(e){return{rowContainer:{},row:{display:"flex",alignItems:"left",marginLeft:function(t){return e.spacing(3*t.depth)},userSelect:"none",whiteSpace:"nowrap"},rowButtonWrapper:{width:e.spacing(3),textAlign:"center","&:hover":{cursor:"pointer",textDecoration:"underline"}},rowButton:{width:e.spacing(3)},rowLabel:{marginLeft:e.spacing(.5)},heading:{fontSize:e.typography.pxToRem(15),whiteSpace:"pre-line"},secondaryHeading:{fontSize:e.typography.pxToRem(15),overflow:"hidden",display:"block",textOverflow:"ellipsis",maxWidth:"calc(90vw)",whiteSpace:"nowrap"},taskAndTimeDisplay:{fontSize:e.typography.pxToRem(12),color:e.palette.text.secondary,overflow:"hidden",display:"block",textOverflow:"ellipsis",maxWidth:"calc(90vw)",whiteSpace:"nowrap"},secondaryHeadingExpanded:{fontSize:e.typography.pxToRem(15),display:"block",overflow:"auto",maxWidth:"calc(90vw)",whiteSpace:"break-word"},icon:{verticalAlign:"middle",height:20,width:20},details:{alignItems:"center"},column:{padding:"0 5px 0 0",display:"inline-block",margin:0,height:"auto"},paper:{width:"100%",marginBottom:e.spacing(2)},table:{minWidth:750},visuallyHidden:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1}}})),Bo=function(e){var t=e.onSelectNode,a=e.onExpandNode,n=e.onCollapseNode,i=Object(mo.a)(e,qo),r=i.data[i.index],c=Object(ee.a)(),o=Ro(),s=function(e){e.stopPropagation(),r.isOpen?n(r.id,r):(O.b.info("fetching elements...",{persist:!0}),a(r.id,r))};return Object(x.jsx)("div",{style:i.style,children:Object(x.jsxs)("div",{style:{display:"flex",marginBottom:"2px",flexGrow:1,width:"100%"},children:[Object(y.a)(Array(r.data.depth)).map((function(e,t){return Object(x.jsx)("div",{style:{borderLeft:"2px dashed ".concat(Object(So.c)(c.palette.text.primary,.4)),marginLeft:15,paddingRight:15,display:"inline-block"}},"folder"+r.data.id+"lines"+t)})),Object(x.jsxs)("div",{className:o.root,style:{backgroundColor:c.body,color:c.text,alignItems:"center",display:"flex",paddingRight:"10px"},onClick:function(e){t(r.id,r)},children:[null===r.data.parent_id?Object(x.jsx)(Ao.a,{style:{marginLeft:"3px",marginRight:"5px"},onClick:s}):r.data.is_file?Object(x.jsx)(Lo.a,{style:{marginLeft:"3px",marginRight:"5px"}}):r.isOpen?Object(x.jsx)($o.a,{style:{marginLeft:"3px",marginRight:"5px",color:c.folderColor},onClick:s}):Object(x.jsx)(Io.a,{style:{paddingTop:"5px",marginLeft:"3px",marginRight:"5px",color:c.folderColor},onClick:s}),r.data.depth>0&&r.data.filebrowserobjs_aggregate.aggregate.count>99?Object(x.jsx)(kt.a,{title:"Number of known children",children:Object(x.jsx)(Pe.a,{style:{left:-50},max:99,badgeContent:r.data.filebrowserobjs_aggregate.aggregate.count,color:"primary",anchorOrigin:{vertical:"bottom",horizontal:"left"}})}):null,Object(x.jsx)(L.a,{style:{color:r.data.filebrowserobjs_aggregate.aggregate.count>0||null!==r.data.success?c.palette.text.primary:c.palette.text.secondary},children:null===r.data.parent_id?r.data.host:r.data.name_text}),!0===r.data.success&&r.data.depth>0?Object(x.jsx)(kt.a,{title:"Successfully listed contents of folder",children:Object(x.jsx)(Ua.a,{fontSize:"small",style:{color:c.palette.success.main}})}):!1===r.data.success&&r.data.depth>0?Object(x.jsx)(kt.a,{title:"Failed to list contents of folder",children:Object(x.jsx)(No.a,{fontSize:"small",style:{color:c.palette.error.main}})}):null]})]})})},Mo=function(e){var t=e.nodes,a=e.openNodes,n=e.onSelectNode,i=e.onExpandNode,r=e.onCollapseNode,c=e.display_name,s=Object(o.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return 0===t||!0===a[e.id]?[{id:e.id,name:e[c],depth:t,isLeaf:!Array.isArray(e.children)||0===e.children.length,isOpen:!0,data:Object(v.a)(Object(v.a)({},e),{},{depth:t})}].concat(Object(y.a)(Object.values(e.children).reduce((function(e,a){return a.is_file?Object(y.a)(e):[].concat(Object(y.a)(e),[s(a,t+1)])}),[]).flat())):[{id:e.id,name:e[c],depth:t,isLeaf:!Array.isArray(e.children)||0===e.children.length,isOpen:!1,data:Object(v.a)(Object(v.a)({},e),{},{depth:t})}]}),[a]),l=Object(o.useMemo)((function(){return t.map((function(e){return s(e)})).flat()}),[s,t]);return Object(x.jsx)(ai.a,{children:function(e){return Object(x.jsx)(ti.a,{itemData:l,direction:"vertical",height:e.height-10,width:e.width-10,itemCount:l.length,itemSize:24,children:function(e){return Object(x.jsx)(Bo,Object(v.a)(Object(v.a)({},e),{},{onSelectNode:n,onExpandNode:i,onCollapseNode:r}))}})}})},zo=function(e){var t=e.treeRoot,a=e.fetchFolderData,n=e.setTableData,i=s.a.useState({}),r=Object(u.a)(i,2),c=r[0],o=r[1];return 0===t.length?Object(x.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",left:"50%",top:"50%"},children:"No File Browser Data Collected"}):Object(x.jsx)(Mo,{nodes:t,display_name:"name_text",openNodes:c,onSelectNode:function(e,t){n(t.data),console.log("onSelectNode",e,t)},onExpandNode:function(e,t){console.log("toggleNodeExpanded",e,t),n(t.data),a(t.data),o(Object(v.a)(Object(v.a)({},c),{},Object(jt.a)({},e,!0)))},onCollapseNode:function(e,t){o(Object(v.a)(Object(v.a)({},c),{},Object(jt.a)({},e,!1)))}})};function Wo(e){var t=s.a.useState([]),a=Object(u.a)(t,2),n=a[0],i=a[1],r=Object(ee.a)();return Object(o.useEffect)((function(){i(e.value)}),[e.value]),Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(V.a,{id:"form-dialog-title",children:e.title}),Object(x.jsx)(G.a,{dividers:!0,children:Object(x.jsx)(T.a,{elevation:5,style:{position:"relative",backgroundColor:r.body},variant:"elevation",children:Object(x.jsx)(S.a,{component:T.a,className:"mythicElement",children:Object(x.jsxs)(k.a,{size:"small",style:{tableLayout:"fixed",maxWidth:"calc(100vw)",overflow:"scroll"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{style:{width:"5rem"},children:"Download"}),Object(x.jsx)(C.a,{children:"Time"}),Object(x.jsx)(C.a,{children:"Task"}),Object(x.jsx)(C.a,{children:"Comment"})]})}),Object(x.jsx)(w.a,{children:n.map((function(e){return Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{children:e.complete?Object(x.jsx)(E.a,{href:"/api/v1.4/files/download/"+e.agent_file_id,style:{color:r.palette.success.main},children:Object(x.jsx)(cc.a,{})}):e.chunks_received+"/"+e.total_chunks}),Object(x.jsx)(C.a,{children:e.timestamp}),Object(x.jsx)(C.a,{children:e.task.id}),Object(x.jsx)(C.a,{children:e.comment})]},"hist"+e.id)}))})]})})})}),Object(x.jsx)(U.a,{children:Object(x.jsx)(b.a,{onClick:e.onClose,variant:"contained",color:"primary",children:"Close"})})]})}var Ho=a(302),Uo=a.n(Ho),Go=a(190),Ko=a.n(Go),Vo=a(303),Qo=a.n(Vo),Jo=(a(347),a(298)),Yo=a.n(Jo),Zo=a(139),Xo=a(168);function es(e){var t=e.filterOptions,a=e.onSubmit,n=e.onClose,i=e.selectedColumn,r=Object(o.useState)(""),c=Object(u.a)(r,2),l=c[0],d=c[1],p=function(){a(Object(v.a)(Object(v.a)({},t),{},Object(jt.a)({},i.key,l))),n()};return s.a.useEffect((function(){t[i.key]&&d(t[i.key])}),[i]),Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsxs)(V.a,{id:"form-dialog-title",children:["Filter ",i.name," Entries"]}),Object(x.jsx)(G.a,{dividers:!0,children:Object(x.jsx)(j.a,{autoFocus:!0,onChange:function(e,t,a){d(t)},value:l,onEnter:p})}),Object(x.jsxs)(U.a,{children:[Object(x.jsx)(b.a,{variant:"contained",onClick:n,color:"primary",children:"Close"}),Object(x.jsx)(b.a,{variant:"contained",onClick:p,color:"secondary",children:"Submit"})]})]})}var ts,as,ns,is=Object(Se.a)((function(e){return{root:{margin:"auto"},paper:{width:200,height:230,overflow:"auto"},button:{margin:e.spacing(.5,0)},divider:{backgroundColor:"rgb(100, 170, 204)",border:"2px solid rgba(100, 170, 204)"}}}));function rs(e){var t=is(),a=s.a.useState([]),n=Object(u.a)(a,2),i=n[0],r=n[1],c=s.a.useState([]),l=Object(u.a)(c,2),d=l[0],j=l[1],p=s.a.useState([]),m=Object(u.a)(p,2),h=m[0],f=m[1],O=s.a.useState(""),g=Object(u.a)(O,2),v=g[0],_=g[1],k=s.a.useState(""),w=Object(u.a)(k,2),C=w[0],S=w[1],D=P(i,d),I=P(i,h);function $(t,a){return e.itemKey?t.filter((function(t){return void 0===a.find((function(a){return a[e.itemKey]===t[e.itemKey]}))})):t.filter((function(e){return-1===a.indexOf(e)}))}function P(t,a){return e.itemKey?t.filter((function(t){return void 0!==a.find((function(a){return a[e.itemKey]===t[e.itemKey]}))})):t.filter((function(e){return-1!==a.indexOf(e)}))}var A=function(t){return function(){var a=-1;a=e.itemKey?i.findIndex((function(a){return a[e.itemKey]===t[e.itemKey]})):i.indexOf(t);var n=Object(y.a)(i);-1===a?n.push(t):n.splice(a,1),r(n)}};Object(o.useEffect)((function(){var t=e.left.reduce((function(t,a){return void 0===e.itemKey?e.right.includes(a)?Object(y.a)(t):[].concat(Object(y.a)(t),[a]):e.right.find((function(t){return t[e.itemKey]===a[e.itemKey]}))?Object(y.a)(t):[].concat(Object(y.a)(t),[a])}),[]);j(t),f(e.right),_(e.leftTitle),S(e.rightTitle)}),[e.left,e.right,e.leftTitle,e.rightTitle,e.itemKey]);var E=function(a,n){return Object(x.jsx)(T.a,{className:t.paper,style:{width:"100%",height:"calc(50vh)"},children:Object(x.jsxs)(Ie.a,{children:[Object(x.jsx)(_a.a,{className:t.cardHeader,title:a}),Object(x.jsx)(ka.a,{classes:{root:t.divider}}),Object(x.jsxs)(Oa.a,{dense:!0,component:"div",role:"list",style:{padding:0},children:[n.map((function(t){var a=void 0===e.itemKey?t:t[e.itemKey],n="transfer-list-item-".concat(a,"-label");return Object(x.jsxs)(xa.a,{style:{padding:0},role:"listitem",button:!0,onClick:A(t),children:[Object(x.jsx)(ga.a,{children:Object(x.jsx)(va.a,{checked:void 0===e.itemKey?-1!==i.indexOf(a):-1!==i.findIndex((function(t){return t[e.itemKey]===a})),tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":n}})}),Object(x.jsx)(ya.a,{id:n,primary:a})]},a)})),Object(x.jsx)(xa.a,{})]})]})})};return Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(V.a,{id:"form-dialog-title",children:e.dialogTitle}),Object(x.jsx)(G.a,{dividers:!0,children:Object(x.jsxs)(ft.a,{container:!0,spacing:2,justify:"center",alignItems:"center",className:t.root,children:[Object(x.jsx)(ft.a,{item:!0,xs:5,style:{paddingLeft:0,marginLeft:0},children:E(v,d)}),Object(x.jsx)(ft.a,{item:!0,children:Object(x.jsxs)(ft.a,{container:!0,direction:"column",alignItems:"center",children:[Object(x.jsx)(b.a,{variant:"outlined",size:"small",className:t.button,onClick:function(){f(h.concat(d)),j([])},disabled:0===d.length,"aria-label":"move all right",children:"\u226b"}),Object(x.jsx)(b.a,{variant:"outlined",size:"small",className:t.button,onClick:function(){f(h.concat(D)),j($(d,D)),r($(i,D))},disabled:0===D.length,"aria-label":"move selected right",children:">"}),Object(x.jsx)(b.a,{variant:"outlined",size:"small",className:t.button,onClick:function(){j(d.concat(I)),f($(h,I)),r($(i,I))},disabled:0===I.length,"aria-label":"move selected left",children:"<"}),Object(x.jsx)(b.a,{variant:"outlined",size:"small",className:t.button,onClick:function(){j(d.concat(h)),f([])},disabled:0===h.length,"aria-label":"move all left",children:"\u226a"})]})}),Object(x.jsx)(ft.a,{item:!0,xs:5,children:E(C,h)})]})}),Object(x.jsxs)(U.a,{children:[Object(x.jsx)(b.a,{onClick:e.onClose,variant:"contained",color:"primary",children:"Close"}),Object(x.jsx)(b.a,{onClick:function(){e.onSubmit({left:d,right:h}),e.onClose()},variant:"contained",color:"secondary",children:"Submit"})]})]})}var cs,os,ss,ls,ds,us=Object(be.a)(ts||(ts=Object(_.a)(["\n query getPermissionsQuery($filebrowserobj_id: Int!) {\n filebrowserobj_by_pk(id: $filebrowserobj_id) {\n id\n permissions\n }\n }\n"]))),bs=Object(be.a)(as||(as=Object(_.a)(["\n query getFileDownloadHistory($filebrowserobj_id: Int!) {\n filebrowserobj_by_pk(id: $filebrowserobj_id) {\n filemeta {\n id\n comment\n agent_file_id\n chunks_received\n complete\n total_chunks\n timestamp\n task {\n id\n comment\n }\n }\n }\n }\n"]))),js=Object(be.a)(ns||(ns=Object(_.a)(["\n mutation updateCommentMutation($filebrowserobj_id: Int!, $comment: String!) {\n update_filebrowserobj_by_pk(pk_columns: { id: $filebrowserobj_id }, _set: { comment: $comment }) {\n comment\n id\n }\n }\n"]))),ps=function(e){var t=s.a.useState([]),a=Object(u.a)(t,2),n=a[0],i=a[1],r=s.a.useState(!1),c=Object(u.a)(r,2),l=c[0],d=c[1],b=s.a.useState({}),j=Object(u.a)(b,2),p=j[0],m=j[1],h=s.a.useState({}),f=Object(u.a)(h,2),g=f[0],_=f[1],k=s.a.useState({sortKey:null,sortDirection:null,sortType:null}),w=Object(u.a)(k,2),C=w[0],S=w[1],D=s.a.useState({visible:["Actions","Name","Size","Last Modified"],hidden:["Comment"]}),I=Object(u.a)(D,2),T=I[0],$=I[1],P=s.a.useState(!1),A=Object(u.a)(P,2),E=A[0],L=A[1],F=s.a.useMemo((function(){return[{name:"Actions",width:100,disableAutosize:!0,disableSort:!0,disableFilterMenu:!0},{name:"Name",type:"string",key:"name_text",fillWidth:!0},{name:"Size",type:"number",key:"size",width:100},{name:"Last Modified",type:"date",key:"modify_time",width:220},{name:"Comment",type:"string",key:"comment",width:200}].reduce((function(e,t){return T.visible.includes(t.name)?p[t.key]&&String(p[t.key]).length>0?[].concat(Object(y.a)(e),[Object(v.a)(Object(v.a)({},t),{},{filtered:!0})]):[].concat(Object(y.a)(e),[Object(v.a)({},t)]):Object(y.a)(e)}),[])}),[p,T]),N=s.a.useMemo((function(){if(null===C.sortKey||null===C.sortType)return n;var e=Object(y.a)(n);return"number"===C.sortType||"size"===C.sortType||"date"===C.sortType?e.sort((function(e,t){return parseInt(e[C.sortKey])>parseInt(t[C.sortKey])?1:-1})):"string"===C.sortType&&e.sort((function(e,t){return e[C.sortKey].toLowerCase()>t[C.sortKey].toLowerCase()?1:-1})),"DESC"===C.sortDirection&&e.reverse(),e}),[n,C]),q=s.a.useMemo((function(){return N.reduce((function(t,a){return function(e){for(var t=0,a=Object.entries(p);t0||null!==a.success?n.folderColor:"grey"}}),a.filemeta.length>0?Object(x.jsx)(cc.a,{style:{color:n.palette.success.main}}):null,Object(x.jsx)("pre",{style:{color:a.filebrowserobjs_aggregate.aggregate.count>0||null!==a.success?n.palette.text.primary:n.palette.text.secondary},children:t}),!0===a.success?Object(x.jsx)(kt.a,{title:"Successfully listed contents of folder",children:Object(x.jsx)(Ua.a,{fontSize:"small",style:{color:n.palette.success.main}})}):!1===a.success?Object(x.jsx)(kt.a,{title:"Failed to list contents of folder",children:Object(x.jsx)(No.a,{fontSize:"small",style:{color:n.palette.error.main}})}):null]})},hs=function(e){return e.cellData},fs=function(e){var t=e.cellData;if(""===t||t<=0)return t;var a=new Date(parseInt(t)).toISOString();return a.slice(0,10)+" "+a.slice(11,-1)},Os=function(e){var t=e.cellData;return function(){try{var e=parseInt(t);if(""===t)return"";if(0===e)return"0 B";var a=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,a)).toFixed(2))+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][a]}catch(n){return t}}()},xs=function(e){var t=e.rowData,a=e.onTaskRowAction,n=s.a.useRef(null),i=Object(ee.a)(),r=s.a.useState(!1),c=Object(u.a)(r,2),o=c[0],l=c[1],d=s.a.useState(!1),j=Object(u.a)(d,2),p=j[0],m=j[1],h=s.a.useState(!1),f=Object(u.a)(h,2),g=f[0],y=f[1],_=s.a.useState(!1),k=Object(u.a)(_,2),w=k[0],C=k[1],S=s.a.useState(""),D=Object(u.a)(S,2),I=D[0],$=D[1],P=s.a.useState([]),A=Object(u.a)(P,2),E=A[0],L=A[1],F=Object(pt.a)(us,{onCompleted:function(e){$(e.filebrowserobj_by_pk.permissions),""!==e.filebrowserobj_by_pk.permissions?y(!0):O.b.warning("No permission data available")},fetchPolicy:"network-only"}),N=Object(u.a)(F,1)[0],q=Object(pt.a)(bs,{onCompleted:function(e){0===e.filebrowserobj_by_pk.filemeta.length?O.b.warning("File has no download history"):(L(e.filebrowserobj_by_pk.filemeta),C(!0))},fetchPolicy:"network-only"}),R=Object(u.a)(q,1)[0],B=Object(pe.a)(js,{onCompleted:function(e){O.b.success("updated comment")}}),z=Object(u.a)(B,1)[0],W=function(e,t,a){switch(e){case"A":U[a].click(t);break;case"B":G[a].click(t)}l(!1)},H=function(e){n.current&&n.current.contains(e.target)||l(!1)},U=[{name:"View Permissions",icon:Object(x.jsx)(Ko.a,{style:{paddingRight:"5px"}}),click:function(e){e.stopPropagation(),N({variables:{filebrowserobj_id:t.id}})}},{name:"Download History",icon:Object(x.jsx)(Uo.a,{style:{paddingRight:"5px"}}),click:function(e){e.stopPropagation(),R({variables:{filebrowserobj_id:t.id}})}},{name:"Edit Comment",icon:Object(x.jsx)(_i.a,{style:{paddingRight:"5px"}}),click:function(e){e.stopPropagation(),m(!0)}},{name:"Copy Path to Clipboard",icon:Object(x.jsx)(Yo.a,{style:{paddingRight:"5px"}}),click:function(e){e.stopPropagation(),Object(Zo.a)(t.full_path_text)?O.b.success("Copied text!"):O.b.error("Failed to copy text")}}],G=[{name:"Task File Listing",icon:Object(x.jsx)(Qo.a,{style:{paddingRight:"5px",color:i.palette.warning.main}}),click:function(e){e.stopPropagation(),a({path:t.parent_path_text,host:t.host,filename:t.name_text,uifeature:"file_browser:list"})}},{name:"Task Download",icon:Object(x.jsx)(cc.a,{style:{paddingRight:"5px",color:i.palette.success.main}}),click:function(e){e.stopPropagation(),a({path:t.parent_path_text,host:t.host,filename:t.name_text,uifeature:"file_browser:download"})}},{name:"Task File Removal",icon:Object(x.jsx)(M.a,{style:{paddingRight:"5px",color:i.palette.error.main}}),click:function(e){e.stopPropagation(),a({path:t.parent_path_text,host:t.host,filename:t.name_text,uifeature:"file_browser:remove",getConfirmation:!0})}}];return Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(b.a,{style:{},size:"small","aria-controls":o?"split-button-menu":void 0,"aria-expanded":o?"true":void 0,"aria-haspopup":"menu",onClick:function(e){e.stopPropagation(),l((function(e){return!e}))},color:"primary",variant:"contained",ref:n,children:"Actions"}),Object(x.jsx)(et.a,{open:o,anchorEl:n.current,role:void 0,transition:!0,style:{zIndex:4e3},children:function(e){var t=e.TransitionProps,a=e.placement;return Object(x.jsx)(Xe.a,Object(v.a)(Object(v.a)({},t),{},{style:{transformOrigin:"bottom"===a?"center top":"center bottom"},children:Object(x.jsx)(T.a,{style:{backgroundColor:"dark"===i.palette.type?i.palette.primary.dark:i.palette.primary.light,color:"white"},children:Object(x.jsx)(Ze.a,{onClickAway:H,children:Object(x.jsxs)(at.a,{id:"split-button-menu",children:[U.map((function(e,t){return Object(x.jsxs)(tt.a,{onClick:function(e){return W("A",e,t)},children:[e.icon,e.name]},e.name)})),Object(x.jsx)(ka.a,{}),G.map((function(e,t){return Object(x.jsxs)(tt.a,{onClick:function(e){return W("B",e,t)},children:[e.icon,e.name]},e.name)}))]})})})}))}}),p&&Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"md",open:p,onClose:function(){m(!1)},innerDialog:Object(x.jsx)(Y.b,{title:"Edit File Browser Comment",onSubmit:function(e){z({variables:{filebrowserobj_id:t.id,comment:e}})},value:t.comment,onClose:function(){m(!1)}})}),g&&Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"md",open:g,onClose:function(){y(!1)},innerDialog:Object(x.jsx)(Y.c,{title:"View Permissions Data",leftColumn:"Permission",rightColumn:"Value",value:I,onClose:function(){y(!1)}})}),w&&Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"md",open:w,onClose:function(){C(!1)},innerDialog:Object(x.jsx)(Wo,{title:"Download History",value:E,onClose:function(){C(!1)}})})]})},gs=a(237),ys=a.n(gs),vs=a(317),_s=a(131),ks=Object(be.a)(cs||(cs=Object(_.a)(["\n fragment fileObjData on filebrowserobj {\n access_time\n comment\n deleted\n filemeta {\n id\n }\n host\n id\n is_file\n modify_time\n parent_id\n size\n success\n task {\n callback {\n id\n }\n operator {\n id\n }\n }\n full_path_text\n name_text\n timestamp\n parent_path_text\n filebrowserobjs_aggregate {\n aggregate {\n count\n }\n }\n }\n"]))),ws=Object(be.a)(os||(os=Object(_.a)(["\n ","\n query myRootFolderQuery($operation_id: Int!) {\n filebrowserobj(where: { operation_id: { _eq: $operation_id }, parent_id: { _is_null: true } }) {\n ...fileObjData\n }\n }\n"])),ks),Cs=Object(be.a)(ss||(ss=Object(_.a)(["\n ","\n query myFolderQuery($filebrowserobj_id: Int!, $operation_id: Int!) {\n filebrowserobj(\n where: { parent_id: { _eq: $filebrowserobj_id }, operation_id: { _eq: $operation_id } }\n order_by: { is_file: asc, name: asc }\n ) {\n ...fileObjData\n }\n }\n"])),ks),Ss=Object(be.a)(ls||(ls=Object(_.a)(["\n ","\n subscription liveData($now: timestamp!, $operation_id: Int!) {\n filebrowserobj(\n distinct_on: id\n order_by: { id: desc }\n where: { timestamp: { _gt: $now }, operation_id: { _eq: $operation_id } }\n limit: 1\n ) {\n ...fileObjData\n }\n }\n"])),ks),Ds=Object(be.a)(ds||(ds=Object(_.a)(["\n ","\n query myDeltaFilesQuery($lastTime: timestamp!, $now: timestamp!, $operation_id: Int!) {\n filebrowserobj(\n distinct_on: id\n order_by: { id: desc }\n where: {\n _and: [{ timestamp: { _gte: $lastTime } }, { timestamp: { _lte: $now } }]\n operation_id: { _eq: $operation_id }\n }\n ) {\n ...fileObjData\n }\n }\n"])),ks);function Is(e){var t=s.a.useState("File Browser: "+e.tabInfo.callbackID),a=Object(u.a)(t,2),n=a[0],i=a[1],r=s.a.useState(!1),c=Object(u.a)(r,2),l=c[0],d=c[1];Object(o.useEffect)((function(){""!==e.tabInfo.customDescription&&void 0!==e.tabInfo.customDescription?i(e.tabInfo.customDescription):i("File Browser: "+e.tabInfo.callbackID)}),[e.tabInfo.payloadDescription,e.tabInfo.customDescription]);return Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(go.b,Object(v.a)({label:n,onContextMenu:function(e){e.stopPropagation(),e.preventDefault(),d(!0)}},e)),l&&Object(x.jsx)(Y.a,{fullWidth:!0,open:l,onClose:function(){d(!1)},innerDialog:Object(x.jsx)(Y.b,{title:"Edit Tab's Description",onClose:function(){d(!1)},value:n,onSubmit:function(t){e.onEditTabDescription(e.tabInfo,t)}})})]})}var Ts,$s,Ps,As,Es,Ls,Fs,Ns=function(e){var t,a,n,i,r=e.index,c=e.value,l=e.tabInfo,d=Object(f.a)(h.b),b=s.a.useRef([]),j=s.a.useState(!1),p=Object(u.a)(j,2),m=p[0],g=p[1],_=s.a.useState([]),k=Object(u.a)(_,2),w=k[0],C=k[1],S=s.a.useState([]),D=Object(u.a)(S,2),I=D[0],T=D[1],$=s.a.useRef({}),P=s.a.useState({task:{callback:{id:l.callbackID}},host:l.host,full_path_text:"."}),A=Object(u.a)(P,2),E=A[0],L=A[1],F=s.a.useRef(),N=s.a.useRef((new Date).toISOString()),q=s.a.useState(!1),R=Object(u.a)(q,2),B=R[0],M=R[1],z=s.a.useState(!1),W=Object(u.a)(z,2),H=W[0],U=W[1],G=s.a.useRef({parameters:"",ui_feature:"file_browser:list"}),K=s.a.useRef(!0),V=Object(je.a)(ws,{variables:{operation_id:d.user.current_operation_id},onCompleted:function(e){var t=e.filebrowserobj.reduce((function(e,t){for(var a=0;a0&&void 0!==$.current.id&&(e.filebrowserobj[0].parent_id===$.current.id||$.current.host===e.filebrowserobj[0].host)&&T(Object.values($.current.children))},onError:function(e){console.log(e)}})),Y=Object(u.a)(J,1)[0];Object(o.useEffect)((function(){b.current=w}),[w]),Object(o.useEffect)((function(){$.current=E}),[E]);var Z=Object(pt.a)(Cs,{onError:function(e){console.error(e)},fetchPolicy:"no-cache",notifyOnNetworkStatusChange:!0,onCompleted:function(e){var t=!1;if(0===e.filebrowserobj.length)return O.b.dismiss(),null===E.success?O.b.info("Folder hasn't been listed yet"):O.b.info("Empty folder"),T(Object.values(E.children)),void g(!1);O.b.dismiss(),O.b.success("Fetched data");var a=w.map((function(a){if(e.filebrowserobj[0].host===a.host){var n=Object(v.a)({},a);return t=!0,ee(n,e.filebrowserobj[0].parent_id,e.filebrowserobj),n}return Object(v.a)({},a)}));t||(a.push(e.filebrowserobj[0]),ee(e.filebrowserobj[0],e.filebrowserobj[0].parent_id,e.filebrowserobj)),C(a),T(Object.values(E.children)),g(!1)}}),X=Object(u.a)(Z,1)[0],ee=Object(o.useCallback)((function(e,t,a){if(t===e.id){for(var n=0;n0?(Y({variables:{operation_id:d.user.current_operation_id,now:(new Date).toISOString(),lastTime:N.current}}),void(null!==a.data.filebrowserobj[0]&&void 0!==a.data.filebrowserobj[0]&&(N.current=a.data.filebrowserobj[0].timestamp))):void 0}),[ee]);return s.a.useEffect((function(){return function(){K.current=!1}}),[]),Object(x.jsxs)(go.c,{index:r,value:c,children:[Object(x.jsxs)("div",{style:{display:"flex",flexGrow:1,overflowY:"auto"},children:[Object(x.jsxs)("div",{style:{width:"30%",overflow:"auto",flexGrow:1},children:[Object(x.jsx)(vs.a,{open:m,style:{zIndex:2,position:"absolute"},invisible:!0,children:Object(x.jsx)(oa.a,{color:"inherit"})}),Object(x.jsx)(zo,{showDeletedFiles:B,treeRoot:w,fetchFolderData:ae,setTableData:te})]}),Object(x.jsxs)("div",{style:{width:"60%",display:"flex",flexDirection:"column",flexGrow:1},children:[Object(x.jsx)("div",{style:{flexGrow:0},children:Object(x.jsx)(qs,{selectedFolderData:E,onListFilesButton:function(e){var t=e.fullPath,a=e.hostname;G.current={parameters:{path:t,host:a,file:""},ui_feature:"file_browser:list"},U(!0)},onUploadFileButton:function(e){var t=e.hostname,a=e.fullPath;G.current={parameters:{path:a,host:t},ui_feature:"file_browser:upload",openDialog:!0},U(!0)},onChangeCallbackID:function(e){F.current=e},toggleShowDeletedFiles:function(e){M(e)},initialCallbackID:l.callbackID,subscribeToNewFileBrowserObjs:function(){var e;Q({document:Ss,variables:{now:(new Date).toISOString(),operation_id:(null===d||void 0===d||null===(e=d.user)||void 0===e?void 0:e.current_operation_id)||0},updateQuery:ie})}})}),Object(x.jsxs)("div",{style:{flexGrow:1},children:[Object(x.jsx)(vs.a,{open:m,style:{zIndex:2,position:"absolute"},invisible:!0,children:Object(x.jsx)(oa.a,{color:"inherit"})}),Object(x.jsx)(ps,{showDeletedFiles:B,onRowDoubleClick:ae,selectedFolder:I,onTaskRowAction:ne})]})]})]}),H&&Object(x.jsx)(_s.a,{ui_feature:(null===(t=G.current)||void 0===t?void 0:t.ui_feature)||" ",callback_id:F.current,parameters:(null===(a=G.current)||void 0===a?void 0:a.parameters)||"",tasking_location:"file_browser",openDialog:(null===(n=G.current)||void 0===n?void 0:n.openDialog)||!1,getConfirmation:(null===(i=G.current)||void 0===i?void 0:i.getConfirmation)||!1,onTasked:function(){return U(!1)}})]})},qs=function(e){var t=e.selectedFolderData,a=e.onListFilesButton,n=e.initialCallbackID,i=e.onUploadFileButton,r=e.onChangeCallbackID,c=e.subscribeToNewFileBrowserObjs,l=e.toggleShowDeletedFiles,d=Object(ee.a)(),b=s.a.useState(""),p=Object(u.a)(b,2),m=p[0],h=p[1],f=s.a.useState(""),g=Object(u.a)(f,2),y=g[0],v=g[1],_=s.a.useState(n),k=Object(u.a)(_,2),w=k[0],C=k[1],S=s.a.useState(!1),D=Object(u.a)(S,2),I=D[0],T=D[1],$=s.a.useState(!0),P=Object(u.a)($,2),A=P[0],L=P[1];Object(o.useEffect)((function(){void 0!==t.host&&h(t.host),void 0!==t.full_path_text&&v(t.full_path_text),A||void 0!==t.task&&C(t.task.callback.id)}),[t,A]);var F=function(){""!==y?w>0?a({callbackID:w,fullPath:y,hostname:m}):O.b.warning("Must select a folder or set a callback number first"):O.b.warning("Must provide a path to list")};Object(o.useEffect)((function(){r(w)}),[w]),Object(o.useEffect)((function(){c()}),[]);return Object(x.jsxs)(ft.a,{container:!0,spacing:0,style:{paddingTop:"10px"},children:[Object(x.jsx)(ft.a,{item:!0,xs:4,children:Object(x.jsx)(j.a,{placeholder:"Host Name",value:m,onChange:function(e,t){h(t)},name:"Host Name"})}),Object(x.jsx)(ft.a,{item:!0,xs:7,children:Object(x.jsx)(j.a,{placeholder:"Path",value:y,onEnter:F,onChange:function(e,t){v(t)},name:"Path",InputProps:{endAdornment:Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(kt.a,{title:"Task callback to list contents",children:Object(x.jsx)(E.a,{style:{padding:"3px"},onClick:F,children:Object(x.jsx)(ko.a,{style:{color:d.palette.info.main}})})}),Object(x.jsx)(kt.a,{title:"Upload file to folder via callback",children:Object(x.jsx)(E.a,{style:{padding:"3px"},onClick:function(){w>0?i({fullPath:y,hostname:m}):O.b.warning("Must select a folder or set a callback number first")},children:Object(x.jsx)(vo.a,{style:{color:d.palette.info.main}})})}),Object(x.jsx)(kt.a,{title:I?"Hide Deleted Files":"Show Deleted Files",children:Object(x.jsx)(E.a,{style:{padding:"3px"},onClick:function(){T(!I),l(!I)},children:I?Object(x.jsx)(Ko.a,{style:{color:d.palette.info.main}}):Object(x.jsx)(ys.a,{style:{color:d.palette.info.main}})})})]}),style:{padding:0}}})}),Object(x.jsx)(ft.a,{item:!0,xs:1,children:Object(x.jsx)(j.a,{type:"number",placeholder:"Callback",name:"Callback",onChange:function(e,t){L(!0),C(parseInt(t))},value:w,InputProps:{endAdornment:A?Object(x.jsx)(kt.a,{title:"Change Callback Based on Data Origin",children:Object(x.jsx)(E.a,{style:{padding:"3px"},onClick:function(){L(!1),t.task?C(t.task.callback.id):(C(0),r(0))},children:Object(x.jsx)(Bc.a,{style:{color:d.palette.info.main}})})}):Object(x.jsx)(kt.a,{title:"Manually Update Callback Number to Prevent Data Origin Tracking",children:Object(x.jsx)(E.a,{style:{padding:"3px"},children:Object(x.jsx)(Co.a,{disabled:!0,style:{color:d.palette.warning.main}})})}),style:{padding:0,margin:0}}})})]})},Rs=a(295),Bs=a.n(Rs),Ms=["onSelectNode","onExpandNode","onCollapseNode"],zs=function(e){e.onSelectNode;var t=e.onExpandNode,a=e.onCollapseNode,n=Object(mo.a)(e,Ms),i=n.data[n.index],r=Object(ee.a)(),c=function(e){e.stopPropagation(),i.isOpen?a(i.id,i):t(i.id,i)};return Object(x.jsx)("div",{style:n.style,children:Object(x.jsxs)("div",{style:{display:"flex",marginBottom:"2px",flexGrow:1},children:[Object(y.a)(Array(i.data.depth)).map((function(e,t){return Object(x.jsx)("div",{style:{borderLeft:"2px dashed ".concat(Object(So.c)(r.palette.text.primary,.4)),marginLeft:15,paddingRight:15,display:"inline-block"}},"folder"+i.data.id+"lines"+t)})),0===i.data.children.length?Object(x.jsx)(Lo.a,{style:{marginLeft:"3px"}}):i.isOpen?Object(x.jsx)(N.a,{style:{marginLeft:"3px"},onClick:c}):Object(x.jsx)(Bs.a,{style:{marginLeft:"3px"},onClick:c}),Object(x.jsxs)(L.a,{style:{paddingLeft:"10px"},component:"pre",children:[i.data.process_id," - ",i.data.name]})]})})},Ws=function(e){var t=e.nodes,a=e.openNodes,n=e.onSelectNode,i=e.onExpandNode,r=e.onCollapseNode,c=e.display_name,s=Object(o.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return!0===a[e.id]?[{id:e.id,name:e[c],depth:t,isLeaf:!Array.isArray(e.children)||0===e.children.length,isOpen:!0,data:Object(v.a)(Object(v.a)({},e),{},{depth:t})}].concat(Object(y.a)(Object.values(e.children).reduce((function(e,a){return a.is_file?Object(y.a)(e):[].concat(Object(y.a)(e),[s(a,t+1)])}),[]).flat())):[{id:e.id,name:e[c],depth:t,isLeaf:!Array.isArray(e.children)||0===e.children.length,isOpen:!1,data:Object(v.a)(Object(v.a)({},e),{},{depth:t})}]}),[a]),l=Object(o.useMemo)((function(){return t.map((function(e){return s(e)})).flat()}),[s,t]);return Object(x.jsx)(ai.a,{children:function(e){return Object(x.jsx)(ti.a,{itemData:l,direction:"vertical",height:e.height-10,width:e.width-10,itemCount:l.length,itemSize:24,children:function(e){return Object(x.jsx)(zs,Object(v.a)(Object(v.a)({},e),{},{onSelectNode:n,onExpandNode:i,onCollapseNode:r}))}})}})},Hs=function(e){var t=e.treeRoot,a=s.a.useState({}),n=Object(u.a)(a,2),i=n[0],r=n[1];return s.a.useEffect((function(){var e={},a=function t(a){var n;e[a.id]=!0,null===a||void 0===a||null===(n=a.children)||void 0===n||n.forEach((function(e){return t(e)}))};t.forEach((function(e){return a(e)})),r(e)}),[t]),0===t.length?Object(x.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",left:"50%",top:"50%"},children:"No Process Listing Data"}):Object(x.jsx)(Ws,{nodes:t,display_name:"name",openNodes:i,onSelectNode:function(e,t){console.log("onSelectNode",e,t)},onExpandNode:function(e,t){r(Object(v.a)(Object(v.a)({},i),{},Object(jt.a)({},e,!0)))},onCollapseNode:function(e,t){r(Object(v.a)(Object(v.a)({},i),{},Object(jt.a)({},e,!1)))}})},Us=Object(be.a)(Ts||(Ts=Object(_.a)(["\nquery getDetailed($process_id: Int!){\n process_by_pk(id: $process_id){\n id\n command_line\n description\n signer\n start_time\n name\n bin_path\n }\n}\n"]))),Gs=Object(be.a)($s||($s=Object(_.a)(["\nquery getDetailed($process_id: Int!){\n process_by_pk(id: $process_id){\n id\n tokens(where: {deleted: {_eq: false}}) {\n Address\n AppContainer\n AppContainerNumber\n AppContainerSid\n AppId\n AppModelPolicies\n AppModelPolicyDictionary\n AttributesFlags\n AuditPolicy\n AuthenticationId_id\n BnoIsolationPrefix\n CanSynchronize\n Capabilities\n CreationTime\n DefaultDacl\n DenyOnlyGroups\n DeviceClaimAttributes\n DeviceGroups\n Elevated\n ElevationType\n EnabledGroups\n ExpirationTime\n Filtered\n Flags\n FullPath\n GrantedAccess\n GrantedAccessGeneric\n GrantedAccessMask\n GroupCount\n Groups\n Handle\n HandleReferenceCount\n HasRestrictions\n ImpersonationLevel\n Inherit\n IntegrityLevel\n IntegrityLevelSid\n IsClosed\n IsContainer\n IsPseudoToken\n IsRestricted\n IsSandbox\n LogonSid\n LowPrivilegeAppContainer\n MandatoryPolicy\n ModifiedId\n Name\n NoChildProcess\n NotLow\n NtType\n NtTypeName\n Owner\n Origin\n PackageFullName\n PackageIdentity\n PackageName\n PointerReferenceCount\n PrimaryGroup\n PrivateNamespace\n Privileges\n ProcessUniqueAttribute\n ProtectFromClose\n Restricted\n RestrictedDeviceClaimAttributes\n RestrictedDeviceGroups\n RestrictedSids\n RestrictedSidsCount\n RestrictedUserClaimAttributes\n SandboxInert\n Sddl\n SecurityAttributes\n SecurityDescriptor\n SessionId\n Source\n ThreadID\n TokenId\n TokenType\n TrustLevel\n UIAccess\n User\n UserClaimAttributes\n VirtualizationAllowed\n VirtualizationEnabled\n WriteRestricted\n callbacktokens {\n callback_id\n }\n logonsession {\n id\n }\n task_id\n timestamp_created\n }\n }\n}\n"]))),Ks=function(e){var t=s.a.useState([]),a=Object(u.a)(t,2),n=a[0],i=a[1],r=s.a.useState({sortKey:null,sortDirection:null,sortType:null}),c=Object(u.a)(r,2),l=c[0],d=c[1],b=s.a.useState(!1),j=Object(u.a)(b,2),p=j[0],m=j[1],h=s.a.useState({}),f=Object(u.a)(h,2),g=f[0],_=f[1],k=s.a.useState({}),w=Object(u.a)(k,2),C=w[0],S=w[1],D=s.a.useState({visible:["Actions","PPID","PID","Arch","Name","User"],hidden:["Path"]}),I=Object(u.a)(D,2),T=I[0],$=I[1],P=s.a.useState(!1),A=Object(u.a)(P,2),E=A[0],L=A[1],F=s.a.useMemo((function(){return[{name:"Actions",width:100,disableAutosize:!0,disableSort:!0,disableFilterMenu:!0},{name:"PPID",type:"number",key:"parent_process_id",width:75},{name:"PID",type:"number",key:"process_id",width:75},{name:"Arch",type:"string",key:"architecture",width:75},{name:"Name",type:"string",key:"name",fillWidth:!0},{name:"User",type:"string",key:"user",fillWidth:!0},{name:"Path",type:"string",key:"bin_path",width:200}].reduce((function(e,t){return T.visible.includes(t.name)?g[t.key]&&String(g[t.key]).length>0?[].concat(Object(y.a)(e),[Object(v.a)(Object(v.a)({},t),{},{filtered:!0})]):[].concat(Object(y.a)(e),[Object(v.a)({},t)]):Object(y.a)(e)}),[])}),[g,T]);Object(o.useEffect)((function(){i(Object(y.a)(e.selectedFolder))}),[e.selectedFolder]);var N=s.a.useMemo((function(){if(null===l.sortKey||null===l.sortType)return n;var e=Object(y.a)(n);return"number"===l.sortType||"size"===l.sortType||"date"===l.sortType?e.sort((function(e,t){return parseInt(e[l.sortKey])>parseInt(t[l.sortKey])?1:-1})):"string"===l.sortType&&e.sort((function(e,t){return e[l.sortKey].toLowerCase()>t[l.sortKey].toLowerCase()?1:-1})),"DESC"===l.sortDirection&&e.reverse(),e}),[n,l]),q=s.a.useMemo((function(){return N.reduce((function(t,a){return function(e){for(var t=0,a=Object.entries(g);t0){var t=e.process[0].task.processes.reduce((function(e,t){if(null===t.parent_process_id||t.parent_process_id<=0)return[].concat(Object(y.a)(e),[Object(v.a)(Object(v.a)({},t),{},{children:[]})]);var a=Object(y.a)(e).map((function(e){return B(e,t),Object(v.a)({},e)}));return Object(y.a)(a)}),[]);m(t),w(e.process[0].task.processes),E(e.process[0].task.callback.payload.os),I(e.process[0].task),O.b.dismiss(),O.b.success("Successfully fetched process data")}else O.b.dismiss(),O.b.warning("No Newer Process Sets")}}),z=Object(u.a)(M,1)[0],W=Object(pt.a)(rl,{onError:function(e){console.error(e)},fetchPolicy:"network-only",onCompleted:function(e){if(e.process.length>0){var t=e.process[0].task.processes.reduce((function(e,t){if(null===t.parent_process_id||t.parent_process_id<=0)return[].concat(Object(y.a)(e),[Object(v.a)(Object(v.a)({},t),{},{children:[]})]);var a=Object(y.a)(e).map((function(e){return B(e,t),Object(v.a)({},e)}));return Object(y.a)(a)}),[]);m(t),w(e.process[0].task.processes),E(e.process[0].task.callback.payload.os),I(e.process[0].task),O.b.dismiss(),O.b.success("Successfully fetched process data")}else O.b.dismiss(),O.b.warning("No Earlier Process Sets")}}),H=Object(u.a)(W,1)[0];Object(je.a)(cl,{variables:{operation_id:l.user.current_operation_id,host:c.host},onCompleted:function(e){null===e.process_aggregate.aggregate.max.task_id?(O.b.warning("No Process Data for "+c.host),I({callback:{host:c.host,id:c.callbackID},id:0})):(O.b.info("Fetching latest process data for "+c.host),z({variables:{operation_id:l.user.current_operation_id,host:c.host,task_id:e.process_aggregate.aggregate.max.task_id-1}}))},fetchPolicy:"network-only"}),Object(o.useEffect)((function(){d.current=p}),[p]);return Object(x.jsx)(go.c,{index:i,value:r,children:Object(x.jsxs)("div",{style:{display:"flex",flexGrow:1,overflowY:"auto"},children:[Object(x.jsx)("div",{style:{width:"30%",overflow:"auto",flexGrow:1},children:Object(x.jsx)(Hs,{treeRoot:p})}),Object(x.jsxs)("div",{style:{width:"60%",display:"flex",flexDirection:"column",overflow:"auto",flexGrow:1},children:[Object(x.jsx)(dl,{onListFilesButton:function(e){e.callbackID;R.current={parameters:"",ui_feature:"process_browser:list"},q(!0)},onNextButton:function(e){var t=e.task_id;z({variables:{operation_id:l.user.current_operation_id,host:c.host,task_id:t}})},onPreviousButton:function(e){var t=e.task_id;H({variables:{operation_id:l.user.current_operation_id,host:c.host,task_id:t}})},onDiffButton:function(e){e.task_id},initialCallbackID:c.callbackID,onChangeCallbackID:function(e){T.current=e},taskInfo:D}),Object(x.jsx)(Ks,{selectedFolder:k,onTaskRowAction:function(e){var t=e.process_id,a=e.architecture,n=e.uifeature;R.current={parameters:{process_id:t,architecture:a},ui_feature:n,openDialog:!0},q(!0),console.log(t,a,n)},os:A})]}),N&&Object(x.jsx)(_s.a,{ui_feature:(null===(t=R.current)||void 0===t?void 0:t.ui_feature)||" ",callback_id:T.current,parameters:(null===(a=R.current)||void 0===a?void 0:a.parameters)||"",openDialog:(null===(n=R.current)||void 0===n?void 0:n.openDialog)||!1,onTasked:function(){return q(!1)}})]})})},dl=function(e){var t=e.onListFilesButton,a=e.onNextButton,n=e.onPreviousButton,i=e.initialCallbackID,r=(e.onDiffButton,e.onChangeCallbackID),c=e.taskInfo,l=Object(ee.a)(),d=s.a.useState(""),b=Object(u.a)(d,2),p=b[0],m=b[1],h=s.a.useState(i),f=Object(u.a)(h,2),g=f[0],y=f[1],v=s.a.useState(!0),_=Object(u.a)(v,2),k=_[0],w=_[1],C=s.a.useState(0),S=Object(u.a)(C,2),D=S[0],I=S[1];Object(o.useEffect)((function(){void 0!==c.callback&&(m(c.callback.host),I(c.id)),k||(void 0!==c.callback?y(c.callback.id):y(0))}),[c,k]);return Object(o.useEffect)((function(){r(g)}),[g,r]),Object(x.jsxs)(ft.a,{container:!0,spacing:0,style:{paddingTop:"10px"},children:[Object(x.jsx)(ft.a,{item:!0,xs:10,children:Object(x.jsx)(j.a,{placeholder:"Host Name",value:p,disabled:!0,onChange:function(){},name:"Host Name",InputProps:{endAdornment:Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(kt.a,{title:"Fetch Previous Saved Process Listing",children:Object(x.jsx)(E.a,{style:{padding:"3px"},onClick:function(){O.b.info("Fetching previous process data..."),n({task_id:c.id})},children:Object(x.jsx)(Xs.a,{style:{color:l.palette.info.main}})})}),Object(x.jsx)(kt.a,{title:"Task Callback to List Processes",children:Object(x.jsx)(E.a,{style:{padding:"3px"},onClick:function(){g>0?t({callbackID:g}):O.b.warning("Must set a callback number to task first")},children:Object(x.jsx)(ko.a,{style:{color:l.palette.info.main}})})}),Object(x.jsx)(kt.a,{title:"Fetch Next Saved Process Listing",children:Object(x.jsx)(E.a,{style:{padding:"3px"},onClick:function(){O.b.info("Fetching next process data..."),a({task_id:c.id})},children:Object(x.jsx)(Ys.a,{style:{color:l.palette.info.main}})})}),Object(x.jsx)(kt.a,{title:"Compare Previous Listing",children:Object(x.jsx)(E.a,{style:{padding:"3px"},onClick:function(){g>0?a({callbackID:g}):O.b.warning("Must select a callback number first")},children:Object(x.jsx)(tl.a,{style:{color:l.palette.info.main}})})})]})}})}),Object(x.jsx)(ft.a,{item:!0,xs:1,children:Object(x.jsx)(j.a,{type:"number",placeholder:"Callback",name:"Callback",onChange:function(e,t,a){w(!0),y(parseInt(t))},value:g,InputProps:{endAdornment:k?Object(x.jsx)(kt.a,{title:"Change Callback Based on Data Origin",children:Object(x.jsx)(E.a,{style:{padding:"3px"},onClick:function(){w(!1),void 0!==c.callback?y(c.callback.id):y(0)},children:Object(x.jsx)(Bc.a,{style:{color:l.palette.info.main}})})}):Object(x.jsx)(kt.a,{title:"Manually Update Callback Number to Prevent Data Origin Tracking",children:Object(x.jsx)(E.a,{style:{padding:"3px"},children:Object(x.jsx)(Co.a,{disabled:!0,style:{color:l.palette.warning.main}})})}),style:{padding:0,margin:0}}})}),Object(x.jsx)(ft.a,{item:!0,xs:1,children:Object(x.jsx)(j.a,{type:"number",name:"Task Data",disabled:!0,value:D,onChange:function(){}})})]})},ul=Object(be.a)(sl||(sl=Object(_.a)(["\n subscription CallbacksSubscription($operation_id: Int!) {\n callbacktoken(\n where: {\n deleted: { _eq: false }\n callback: { operation_id: { _eq: $operation_id }, active: { _eq: true } }\n }\n ) {\n token {\n TokenId\n id\n User\n description\n }\n callback {\n id\n }\n id\n }\n }\n"]))),bl=Object(Se.a)((function(e){return{root:{width:"100%"}}}));function jl(e){var t,a=e.onCloseTab,n=e.openTabs,i=e.clickedTabId,r=e.clearSelectedTab,c=e.onEditTabDescription,l=bl(),d=Object(f.a)(h.b),b=s.a.useState([]),j=Object(u.a)(b,2),p=j[0],m=j[1],O=s.a.useRef(!0);Object(Me.a)(ul,{variables:{operation_id:(null===d||void 0===d||null===(t=d.user)||void 0===t?void 0:t.current_operation_id)||0},fetchPolicy:"network-only",shouldResubscribe:!0,onSubscriptionData:function(e){var t=e.subscriptionData;O.current&&m(t.data.callbacktoken)}});var g=s.a.useState(0),y=Object(u.a)(g,2),v=y[0],_=y[1];s.a.useEffect((function(){return function(){O.current=!1}}),[]);var k=function(e){var t=e.tabID,n=e.index;_(n>0?n-1:0),a({tabID:t,index:n})};return Object(o.useEffect)((function(){for(var e=0;et.cmd?1:t.cmd>e.cmd?-1:0}));r(a);var n=e.callback_by_pk.payload.buildparameterinstances.map((function(e){return{description:e.buildparameter.description,value:e.parameter}})).sort((function(e,t){return e.description>t.description?1:t.description>e.description?-1:0}));d(n);var i=e.callback_by_pk.c2profileparametersinstances.reduce((function(e,t){return t.c2profile.name in e?Object(v.a)(Object(v.a)({},e),{},Object(jt.a)({},t.c2profile.name,[].concat(Object(y.a)(e[t.c2profile.name]),[{description:t.c2profileparameter.description,value:t.value,enc_key:t.enc_key_base64,dec_key:t.dec_key_base64,parameter_type:t.c2profileparameter.parameter_type}]))):Object(v.a)(Object(v.a)({},e),{},Object(jt.a)({},t.c2profile.name,[{description:t.c2profileparameter.description,value:t.value,enc_key:t.enc_key_base64,dec_key:t.dec_key_base64,parameter_type:t.c2profileparameter.parameter_type}]))}),{}),c=Object.keys(i).reduce((function(e,t){return[].concat(Object(y.a)(e),[{c2_profile:t,parameters:i[t].sort((function(e,t){return e.description>t.description?1:t.description>e.description?-1:0}))}])}),[]);h(c)}}),O=f.loading,g=f.error,_=f.data;return O?Object(x.jsx)(Ae.a,{style:{marginTop:"10px"}}):g?(console.error(g),Object(x.jsx)("div",{children:"Error!"})):Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(V.a,{id:"form-dialog-title",children:"Callback Configuration"}),Object(x.jsxs)(G.a,{dividers:!0,children:[Object(x.jsx)(T.a,{elevation:5,style:{backgroundColor:t.pageHeader.main,color:t.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:Object(x.jsx)(L.a,{variant:"h6",style:{textAlign:"left",display:"inline-block",marginLeft:"20px",color:t.pageHeaderColor},children:"Callback Information"})}),Object(x.jsx)(eo,Object(v.a)({},_.callback_by_pk)),Object(x.jsx)(T.a,{elevation:5,style:{backgroundColor:t.pageHeader.main,color:t.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:Object(x.jsx)(L.a,{variant:"h6",style:{textAlign:"left",display:"inline-block",marginLeft:"20px",color:t.pageHeaderColor},children:"Payload Information"})}),Object(x.jsxs)(k.a,{size:"small","aria-label":"details",style:{overflowWrap:"break-word"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"Payload Info"}),Object(x.jsx)(C.a,{children:"Value"})]})}),Object(x.jsxs)(w.a,{children:[Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"Payload Type"}),Object(x.jsx)(C.a,{children:_.callback_by_pk.payload.payloadtype.ptype})]}),Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"Selected OS"}),Object(x.jsx)(C.a,{children:_.callback_by_pk.payload.os})]}),Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"UUID"}),Object(x.jsx)(C.a,{children:_.callback_by_pk.payload.uuid})]}),_.callback_by_pk.payload.filemetum?Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"Filename"}),Object(x.jsx)(C.a,{children:_.callback_by_pk.payload.filemetum.filename_text})]},"filename_text"):null,Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"Download URL"}),Object(x.jsx)(C.a,{children:window.location.origin+"/direct/download/"+_.callback_by_pk.payload.filemetum.agent_file_id})]}),Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"SHA1"}),Object(x.jsx)(C.a,{children:_.callback_by_pk.payload.filemetum.sha1})]}),Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"MD5"}),Object(x.jsx)(C.a,{children:_.callback_by_pk.payload.filemetum.md5})]})]})]}),Object(x.jsx)(T.a,{elevation:5,style:{backgroundColor:t.pageHeader.main,color:t.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:Object(x.jsx)(L.a,{variant:"h6",style:{textAlign:"left",display:"inline-block",marginLeft:"20px",color:t.pageHeaderColor},children:"Build Parameters"})}),Object(x.jsxs)(k.a,{size:"small","aria-label":"details",style:{overflowWrap:"break-word"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{style:{width:"30%"},children:"Parameter"}),Object(x.jsx)(C.a,{children:"Value"})]})}),Object(x.jsx)(w.a,{children:l.map((function(e,t){return Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{children:e.description}),Object(x.jsx)(C.a,{children:e.value})]},"buildprop"+t+"for"+_.callback_by_pk.payload.id)}))})]}),m.map((function(e){return Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(T.a,{elevation:5,style:{backgroundColor:t.pageHeader.main,color:t.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:Object(x.jsx)(L.a,{variant:"h6",style:{textAlign:"left",display:"inline-block",marginLeft:"20px",color:t.pageHeaderColor},children:e.c2_profile})}),Object(x.jsxs)(k.a,{size:"small","aria-label":"details",style:{overflowWrap:"break-word"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{style:{width:"30%"},children:"Parameter"}),Object(x.jsx)(C.a,{children:"Value"})]})}),Object(x.jsx)(w.a,{style:{whiteSpace:"pre"},children:e.parameters.map((function(t,a){return Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:t.description}),Object(x.jsx)(C.a,{children:"Dictionary"===t.parameter_type||"Array"===t.parameter_type?JSON.stringify(JSON.parse(t.value),null,2):t.value})]},"c2frag"+_.callback_by_pk.payload.id+e.c2_profile+a)}))})]})]},"c2frag"+_.callback_by_pk.payload.id+e.c2_profile)})),Object(x.jsx)(T.a,{elevation:5,style:{backgroundColor:t.pageHeader.main,color:t.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:Object(x.jsx)(L.a,{variant:"h6",style:{textAlign:"left",display:"inline-block",marginLeft:"20px",color:t.pageHeaderColor},children:"Loaded Commands"})}),Object(x.jsxs)(k.a,{size:"small","aria-label":"details",style:{overflowWrap:"break-word"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{children:"Command Name"}),Object(x.jsx)(C.a,{children:"Mythic Version"}),Object(x.jsx)(C.a,{children:"Loaded Version"}),Object(x.jsx)(C.a,{children:"Documentation"})]})}),Object(x.jsx)(w.a,{children:i.map((function(e){return Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:e.cmd}),Object(x.jsx)(C.a,{children:e.mythic}),Object(x.jsx)(C.a,{children:e.payload}),Object(x.jsx)(C.a,{children:Object(x.jsx)(b.a,{variant:"contained",color:"primary",target:"_blank",href:"/docs/agents/"+_.callback_by_pk.payload.payloadtype.ptype+"/commands/"+e.cmd,children:"Docs"})})]},e.cmd+_.callback_by_pk.payload.id)}))})]})]}),Object(x.jsx)(U.a,{children:Object(x.jsx)(b.a,{onClick:e.onClose,variant:"contained",color:"primary",children:"Close"})})]})}var Zl,Xl=Object(be.a)($l||($l=Object(_.a)(['\nquery callbacksAndFeatures($operation_id: Int!) {\n callback(where: {operation_id: {_eq: $operation_id}, active: {_eq: true}}, order_by: {id: asc}) {\n loadedcommands(where: {command: {supported_ui_features: {_ilike: "%callback_table%"}}}) {\n command {\n supported_ui_features\n }\n }\n id\n host\n user\n process_name\n pid\n }\n}']))),ed=Object(Se.a)((function(e){return{root:{margin:"auto"},paper:{width:200,height:500},button:{margin:e.spacing(.5,0)},divider:{backgroundColor:"rgb(100, 170, 204)",border:"2px solid rgba(100, 170, 204)"}}}));function td(e,t){return e.filter((function(e){return-1===t.indexOf(e)}))}function ad(e,t){return e.filter((function(e){return-1!==t.indexOf(e)}))}function nd(e){var t,a,n,i,r,c,o=e.onClose,l=Object(f.a)(h.b),d=s.a.useState([]),j=Object(u.a)(d,2),p=j[0],m=j[1],O=s.a.useState(""),g=Object(u.a)(O,2),_=g[0],k=g[1],w=ed(),C=s.a.useState([]),S=Object(u.a)(C,2),D=S[0],I=S[1],$=s.a.useState([]),P=Object(u.a)($,2),A=P[0],E=P[1],L=s.a.useState([]),F=Object(u.a)(L,2),N=F[0],q=F[1],R=ad(D,A),B=ad(D,N),M=s.a.useRef(null),z=s.a.useState(!1),W=Object(u.a)(z,2),H=W[0],K=W[1],Q=s.a.useRef({}),J=s.a.useRef([]),Y=s.a.useRef(!1),Z=s.a.useRef(null);Object(je.a)(Xl,{variables:{operation_id:(null===l||void 0===l||null===(t=l.user)||void 0===t?void 0:t.current_operation_id)||0},fetchPolicy:"no-cache",onCompleted:function(e){var t=e.callback.map((function(e){var t=e.loadedcommands.reduce((function(e,t){var a=t.command.supported_ui_features.split("\n"),n=Object(y.a)(e);return a.forEach((function(e){!n.includes(e)&&e.startsWith("callback_table")&&n.push(e)})),Object(y.a)(n)}),[]),a="".concat(e.id," - ").concat(e.user,"@").concat(e.host," (").concat(e.pid,")");return Object(v.a)(Object(v.a)({},e),{},{features:t,display:a})}));E(t)}}),s.a.useEffect((function(){var e=[];if(N.length>=1){e=Object(y.a)(N[0].features);for(var t=1;t0?k(e[0]):k("")}),[N]);var X=function(e){return function(){var t=D.indexOf(e),a=Object(y.a)(D);-1===t?a.push(e):a.splice(t,1),I(a)}},ee=function(){var e=J.current.shift(1);e?(Z.current?Q.current={ui_feature:_,callback_id:e.id,openDialog:!1,parameters:Z.current,tasking_location:"modal"}:Q.current={ui_feature:_,callback_id:e.id,openDialog:!0,parameters:"",tasking_location:"modal"},K(!0)):o()};s.a.useEffect((function(){Y.current&&(H||ee())}),[H,Y]);var te=function(e,t){return Object(x.jsx)(T.a,{className:w.paper,style:{width:"100%"},children:Object(x.jsxs)(Ie.a,{children:[Object(x.jsx)(_a.a,{className:w.cardHeader,title:e}),Object(x.jsx)(ka.a,{classes:{root:w.divider}}),Object(x.jsx)("div",{style:{overflow:"auto"},children:Object(x.jsxs)(Oa.a,{dense:!0,component:"div",role:"list",style:{padding:0},children:[t.map((function(e){var t="transfer-list-item-".concat(e.id,"-label");return Object(x.jsxs)(xa.a,{style:{padding:0},role:"listitem",button:!0,onClick:X(e),children:[Object(x.jsx)(ga.a,{children:Object(x.jsx)(va.a,{checked:-1!==D.indexOf(e),tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":t}})}),Object(x.jsx)(ya.a,{id:t,primary:e.display})]},e.id)})),Object(x.jsx)(xa.a,{})]})})]})})};return Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(V.a,{id:"form-dialog-title",children:"Task Multiple Callbacks at Once"}),Object(x.jsx)(G.a,{dividers:!0,children:Object(x.jsxs)(ft.a,{container:!0,spacing:0,justify:"center",alignItems:"center",className:w.root,children:[Object(x.jsx)(ft.a,{item:!0,xs:5,children:te("Callbacks Not Being Tasked",A)}),Object(x.jsx)(ft.a,{item:!0,xs:1,children:Object(x.jsxs)(ft.a,{container:!0,direction:"column",alignItems:"center",children:[Object(x.jsx)(b.a,{variant:"outlined",size:"small",className:w.button,onClick:function(){q(N.concat(A)),E([])},disabled:0===A.length,"aria-label":"move all right",children:"\u226b"}),Object(x.jsx)(b.a,{variant:"outlined",size:"small",className:w.button,onClick:function(){q(N.concat(R)),E(td(A,R)),I(td(D,R))},disabled:0===R.length,"aria-label":"move selected right",children:">"}),Object(x.jsx)(b.a,{variant:"outlined",size:"small",className:w.button,onClick:function(){E(A.concat(B)),q(td(N,B)),I(td(D,B))},disabled:0===B.length,"aria-label":"move selected left",children:"<"}),Object(x.jsx)(b.a,{variant:"outlined",size:"small",className:w.button,onClick:function(){E(A.concat(N)),q([])},disabled:0===N.length,"aria-label":"move all left",children:"\u226a"})]})}),Object(x.jsx)(ft.a,{item:!0,xs:5,children:te("Callbacks To Task",N)}),Object(x.jsxs)(ft.a,{item:!0,xs:12,children:[Object(x.jsx)("pre",{children:"The following capabilities are loaded into all of the selected callbacks. Select one to issue mass tasking."}),Object(x.jsx)($t.a,{ref:M,children:"Supported UI Features"}),Object(x.jsx)(ht.a,{labelId:"demo-dialog-select-label",id:"demo-dialog-select",value:_,onChange:function(e){k(e.target.value)},disabled:0===p.length,variant:"filled",input:Object(x.jsx)(Ot.a,{style:{width:"100%"}}),children:p.map((function(e){return Object(x.jsx)(tt.a,{value:e,children:e.split(":")[1]},e)}))})]})]})}),H&&Object(x.jsx)(_s.a,{ui_feature:(null===(a=Q.current)||void 0===a?void 0:a.ui_feature)||" ",callback_id:(null===Q||void 0===Q||null===(n=Q.current)||void 0===n?void 0:n.callback_id)||0,parameters:(null===(i=Q.current)||void 0===i?void 0:i.parameters)||"",openDialog:(null===(r=Q.current)||void 0===r?void 0:r.openDialog)||!1,tasking_location:(null===(c=Q.current)||void 0===c?void 0:c.tasking_location)||"command_line",onTasked:function(e){var t=e.tasked,a=e.variables;t?(console.log("setting finalTaskedParameters to",a),Z.current=a,K(!1)):o()}}),Object(x.jsxs)(U.a,{children:[Object(x.jsx)(b.a,{onClick:o,variant:"contained",color:"primary",children:"Close"}),Object(x.jsx)(b.a,{onClick:function(){0!==N.length&&""!==_?(Y.current=!0,J.current=Object(y.a)(N),ee()):o()},variant:"contained",color:"secondary",children:"Submit"})]})]})}var id,rd=Object(be.a)(Zl||(Zl=Object(_.a)(["\nquery callbacksAndFeatures($operation_id: Int!) {\n callback(where: {operation_id: {_eq: $operation_id}, active: {_eq: true}}, order_by: {id: asc}) {\n id\n host\n user\n process_name\n pid\n }\n}"]))),cd=Object(Se.a)((function(e){return{root:{margin:"auto"},paper:{width:200,height:500},button:{margin:e.spacing(.5,0)},divider:{backgroundColor:"rgb(100, 170, 204)",border:"2px solid rgba(100, 170, 204)"}}}));function od(e,t){return e.filter((function(e){return-1===t.indexOf(e)}))}function sd(e,t){return e.filter((function(e){return-1!==t.indexOf(e)}))}function ld(e){var t,a=e.onClose,n=Object(f.a)(h.b),i=cd(),r=s.a.useState([]),c=Object(u.a)(r,2),o=c[0],l=c[1],d=s.a.useState([]),j=Object(u.a)(d,2),p=j[0],m=j[1],g=s.a.useState([]),_=Object(u.a)(g,2),k=_[0],w=_[1],C=sd(o,p),S=sd(o,k),D=s.a.useRef(0),I=s.a.useRef(0),$=Object(pe.a)(Pl,{update:function(e,t){var a=t.data;I.current+=1,"success"===a.updateCallback.status?D.current+=1:O.b.warning(a.updateCallback.error),I.current===k.length&&O.b.success("Successfully updated "+D.current+" callbacks status")},onError:function(e){console.log(e)}}),P=Object(u.a)($,1)[0];Object(je.a)(rd,{variables:{operation_id:(null===n||void 0===n||null===(t=n.user)||void 0===t?void 0:t.current_operation_id)||0},fetchPolicy:"no-cache",onCompleted:function(e){var t=e.callback.map((function(e){var t="".concat(e.id," - ").concat(e.user,"@").concat(e.host," (").concat(e.pid,")");return Object(v.a)(Object(v.a)({},e),{},{display:t})}));m(t)}});var A=function(e){return function(){var t=o.indexOf(e),a=Object(y.a)(o);-1===t?a.push(e):a.splice(t,1),l(a)}},E=function(e,t){return Object(x.jsx)(T.a,{className:i.paper,style:{width:"100%"},children:Object(x.jsxs)(Ie.a,{children:[Object(x.jsx)(_a.a,{className:i.cardHeader,title:e}),Object(x.jsx)(ka.a,{classes:{root:i.divider}}),Object(x.jsx)("div",{style:{overflow:"auto"},children:Object(x.jsxs)(Oa.a,{dense:!0,component:"div",role:"list",style:{padding:0},children:[t.map((function(e){var t="transfer-list-item-".concat(e.id,"-label");return Object(x.jsxs)(xa.a,{style:{padding:0},role:"listitem",button:!0,onClick:A(e),children:[Object(x.jsx)(ga.a,{children:Object(x.jsx)(va.a,{checked:-1!==o.indexOf(e),tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":t}})}),Object(x.jsx)(ya.a,{id:t,primary:e.display})]},e.id)})),Object(x.jsx)(xa.a,{})]})})]})})};return Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(V.a,{id:"form-dialog-title",children:"Hide Multiple Callbacks at Once"}),Object(x.jsx)(G.a,{dividers:!0,children:Object(x.jsxs)(ft.a,{container:!0,spacing:0,justify:"center",alignItems:"center",className:i.root,children:[Object(x.jsx)(ft.a,{item:!0,xs:5,children:E("Visible Callbacks",p)}),Object(x.jsx)(ft.a,{item:!0,xs:1,children:Object(x.jsxs)(ft.a,{container:!0,direction:"column",alignItems:"center",children:[Object(x.jsx)(b.a,{variant:"outlined",size:"small",className:i.button,onClick:function(){w(k.concat(p)),m([])},disabled:0===p.length,"aria-label":"move all right",children:"\u226b"}),Object(x.jsx)(b.a,{variant:"outlined",size:"small",className:i.button,onClick:function(){w(k.concat(C)),m(od(p,C)),l(od(o,C))},disabled:0===C.length,"aria-label":"move selected right",children:">"}),Object(x.jsx)(b.a,{variant:"outlined",size:"small",className:i.button,onClick:function(){m(p.concat(S)),w(od(k,S)),l(od(o,S))},disabled:0===S.length,"aria-label":"move selected left",children:"<"}),Object(x.jsx)(b.a,{variant:"outlined",size:"small",className:i.button,onClick:function(){m(p.concat(k)),w([])},disabled:0===k.length,"aria-label":"move all left",children:"\u226a"})]})}),Object(x.jsx)(ft.a,{item:!0,xs:5,children:E("Callbacks To Hide",k)})]})}),Object(x.jsxs)(U.a,{children:[Object(x.jsx)(b.a,{onClick:a,variant:"contained",color:"primary",children:"Close"}),Object(x.jsx)(b.a,{onClick:function(){if(0!==k.length)for(var e=0;e2?"secondary":"primary",ref:d,"aria-label":"split button",children:[Object(x.jsxs)(b.a,{style:{padding:"0 10px 0 10px"},onClick:function(e){e.stopPropagation(),W("interact")},children:[r.locked?Object(x.jsx)(Bc.a,{fontSize:"large",style:{marginRight:"10px"}}):Object(x.jsx)(zl.a,{fontSize:"large",style:{marginRight:"10px"}}),r.id]}),Object(x.jsx)(b.a,{style:{margin:0,padding:0},"aria-controls":_?"split-button-menu":void 0,"aria-expanded":_?"true":void 0,"aria-haspopup":"menu",onClick:function(e){e.stopPropagation(),k((function(e){return!e}))},children:Object(x.jsx)(Ye.a,{})})]}),Object(x.jsx)(et.a,{open:_,anchorEl:d.current,role:void 0,transition:!0,style:{zIndex:200},children:function(e){var t=e.TransitionProps,a=e.placement;return Object(x.jsx)(Xe.a,Object(v.a)(Object(v.a)({},t),{},{style:{transformOrigin:"bottom"===a?"top left":"top center",anchorOrigin:"bottom right"},children:Object(x.jsx)(T.a,{style:{backgroundColor:"dark"===j.palette.type?j.palette.primary.dark:j.palette.primary.light,color:"white"},elevation:5,children:Object(x.jsx)(Ze.a,{onClickAway:H,children:Object(x.jsx)(at.a,{id:"split-button-menu",children:K.map((function(e,t){return Object(x.jsxs)(tt.a,{onClick:function(e){return function(e,t){K[t].click(e),k(!1)}(e,t)},children:[e.icon,e.name]},e.name)}))})})})}))}}),P&&Object(x.jsx)(_s.a,{ui_feature:(null===(t=E.current)||void 0===t?void 0:t.ui_feature)||" ",callback_id:r.id,parameters:(null===(a=E.current)||void 0===a?void 0:a.parameters)||"",openDialog:(null===(n=E.current)||void 0===n?void 0:n.openDialog)||!1,getConfirmation:(null===(i=E.current)||void 0===i?void 0:i.getConfirmation)||!1,onTasked:function(){return A(!1)}}),h&&Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"lg",open:h,onClose:function(){f(!1)},innerDialog:Object(x.jsx)(Yl,{onClose:function(){f(!1)},callback_id:r.id})}),S&&Object(x.jsx)(Y.a,{fullWidth:!0,open:S,onClose:function(){D(!1)},innerDialog:Object(x.jsx)(Y.b,{title:"Edit Callback's Description",onClose:function(){D(!1)},value:r.description,onSubmit:function(e){l({description:e,id:r.id})}})}),N&&Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"lg",open:N,onClose:function(){q(!1)},innerDialog:Object(x.jsx)(nd,{onClose:function(){q(!1)}})}),M&&Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"lg",open:M,onClose:function(){z(!1)},innerDialog:Object(x.jsx)(ld,{onClose:function(){z(!1)}})})]})},bd=function(e){var t=e.cellData;return Object(x.jsx)("div",{children:t})},jd=function(e){var t=e.rowData,a=e.parentMountedRef,n=s.a.useState(""),i=Object(u.a)(n,2),r=i[0],c=i[1],o=s.a.useState(-1),l=Object(u.a)(o,2),d=l[0],b=l[1],j=s.a.useRef(!0);return Object(Me.a)(dd,{variables:{callback_id:t.id},fetchPolicy:"network-only",onSubscriptionData:function(e){var t=e.subscriptionData;if(!j.current||!a.current)return null;b(t.data.callback_by_pk.last_checkin)}}),Object(Z.c)((function(){if(!j.current||!a.current)return null;c(-1!==d?Object(Z.a)(d):"Loading...")}),1e3,j,a),s.a.useEffect((function(){return function(){j.current=!1}}),[]),Object(x.jsx)("div",{children:r})},pd=function(e){var t=e.rowData;return Object(x.jsx)(kt.a,{title:t.payload.payloadtype.ptype,children:Object(x.jsx)("img",{style:{width:"35px",height:"35px"},src:"/static/"+t.payload.payloadtype.ptype+".svg"})})},md=function(e){var t=e.rowData,a=e.initialCallbackGraphEdges,n=Object(ee.a)(),i=s.a.useState(n.palette.success.main),r=Object(u.a)(i,2),c=r[0],l=r[1],d=s.a.useState(!0),b=Object(u.a)(d,2),j=b[0],p=b[1],m=s.a.useState(!0),h=Object(u.a)(m,2),f=h[0],O=h[1],g=s.a.useState(!1),_=Object(u.a)(g,2),k=_[0],w=_[1],C=s.a.useState([]),S=Object(u.a)(C,2),D=S[0],I=S[1],T=s.a.useState([]),$=Object(u.a)(T,2),P=$[0],A=$[1],E=function(e){e.stopPropagation(),w(!0)};return Object(o.useEffect)((function(){var e=P.filter((function(e){return!e.c2profile.is_p2p&&e.source.id===t.id&&e.destination.id===t.id})).length;e>0&&!f?O(!0):0===e&&f&&O(!1)}),[P]),Object(o.useEffect)((function(){var e=function(e){for(var n=(null===a||void 0===a?void 0:a.filter((function(a){return(a.source.id===t.id||a.destination.id===t.id)&&(!e||null===a.end_timestamp)})))||[],i=!0;i;){var r=(null===a||void 0===a?void 0:a.reduce((function(t,a){return t.includes(a)?Object(y.a)(t):t.filter((function(t){return(t.source.id===a.source.id||t.source.id===a.destination.id||t.destination.id===a.source.id)&&(!e||null===a.end_timestamp)})).length>0?[].concat(Object(y.a)(t),[a]):Object(y.a)(t)}),Object(y.a)(n)))||[];i=r.length>n,n=Object(y.a)(r)}return n},n=e(!0),i=e(!1);D.length!==n.length&&I(n),P.length!==i.length&&A(i)}),[a,t.id]),Object(o.useEffect)((function(){0===D.filter((function(e){return!e.c2profile.is_p2p&&null===e.end_timestamp})).length?(l(n.palette.error.main),p(!1)):(l(n.palette.success.main),p(!0))}),[D,n.palette.success.main,n.palette.error.main]),Object(o.useEffect)((function(){}),[j]),Object(x.jsxs)("div",{children:[f?Object(x.jsx)(Ve.a,{onClick:E,style:{color:c,cursor:"pointer"}}):Object(x.jsx)(zc.a,{onClick:E,style:{color:c,cursor:"pointer"}}),Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"lg",open:k,onClose:function(){w(!1)},innerDialog:Object(x.jsx)(Qc,Object(v.a)(Object(v.a)({onClose:function(){w(!1)}},t),{},{callbackgraphedges:j?D:P}))})]})},hd=function(e){var t=e.rowData,a=e.cellData,n=s.a.useState(!1),i=Object(u.a)(n,2),r=i[0],c=i[1],l=Object(o.useCallback)((function(){switch(t.payload.os.toLowerCase()){case"windows":return Object(x.jsx)(Mt.a,{icon:Ql.d,size:"2x",style:{cursor:"pointer"},onClick:d});case"linux":return Object(x.jsx)(Mt.a,{icon:Ql.c,size:"2x",style:{cursor:"pointer"},onClick:d});case"macos":return Object(x.jsx)(Mt.a,{icon:Ql.a,size:"2x",style:{cursor:"pointer"},onClick:d});case"chrome":return Object(x.jsx)(Mt.a,{icon:Ql.b,size:"2x",style:{cursor:"pointer"},onClick:d});default:return Object(x.jsx)(Mt.a,{icon:zt.A,size:"2x",style:{cursor:"pointer"},onClick:d})}}),[]),d=s.a.useCallback((function(){c(!0)}),[]);return Object(x.jsxs)("div",{children:[l(),r&&Object(x.jsx)(Bl.a,{onClose:function(){c(!1)},title:"Operating System Information",maxWidth:"md",fullWidth:!0,value:a,open:r})]})},fd=function(e){var t=e.rowData,a=e.cellData,n=e.updateSleepInfo,i=Object(ee.a)(),r=s.a.useState(!1),c=Object(u.a)(r,2),o=c[0],l=c[1];return Object(x.jsxs)("div",{children:[Object(x.jsx)(Hl.a,{onClick:function(e){e.stopPropagation(),l(!0)},style:{color:""===a?i.palette.warning.main:i.palette.info.main,cursor:"pointer"}}),o&&Object(x.jsx)(Y.a,{fullWidth:!0,open:o,onClose:function(){l(!1)},innerDialog:Object(x.jsx)(Y.b,{title:"Sleep Information",onClose:function(){l(!1)},value:a,onSubmit:function(e){n({sleep_info:e,id:t.id})}})})]})};function Od(e){var t=s.a.useState([]),a=Object(u.a)(t,2),n=a[0],i=a[1],r=s.a.useState({sortKey:null,sortDirection:null,sortType:null}),c=Object(u.a)(r,2),l=c[0],d=c[1],b=s.a.useState(!1),j=Object(u.a)(b,2),p=j[0],m=j[1],h=s.a.useState(!1),f=Object(u.a)(h,2),g=f[0],_=f[1],k=s.a.useState({}),w=Object(u.a)(k,2),C=w[0],S=w[1],D=s.a.useState({}),I=Object(u.a)(D,2),T=I[0],$=I[1],P=s.a.useState({visible:["Interact","Host","Domain","User","Description","Last Checkin","Agent","C2","IP","OS"],hidden:["Arch","PID","Sleep","Process Name","External IP"]}),A=Object(u.a)(P,2),E=A[0],L=A[1],F=Object(pe.a)(Nl,{update:function(e,t){var a=t.data;"success"===a.updateCallback.status?O.b.success("Locked callback"):O.b.warning(a.updateCallback.error)},onError:function(e){console.log(e),O.b.warning(e)}}),N=Object(u.a)(F,1)[0],q=Object(pe.a)(Fl,{update:function(e,t){var a=t.data;"success"===a.updateCallback.status?O.b.success("Unlocked callback"):O.b.warning(a.updateCallback.error)},onError:function(e){console.log(e),O.b.warning(e)}}),R=Object(u.a)(q,1)[0],B=Object(pe.a)(ql,{update:function(e,t){var a=t.data;"success"===a.updateCallback.status?O.b.success("Updated Callback"):O.b.warning(a.updateCallback.error)},onError:function(e){console.log(e),O.b.warning(e)}}),M=Object(u.a)(B,1)[0],z=Object(pe.a)(Rl,{update:function(e,t){t.data;O.b.success("Updated Callback")},onError:function(e){console.log(e),O.b.warning(e)}}),W=Object(u.a)(z,1)[0],H=Object(o.useMemo)((function(){return[{key:"id",type:"number",name:"Interact",width:150},{key:"ip",type:"string",name:"IP",width:150},{key:"external_ip",type:"string",name:"External IP",width:150},{key:"host",type:"string",name:"Host",fillWidth:!0},{key:"user",type:"string",name:"User",fillWidth:!0},{key:"domain",type:"string",name:"Domain",fillWidth:!0},{key:"os",type:"string",name:"OS",width:75},{key:"architecture",type:"string",name:"Arch",width:75},{key:"pid",type:"number",name:"PID",width:75},{key:"last_checkin",type:"string",name:"Last Checkin",width:150,disableSort:!0},{key:"description",type:"string",name:"Description",width:400},{key:"sleep",type:"string",name:"Sleep",width:75,disableSort:!0},{key:"agent",type:"string",name:"Agent",width:100,disableSort:!0},{key:"c2",type:"string",name:"C2",width:75,disableSort:!0},{key:"process_name",type:"string",name:"Process Name",fillWidth:!0}].reduce((function(e,t){return E.visible.includes(t.name)||"Interact"===t.name?C[t.key]&&String(C[t.key]).length>0?[].concat(Object(y.a)(e),[Object(v.a)(Object(v.a)({},t),{},{filtered:!0})]):[].concat(Object(y.a)(e),[Object(v.a)({},t)]):Object(y.a)(e)}),[])}),[C,E]),U=s.a.useCallback((function(){}),[]),G=[{name:"Filter Column",click:function(e){e.event;var t=e.columnIndex;H[t].disableFilterMenu?O.b.warning("Can't filter that column"):($(H[t]),m(!0))}},{name:"Show/Hide Columns",click:function(e){e.event;var t=e.columnIndex;H[t].disableFilterMenu?O.b.warning("Can't filter that column"):_(!0)}}];Object(o.useEffect)((function(){localStorage.getItem("callbacks_table_columns")}),[H]);var K=s.a.useCallback((function(e){var t=e.id;e.locked?R({variables:{callback_id:t}}):N({variables:{callback_id:t}})}),[]),V=s.a.useCallback((function(e){var t=e.id,a=e.description;M({variables:{callback_id:t,description:a}})}),[]),Q=s.a.useCallback((function(e){var t=e.id,a=e.sleep_info;W({variables:{callback_id:t,sleep_info:a}})}),[]),J=s.a.useMemo((function(){if(null===l.sortKey||null===l.sortType)return n;var e=Object(y.a)(n);return"number"===l.sortType||"size"===l.sortType||"date"===l.sortType?e.sort((function(e,t){return parseInt(e[l.sortKey])>parseInt(t[l.sortKey])?1:-1})):"string"===l.sortType&&e.sort((function(e,t){return e[l.sortKey].toLowerCase()>t[l.sortKey].toLowerCase()?1:-1})),"DESC"===l.sortDirection&&e.reverse(),e}),[n,l]),Z=s.a.useMemo((function(){return J.reduce((function(t,a){return function(e){for(var t=0,a=Object.entries(C);t0){k(a[0]);var n=a[0].callbackc2profiles.filter((function(t){return t.callback.id!==e.source.id}));r(n),n.length>0&&g(n[0])}},fetchPolicy:"network-only"}),D=S.loading,I=S.error;return D?Object(x.jsx)(Ae.a,{style:{marginTop:"10px"}}):I?(console.error(I),Object(x.jsx)("div",{children:"Error!"})):Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsxs)(V.a,{children:["Manually Add Edge From Callback ",e.source.id]}),Object(x.jsx)(G.a,{dividers:!0,children:Object(x.jsxs)(s.a.Fragment,{children:["Manually add an edge from Callback ",e.source.id," to another callback via a P2P C2 Profile they both share.",Object(x.jsx)("br",{}),Object(x.jsxs)(mt.a,{className:t.formControl,children:[Object(x.jsx)($t.a,{id:"demo-dialog-select-label-profile",children:"Profile"}),Object(x.jsxs)(ht.a,{labelId:"demo-dialog-select-label-profile",id:"demo-dialog-select",value:_,onChange:function(e){k(e.target.value)},style:{minWidth:"30%"},children:[Object(x.jsx)(tt.a,{value:"",children:Object(x.jsx)("em",{children:"None"})}),d.map((function(e){return Object(x.jsx)(tt.a,{value:e,children:e.name},"profile:"+e.id)}))]})]}),Object(x.jsx)("br",{}),Object(x.jsxs)(mt.a,{className:t.formControl,children:[Object(x.jsx)($t.a,{ref:w,children:"Destination"}),Object(x.jsxs)(ht.a,{labelId:"demo-dialog-select-label-destination",id:"demo-dialog-select-destination",value:O,onChange:function(e){g(e.target.value)},input:Object(x.jsx)(Ot.a,{}),children:[Object(x.jsx)(tt.a,{value:"",children:Object(x.jsx)("em",{children:"None"})}),i.map((function(e){return Object(x.jsxs)(tt.a,{value:e,children:[e.callback.id," (",e.callback.description,")"]},"callback:"+e.callback.id)}))]})]})]})}),Object(x.jsxs)(U.a,{children:[Object(x.jsx)(b.a,{onClick:e.onClose,variant:"contained",color:"primary",children:"Close"}),Object(x.jsx)(b.a,{onClick:function(){e.onSubmit(e.source.id,_,O.callback),e.onClose()},variant:"contained",style:{backgroundColor:Ir.a.palette.success.main},children:"Add"})]})]})}var wd,Cd,Sd,Dd=a(215),Id=Object(be.a)(wd||(wd=Object(_.a)(['\nquery loadedLinkCommandsQuery ($callback_id: Int!){\n loadedcommands(where: {callback_id: {_eq: $callback_id}, command: {supported_ui_features: {_ilike: "graph_view:link"}, deleted: {_eq: false}}}) {\n command {\n id\n cmd\n help_cmd\n description\n needs_admin\n }\n }\n}\n'])));function Td(e){var t=e.onOpenTab,a=e.callbackgraphedges,n=Object(ee.a)(),i=Object(o.useRef)(null),r=s.a.useRef(null),c=s.a.useState(!1),l=Object(u.a)(c,2),d=l[0],j=l[1],p=Object(o.useState)(!0),m=Object(u.a)(p,2),h=m[0],f=m[1],g=s.a.useState([]),_=Object(u.a)(g,2),k=_[0],w=_[1],C=s.a.useState(!1),S=Object(u.a)(C,2),D=S[0],I=S[1],$=s.a.useState(!1),P=Object(u.a)($,2),A=P[0],E=P[1],L=Object(o.useState)(),F=Object(u.a)(L,2),N=F[0],q=F[1],R=Object(o.useState)(),B=Object(u.a)(R,2),M=B[0],z=B[1],W=Object(o.useState)(!1),H=Object(u.a)(W,2),U=H[0],G=H[1],K=Object(o.useState)(!1),V=Object(u.a)(K,2),Q=V[0],J=V[1],Z=Object(o.useState)([]),X=Object(u.a)(Z,2),te=X[0],ae=X[1],ne=Object(o.useState)(null),ie=Object(u.a)(ne,2),re=ie[0],ce=ie[1],oe=Object(pt.a)(Id,{fetchPolicy:"network-only",onCompleted:function(e){if(1===e.loadedcommands.length)q(e.loadedcommands[0].command),I(!0);else if(0===e.loadedcommands.length)O.b.warning("No commands loaded that are 'link' commands");else{var t=e.loadedcommands.map((function(e){return Object(v.a)(Object(v.a)({},e),{},{display:e.command.cmd})}));w(t),q(t[0].command),E(!0)}}}),se=Object(u.a)(oe,1)[0],le=Object(pe.a)(ao.c,{update:function(e,t){var a=t.data;"error"===a.createTask.status?O.b.error(a.createTask.error):O.b.success("task created")}}),de=Object(u.a)(le,1)[0],ue=s.a.useState({rankDir:"BT",label_components:["id","user"],packet_flow_view:!0,include_disconnected:!0,show_all_nodes:!1}),be=Object(u.a)(ue,2),je=be[0],me=be[1],he=Object(pe.a)(Pl,{update:function(e,t){t.data}}),fe=Object(u.a)(he,1)[0],Oe=Object(pe.a)(El,{update:function(e,t){t.data}}),xe=Object(u.a)(Oe,1)[0],ge=Object(pe.a)(Ll,{update:function(e,t){t.data}}),ye=Object(u.a)(ge,1)[0],ve=Object(o.useMemo)((function(){return{mouseover:function(e,t,a){},mouseout:function(e,t,a){},click:function(e,t,a){},contextmenu:[{title:"Hide Callback",action:function(e,t){fe({variables:{callback_id:t.node.id}})}},{title:"Interact",action:function(e,a){t({tabType:"interact",tabID:a.node.id+"interact",callbackID:a.node.id})}},{title:"Manually Remove Edge",action:function(e,t){var a=function(e,t){return e.nodeEdges(t)}(e,t.node.id).reduce((function(t,a){var n=e.edge(a.v,a.w,a.name);return null===n.end_timestamp?1===n.direction?je.packet_flow_view?[].concat(Object(y.a)(t),[Object(v.a)(Object(v.a)({},n),{},{display:a.w+" --\x3e "+a.name+" --\x3e "+a.v})]):[].concat(Object(y.a)(t),[Object(v.a)(Object(v.a)({},n),{},{display:a.v+" --\x3e "+a.name+" --\x3e "+a.w})]):[].concat(Object(y.a)(t),[Object(v.a)(Object(v.a)({},n),{},{display:a.w+" --\x3e "+a.name+" --\x3e "+a.v})]):Object(y.a)(t)}),[]);ae(a),G(!0)}},{title:"Manually Add Edge",action:function(e,t){ce(t.node),J(!0)}},{title:"Task Callback for Edge",action:function(e,t){w([]),q(null),z(null),se({variables:{callback_id:t.node.id}}),z(t.node)}}]}}),[se,fe,je,t]),_e=[{name:je.include_disconnected?"Show Only Active Edges":"Show All Edges",click:function(){var e=Object(v.a)(Object(v.a)({},je),{},{include_disconnected:!je.include_disconnected});Yc(Object(y.a)(a),i,!0,e,ve,n),me(e)}},{name:je.show_all_nodes?"Hide inactive callbacks":"Show All Callbacks",click:function(){var e=Object(v.a)(Object(v.a)({},je),{},{show_all_nodes:!je.show_all_nodes});Yc(Object(y.a)(a),i,!0,e,ve,n),me(e)}},{name:"Autosize",click:function(){Yc(Object(y.a)(a),i,!0,je,ve,n)}},{name:"LR"===je.rankDir?"Change Layout to Top-Bottom":"Change Layout to Left-Right",click:function(){if("LR"===je.rankDir){var e=Object(v.a)(Object(v.a)({},je),{},{rankDir:"BT"});Yc(Object(y.a)(a),i,!0,e,ve,n),me(e)}else{var t=Object(v.a)(Object(v.a)({},je),{},{rankDir:"LR"});Yc(Object(y.a)(a),i,!0,t,ve,n),me(t)}}},{name:je.packet_flow_view?"View Connection Directions":"View Egress Routes",click:function(){var e=Object(v.a)(Object(v.a)({},je),{},{packet_flow_view:!je.packet_flow_view});Yc(Object(y.a)(a),i,!0,e,ve,n),me(e)}},{name:"Download Graph",click:function(){Object(gd.saveSvgAsPng)(document.getElementById("callbacksgraph"),"diagram.png")}}],ke=function(e){r.current&&r.current.contains(e.target)||j(!1)};return Object(o.useEffect)((function(){var e=Object(y.a)(a);Yc(e,i,h,je,ve,n),f(!1)}),[a,h,je,n]),Object(x.jsxs)("div",{style:{maxWidth:"100%",overflow:"auto",height:"100%"},children:[Object(x.jsx)(Qe.a,{variant:"contained",ref:r,"aria-label":"split button",style:{marginTop:"10px"},color:"primary",children:Object(x.jsxs)(b.a,{size:"small",color:"primary","aria-controls":d?"split-button-menu":void 0,"aria-expanded":d?"true":void 0,"aria-haspopup":"menu",onClick:function(e){e.stopPropagation(),j((function(e){return!e}))},children:["Actions ",Object(x.jsx)(Ye.a,{})]})}),function(){var e="";return e+=je.include_disconnected?"Showing All Edges, ":"Showing Only Active Edges, ",e+=je.show_all_nodes?"Showing All Callbacks, ":"Showing Active Callbacks, ",e+="Layout: "+je.rankDir+", ",e+=je.packet_flow_view?"Showing Egress Routes":"Showing Connections Paths"}(),Object(x.jsx)(et.a,{open:d,anchorEl:r.current,role:void 0,transition:!0,disablePortal:!0,children:function(e){var t=e.TransitionProps,a=e.placement;return Object(x.jsx)(Xe.a,Object(v.a)(Object(v.a)({},t),{},{style:{transformOrigin:"bottom"===a?"center top":"center bottom"},children:Object(x.jsx)(T.a,{style:{backgroundColor:"dark"===n.palette.type?n.palette.primary.dark:n.palette.primary.light,color:"white"},children:Object(x.jsx)(Ze.a,{onClickAway:ke,children:Object(x.jsx)(at.a,{id:"split-button-menu",children:_e.map((function(e,t){return Object(x.jsx)(tt.a,{onClick:function(e){return function(e,t){_e[t].click(),j(!1)}(0,t)},children:e.name},e.name)}))})})})}))}}),U&&Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"sm",open:U,onClose:function(){G(!1)},innerDialog:Object(x.jsx)(yd.a,{onClose:function(){G(!1)},identifier:"edge_id",display:"display",onSubmit:function(e){""!==e?xe({variables:{edge_id:e.edge_id,end_timestamp:(new Date).toISOString()}}):O.b.warning("No edge selected")},options:te,title:"Manually Remove Edge",action:"remove"})}),Q&&Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"sm",open:Q,onClose:function(){J(!1)},innerDialog:Object(x.jsx)(kd,{onClose:function(){J(!1)},onSubmit:function(e,t,a){""!==t&&""!==a?ye({variables:{source_id:e,profile_id:t.id,destination_id:a.id}}):O.b.warning("Profile or Destination Callback not provided")},source:re})}),D&&Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"md",open:D,onClose:function(){I(!1)},innerDialog:Object(x.jsx)(Dd.a,{command:N,callback:M,onSubmit:function(e,t,a){I(!1),de({variables:{callback_id:M.id,command:e,params:t,files:a}})},onClose:function(){I(!1)}})}),A&&Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"sm",open:A,onClose:function(){E(!1)},innerDialog:Object(x.jsx)(yd.a,{onClose:function(){E(!1)},onSubmit:function(e){q(e.command),I(!0)},options:k,title:"Select Link Command",action:"select",display:"display",identifier:"display"})}),Object(x.jsx)("svg",{id:"callbacksgraph",ref:i,width:"100%",height:"90%"})]})}var $d=Object(be.a)(Cd||(Cd=Object(_.a)(["\nsubscription CallbacksSubscription ($operation_id: Int!){\n callback(where: {active: {_eq: true}, operation_id: {_eq: $operation_id}}, order_by: {id: desc}) {\n architecture\n description\n domain\n external_ip\n host\n id\n integrity_level\n ip\n locked\n locked_operator {\n username\n }\n extra_info\n sleep_info\n pid\n os\n user\n agent_callback_id\n operation_id\n process_name\n payload {\n os\n payloadtype {\n ptype\n id\n }\n tag\n id\n }\n }\n}\n "]))),Pd=Object(be.a)(Sd||(Sd=Object(_.a)(["\nsubscription CallbacksSubscription ($operation_id: Int!){\n callbackgraphedge(where: {operation_id: {_eq: $operation_id}}, order_by: {id: desc}) {\n id\n end_timestamp\n direction\n destination {\n active\n id\n operation_id\n user\n host\n payload {\n payloadtype {\n ptype\n id\n }\n }\n callbackc2profiles {\n c2profile {\n name\n }\n }\n }\n source {\n active\n id\n user\n operation_id\n host\n payload {\n payloadtype {\n ptype\n id\n }\n }\n callbackc2profiles {\n c2profile {\n name\n }\n }\n }\n c2profile {\n id\n is_p2p\n name\n }\n }\n}\n "])));function Ad(e){var t,a,n=e.onOpenTab,i=e.topDisplay,r=e.heights,c=Object(f.a)(h.b),o=Object(ee.a)(),l=s.a.useState([]),d=Object(u.a)(l,2),b=d[0],j=d[1],p=s.a.useState([]),m=Object(u.a)(p,2),O=m[0],g=m[1],y=s.a.useRef(!0);Object(Me.a)($d,{variables:{operation_id:(null===c||void 0===c||null===(t=c.user)||void 0===t?void 0:t.current_operation_id)||0},fetchPolicy:"network-only",shouldResubscribe:!0,onSubscriptionData:function(e){var t=e.subscriptionData;y.current&&j(t.data.callback)}}),Object(Me.a)(Pd,{variables:{operation_id:(null===c||void 0===c||null===(a=c.user)||void 0===a?void 0:a.current_operation_id)||0},fetchPolicy:"network-only",shouldResubscribe:!0,onSubscriptionData:function(e){var t=e.subscriptionData;y.current&&g(t.data.callbackgraphedge)}});var v=function(e){for(var t=e.tabType,a=e.tabID,i=e.callbackID,r=0;r0?n.task.map((function(e){return Object(x.jsx)(Md.a,{task:e,command_id:null==e.command?0:e.command.id},"taskinteractdisplay"+e.id)})):Object(x.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",left:"50%",top:"50%"},children:"No Search Results"})}),Object(x.jsxs)("div",{style:{background:"transparent",display:"flex",justifyContent:"center",alignItems:"center"},children:[Object(x.jsx)(Kd.a,{count:Math.ceil(o/Vd),variant:"outlined",color:"primary",boundaryCount:1,siblingCount:1,onChange:function(e,t){if(1===t)switch(y){case"Output":q({search:j,offset:0,taskStatus:C});break;case"Parameters":R({search:j,offset:0,taskStatus:C});break;case"Comment":B({search:j,offset:0,taskStatus:C})}else switch(y){case"Output":q({search:j,offset:(t-1)*Vd,taskStatus:C});break;case"Parameters":R({search:j,offset:(t-1)*Vd,taskStatus:C});break;case"Comment":B({search:j,offset:(t-1)*Vd,taskStatus:C})}},showFirstButton:!0,showLastButton:!0,style:{padding:"20px"}}),Object(x.jsxs)(L.a,{style:{paddingLeft:"10px"},children:["Total Results: ",o]})]})]}))},iu=a(306),ru=a.n(iu),cu=Object(Se.a)((function(e){return{root:Object(jt.a)({},e.breakpoints.up("sm"),{minWidth:"344px !important"}),typography:{fontWeight:"bold"},actionRoot:{padding:"8px 8px 8px 16px"},icons:{marginLeft:"auto",float:"right"},expand:{padding:"8px 8px",transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest})},expandOpen:{transform:"rotate(180deg)"},collapse:{padding:16},checkIcon:{fontSize:20,color:"#b3b3b3",paddingRight:4},button:{padding:0,textTransform:"none"}}})),ou=s.a.forwardRef((function(e,t){var a=Object(ee.a)(),n=cu(a),i=Object(Na.c)().closeSnackbar,r=Object(o.useState)(!0),c=Object(u.a)(r,2),s=c[0],l=c[1];return Object(x.jsx)(Na.a,{ref:t,className:n.root,children:Object(x.jsxs)(Ie.a,{style:{backgroundColor:a.palette.success.main},children:[Object(x.jsxs)(Ra.a,{classes:{root:n.actionRoot},children:[Object(x.jsx)(L.a,{variant:"subtitle2",className:n.typography,children:e.title}),Object(x.jsxs)("div",{className:n.icons,children:[Object(x.jsx)(E.a,{"aria-label":"Show more",className:Object(qa.default)(n.expand,Object(jt.a)({},n.expandOpen,s)),onClick:function(){l(!s)},children:Object(x.jsx)(Wa.a,{})}),Object(x.jsx)(E.a,{className:n.expand,onClick:function(){i(e.id)},children:Object(x.jsx)(Ma.a,{})})]})]}),Object(x.jsx)(A.a,{in:s,timeout:"auto",unmountOnExit:!0,children:Object(x.jsxs)(T.a,{className:n.collapse,children:[Object(x.jsx)(L.a,{gutterBottom:!0,children:e.innerText}),Object(x.jsxs)(b.a,{size:"small",className:n.button,download:!0,href:e.downloadLink,children:[Object(x.jsx)(Ua.a,{className:n.checkIcon}),"Download now"]})]})})]})})})),su=a(358),lu=a.n(su),du=a(294),uu=Object(be.a)(Xd||(Xd=Object(_.a)(["\nmutation downloadBulkMutation($files: [String!]!){\n download_bulk(files: $files){\n status\n error\n file_id\n }\n}\n"]))),bu=Object(be.a)(eu||(eu=Object(_.a)(["\nmutation updateFileMutation($file_id: Int!){\n deleteFile(file_id: $file_id) {\n status\n error\n file_ids\n }\n}\n"]))),ju=Object(be.a)(tu||(tu=Object(_.a)(["\nmutation updateCommentMutation($file_id: Int!, $comment: String!){\n update_filemeta_by_pk(pk_columns: {id: $file_id}, _set: {comment: $comment}) {\n comment\n id\n }\n}\n"])));function pu(e){var t=s.a.useState({}),a=Object(u.a)(t,2),n=a[0],i=a[1],r=s.a.useState([]),c=Object(u.a)(r,2),l=c[0],d=c[1],j=function(e,t){i(Object(v.a)(Object(v.a)({},n),{},Object(jt.a)({},e,t)))};Object(o.useEffect)((function(){var t=e.files.reduce((function(e,t){return Object(v.a)(Object(v.a)({},e),{},Object(jt.a)({},t.id,!1))}),{});i(t),d(Object(y.a)(e.files))}),[e.files]);var p=Object(pe.a)(uu,{onCompleted:function(e){O.b.dismiss(),"success"===e.download_bulk.status?O.b.success("",{persist:!0,content:function(t){return Object(x.jsx)(ou,{id:t,title:"Download Zip File",innerText:"Filenames are random UUIDs, so a JSON file is included with a mapping of UUID to real filename",downloadLink:window.location.origin+"/api/v1.4/files/download/"+e.download_bulk.file_id})}}):O.b.error(e.error)},onError:function(e){console.log(e),O.b.error("Failed to zip up files")}}),m=Object(u.a)(p,1)[0],h=function(e){var t=e.file_ids,a=l.map((function(e){return t.includes(e.id)?Object(v.a)(Object(v.a)({},e),{},{deleted:!0}):Object(v.a)({},e)}));d(a)},f=function(e){var t=e.id,a=e.comment,n=l.map((function(e){return e.id===t?Object(v.a)(Object(v.a)({},e),{},{comment:a}):Object(v.a)({},e)}));d(n)};return Object(x.jsxs)(S.a,{component:T.a,className:"mythicElement",children:[Object(x.jsxs)(b.a,{size:"small",onClick:function(){O.b.info("Zipping up files...");for(var t=[],a=0,i=Object.entries(n);a0?Object(x.jsx)(kt.a,{title:"View Download History and Download Files",children:Object(x.jsx)(b.a,{color:"primary",variant:"contained",onClick:function(){return l(!0)},children:Object(x.jsx)(Uo.a,{})})}):null})]})})}var Ru=Object(be.a)(yu||(yu=Object(_.a)(["\nfragment filemetaData on filemeta{\n agent_file_id\n chunk_size\n chunks_received\n complete\n deleted\n filename_text\n full_remote_path_text\n host\n id\n is_download_from_agent\n is_payload\n is_screenshot\n md5\n operator {\n id\n username\n }\n comment\n sha1\n timestamp\n total_chunks\n task {\n id\n comment\n command {\n cmd\n id\n }\n }\n}\n"]))),Bu=Object(be.a)(vu||(vu=Object(_.a)(["\nfragment filebrowserData on filebrowserobj{\n comment\n deleted\n full_path_text\n host\n id\n is_file\n modify_time\n permissions\n size\n filemeta {\n id\n agent_file_id\n chunks_received\n complete\n total_chunks\n timestamp\n task {\n id\n comment\n }\n }\n}\n"]))),Mu=20,zu=Object(be.a)(_u||(_u=Object(_.a)(["\n","\nquery filenameFileMetaUploadQuery($operation_id: Int!, $filename: String!, $host: String!, $offset: Int!, $fetchLimit: Int!) {\n filemeta_aggregate(distinct_on: id, where: {host: {_ilike: $host}, _and: [{_or: [{filename_text: {_ilike: $filename}}, {full_remote_path_text: {_ilike: $filename}}]}, {_or: [{task_id: {_is_null: false}}, {is_payload: {_eq: false}}]}], operation_id: {_eq: $operation_id}, is_download_from_agent: {_eq: false}, is_screenshot: {_eq: false},task_id: {_is_null: false}}) {\n aggregate {\n count\n }\n }\n filemeta(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {host: {_ilike: $host}, _and: [{_or: [{filename_text: {_ilike: $filename}}, {full_remote_path_text: {_ilike: $filename}}]}, {_or: [{task_id: {_is_null: false}}, {is_payload: {_eq: false}}]}], operation_id: {_eq: $operation_id}, is_download_from_agent: {_eq: false}, is_screenshot: {_eq: false}}) {\n ...filemetaData\n }\n }\n"])),Ru),Wu=Object(be.a)(ku||(ku=Object(_.a)(["\n","\nquery filenameFileMetaDownloadQuery($operation_id: Int!, $filename: String!, $host: String!, $offset: Int!, $fetchLimit: Int!) {\n filemeta_aggregate(distinct_on: id, where: {host: {_ilike: $host}, _or: [{filename_text: {_ilike: $filename}}, {full_remote_path_text: {_ilike: $filename}}], operation_id: {_eq: $operation_id}, is_download_from_agent: {_eq: true}, is_screenshot: {_eq: false}}) {\n aggregate {\n count\n }\n }\n filemeta(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {host: {_ilike: $host}, _or: [{filename_text: {_ilike: $filename}}, {full_remote_path_text: {_ilike: $filename}}], operation_id: {_eq: $operation_id}, is_download_from_agent: {_eq: true}, is_screenshot: {_eq: false}}) {\n ...filemetaData\n }\n }\n"])),Ru),Hu=Object(be.a)(wu||(wu=Object(_.a)(["\n","\nquery filenameFileBrowserQuery($operation_id: Int!, $filename: String!, $host: String!, $offset: Int!, $fetchLimit: Int!) {\n filebrowserobj_aggregate(distinct_on: id, where: {full_path_text: {_ilike: $filename}, host: {_ilike: $host}, operation_id: {_eq: $operation_id}}) {\n aggregate {\n count\n }\n }\n filebrowserobj(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {host: {_ilike: $host}, full_path_text: {_ilike: $filename}, operation_id: {_eq: $operation_id}}) {\n ...filebrowserData\n }\n }\n"])),Bu),Uu=Object(be.a)(Cu||(Cu=Object(_.a)(["\n","\nquery hashFileMetaUploadQuery($operation_id: Int!, $hash: String!, $host: String!, $offset: Int!, $fetchLimit: Int!) {\n filemeta_aggregate(distinct_on: id, where: {host: {_ilike: $host}, _and: [{_or: [{md5: {_ilike: $hash}}, {sha1: {_ilike: $hash}}]}, {_or: [{task_id: {_is_null: false}}, {is_payload: {_eq: false}}]}], operation_id: {_eq: $operation_id}, is_download_from_agent: {_eq: false}, is_screenshot: {_eq: false}}) {\n aggregate {\n count\n }\n }\n filemeta(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {host: {_ilike: $host}, _and: [{_or: [{md5: {_ilike: $hash}}, {sha1: {_ilike: $hash}}]}, {_or: [{task_id: {_is_null: false}}, {is_payload: {_eq: false}}]}], operation_id: {_eq: $operation_id}, is_download_from_agent: {_eq: false}, is_screenshot: {_eq: false}}) {\n ...filemetaData\n }\n }\n"])),Ru),Gu=Object(be.a)(Su||(Su=Object(_.a)(["\n","\nquery hashFileMetaDownloadQuery($operation_id: Int!, $hash: String!, $host: String!, $offset: Int!, $fetchLimit: Int!) {\n filemeta_aggregate(distinct_on: id, where: {host: {_ilike: $host}, _or: [{md5: {_ilike: $hash}}, {sha1: {_ilike: $hash}}], operation_id: {_eq: $operation_id}, is_download_from_agent: {_eq: true}, is_screenshot: {_eq: false}}) {\n aggregate {\n count\n }\n }\n filemeta(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {host: {_ilike: $host}, _or: [{md5: {_ilike: $hash}}, {sha1: {_ilike: $hash}}], operation_id: {_eq: $operation_id}, is_download_from_agent: {_eq: true}, is_screenshot: {_eq: false}}) {\n ...filemetaData\n }\n }\n"])),Ru),Ku=Object(be.a)(Du||(Du=Object(_.a)(["\n","\nquery commentFileMetaUploadQuery($operation_id: Int!, $comment: String!, $host: String!, $offset: Int!, $fetchLimit: Int!) {\n filemeta_aggregate(distinct_on: id, where: {host: {_ilike: $host}, comment: {_ilike: $comment}, operation_id: {_eq: $operation_id}, is_download_from_agent: {_eq: false}, is_screenshot: {_eq: false}}) {\n aggregate {\n count\n }\n }\n filemeta(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {host: {_ilike: $host}, comment: {_ilike: $comment}, operation_id: {_eq: $operation_id}, is_download_from_agent: {_eq: false}, is_screenshot: {_eq: false}}) {\n ...filemetaData\n }\n }\n"])),Ru),Vu=Object(be.a)(Iu||(Iu=Object(_.a)(["\n","\nquery hashFileMetaDownloadQuery($operation_id: Int!, $comment: String!, $host: String!, $offset: Int!, $fetchLimit: Int!) {\n filemeta_aggregate(distinct_on: id, where: {host: {_ilike: $host}, comment: {_ilike: $comment}, operation_id: {_eq: $operation_id}, is_download_from_agent: {_eq: true}, is_screenshot: {_eq: false}}) {\n aggregate {\n count\n }\n }\n filemeta(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {host: {_ilike: $host}, comment: {_ilike: $comment}, operation_id: {_eq: $operation_id}, is_download_from_agent: {_eq: true}, is_screenshot: {_eq: false}}) {\n ...filemetaData\n }\n }\n"])),Ru),Qu=Object(be.a)(Tu||(Tu=Object(_.a)(["\n","\nquery filenameFileBrowserQuery($operation_id: Int!, $comment: String!, $host: String!, $offset: Int!, $fetchLimit: Int!) {\n filebrowserobj_aggregate(distinct_on: id, where: {comment: {_ilike: $comment}, host: {_ilike: $host}, operation_id: {_eq: $operation_id}}) {\n aggregate {\n count\n }\n }\n filebrowserobj(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {host: {_ilike: $host}, comment: {_ilike: $comment}, operation_id: {_eq: $operation_id}}) {\n ...filebrowserData\n }\n }\n"])),Bu),Ju=Object(be.a)($u||($u=Object(_.a)(["\n","\nquery filenameFileMetaScreenshotQuery($operation_id: Int!, $filename: String!, $host: String!, $offset: Int!, $fetchLimit: Int!) {\n filemeta_aggregate(distinct_on: id, where: {host: {_ilike: $host}, _and: [{_or: [{filename_text: {_ilike: $filename}}, {full_remote_path_text: {_ilike: $filename}}]}, {_or: [{task_id: {_is_null: false}}, {is_payload: {_eq: false}}]}], operation_id: {_eq: $operation_id}, is_download_from_agent: {_eq: true}, is_screenshot: {_eq: true},task_id: {_is_null: false}}) {\n aggregate {\n count\n }\n }\n filemeta(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {host: {_ilike: $host}, _and: [{_or: [{filename_text: {_ilike: $filename}}, {full_remote_path_text: {_ilike: $filename}}]}, {_or: [{task_id: {_is_null: false}}, {is_payload: {_eq: false}}]}], operation_id: {_eq: $operation_id}, is_download_from_agent: {_eq: true}, is_screenshot: {_eq: true}}) {\n ...filemetaData\n }\n }\n"])),Ru),Yu=Object(be.a)(Pu||(Pu=Object(_.a)(["\n","\nquery hashFileMetaScreenshotQuery($operation_id: Int!, $hash: String!, $host: String!, $offset: Int!, $fetchLimit: Int!) {\n filemeta_aggregate(distinct_on: id, where: {host: {_ilike: $host}, _and: [{_or: [{md5: {_ilike: $hash}}, {sha1: {_ilike: $hash}}]}, {_or: [{task_id: {_is_null: false}}, {is_payload: {_eq: false}}]}], operation_id: {_eq: $operation_id}, is_download_from_agent: {_eq: true}, is_screenshot: {_eq: true}}) {\n aggregate {\n count\n }\n }\n filemeta(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {host: {_ilike: $host}, _and: [{_or: [{md5: {_ilike: $hash}}, {sha1: {_ilike: $hash}}]}, {_or: [{task_id: {_is_null: false}}, {is_payload: {_eq: false}}]}], operation_id: {_eq: $operation_id}, is_download_from_agent: {_eq: true}, is_screenshot: {_eq: true}}) {\n ...filemetaData\n }\n }\n"])),Ru),Zu=Object(be.a)(Au||(Au=Object(_.a)(["\n","\nquery commentFileMetaScreenshotQuery($operation_id: Int!, $comment: String!, $host: String!, $offset: Int!, $fetchLimit: Int!) {\n filemeta_aggregate(distinct_on: id, where: {host: {_ilike: $host}, comment: {_ilike: $comment}, operation_id: {_eq: $operation_id}, is_download_from_agent: {_eq: true}, is_screenshot: {_eq: true}}) {\n aggregate {\n count\n }\n }\n filemeta(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {host: {_ilike: $host}, comment: {_ilike: $comment}, operation_id: {_eq: $operation_id}, is_download_from_agent: {_eq: true}, is_screenshot: {_eq: true}}) {\n ...filemetaData\n }\n }\n"])),Ru);function Xu(e){return Object(x.jsx)(go.a,Object(v.a)({label:"Files",iconComponent:Object(x.jsx)(ru.a,{})},e))}var eb,tb,ab,nb,ib,rb=function(e){var t=Object(ee.a)(),a=s.a.useState(""),n=Object(u.a)(a,2),i=n[0],r=n[1],c=s.a.useState(""),o=Object(u.a)(c,2),l=o[0],d=o[1],p=s.a.useState("Filename"),m=Object(u.a)(p,2),h=m[0],f=m[1],g=["Filename","Hash","Comment"],y=s.a.useState("Downloads"),v=Object(u.a)(y,2),_=v[0],k=v[1],w=["Uploads","Downloads","FileBrowser","Screenshots"],C=s.a.useState(!1),S=Object(u.a)(C,2),D=S[0],I=S[1],T=function(t,a,n,r,c){var o=a||l,s=n||i,d=c||_;switch(r||h){case"Filename":e.onFilenameSearch({search:o,searchHost:s,offset:0,adjustedSearchLocation:d});break;case"Hash":e.onHashSearch({search:o,searchHost:s,offset:0,adjustedSearchLocation:d});break;case"Comment":e.onCommentSearch({search:o,searchHost:s,offset:0,adjustedSearchLocation:d})}};return s.a.useEffect((function(){if(e.value===e.index){var t=new URLSearchParams(window.location.search),a="",n="",i="Filename",c="Downloads";t.has("search")&&(d(t.get("search")),a=t.get("search")),t.has("searchField")&&g.includes(t.get("searchField"))?(f(t.get("searchField")),e.onChangeSearchField(t.get("searchField")),i=t.get("searchField")):(f("Filename"),e.onChangeSearchField("Filename"),e.changeSearchParam("searchField","Filename")),t.has("location")&&w.includes(t.get("location"))&&(k(t.get("location")),c=t.get("location"),e.onChangeSearchLocation(t.get("location"))),t.has("host")&&(r(t.get("host")),n=t.get("host")),I(!D),T(0,a,n,i,c)}}),[e.value,e.index]),Object(x.jsxs)(ft.a,{container:!0,spacing:1,style:{paddingTop:"10px",paddingLeft:"10px",maxWidth:"100%"},children:[Object(x.jsx)(ft.a,{item:!0,xs:2,children:Object(x.jsx)(j.a,{placeholder:"Host Name Search...",value:i,onChange:function(t,a,n){r(a),e.changeSearchParam("host",a)},onEnter:T,name:"Host Name Search..."})}),Object(x.jsx)(ft.a,{item:!0,xs:3,children:Object(x.jsx)(j.a,{placeholder:"Search...",value:l,onChange:function(t,a,n){d(a),e.changeSearchParam("search",a)},onEnter:T,name:"Search...",InputProps:{endAdornment:Object(x.jsx)(s.a.Fragment,{children:Object(x.jsx)(uo.a,{title:"Search",children:Object(x.jsx)(E.a,{onClick:T,children:Object(x.jsx)(Gd.a,{style:{color:t.palette.info.main}})})})}),style:{padding:0}}})}),Object(x.jsxs)(ft.a,{item:!0,xs:2,children:[Object(x.jsx)(Hd.a,{component:"legend",children:"Search File's"}),Object(x.jsx)(ht.a,{style:{marginBottom:"10px",width:"15rem",marginTop:"5px"},value:h,onChange:function(t){f(t.target.value),e.onChangeSearchField(t.target.value),e.changeSearchParam("searchField",t.target.value)},children:g.map((function(e,t){return Object(x.jsx)(tt.a,{value:e,children:e},"searchopt"+e)}))})]}),Object(x.jsxs)(ft.a,{item:!0,xs:2,children:[Object(x.jsx)(Hd.a,{component:"legend",children:"Search Location"}),Object(x.jsx)(ht.a,{style:{marginBottom:"10px",width:"15rem",marginTop:"5px"},value:_,onChange:function(t){k(t.target.value),e.onChangeSearchLocation(t.target.value),e.changeSearchParam("location",t.target.value)},children:w.map((function(e,t){return Object(x.jsx)(tt.a,{value:e,children:e},"searchlocopt"+e)}))})]}),Object(x.jsx)(ft.a,{item:!0,xs:2,children:Object(x.jsxs)(b.a,{variant:"contained",color:"primary",component:"label",children:["Host File in Mythic ",Object(x.jsx)("input",{onChange:function(e){!function(e){try{var t=new XMLHttpRequest,a=new FormData;t.open("POST",window.location.origin+"/api/v1.4/files/manual",!0),t.setRequestHeader("Authorization","Bearer "+localStorage.getItem("access_token")),t.onreadystatechange=function(){if(4===t.readyState&&200===t.status)try{var e=JSON.parse(t.responseText);"success"===e.status?O.b.success("Successfuly hosted file! Now searchable on the 'Uploads' search"):O.b.error("Failed to host file! "+e.error)}catch(n){O.b.error("Failed to process response from upload: "+n),console.log(n)}else 4!==t.readyState||302!==t.status&&405!==t.status?4===t.readyState&&(console.log("httpGetAsync Error with data: "+a),O.b.error("Mythic hit an error trying to hos the file: "+t.status+": "+t.statusText)):(console.log("httpGetAsync was 302 or 405 from url "),O.b.error("Got HTTP 302 or 405 when trying to host file"))},a.append("upload_file",e),t.send(a)}catch(n){O.b.error("HTTP Browser error trying to upload file: "+n.toString()),console.error("HTTP Browser error: "+n.toString())}}(e.target.files[0])},type:"file",hidden:!0})]})})]})},cb=function(e){var t=s.a.useState([]),a=Object(u.a)(t,2),n=a[0],i=a[1],r=s.a.useState([]),c=Object(u.a)(r,2),o=c[0],l=c[1],d=s.a.useState(0),b=Object(u.a)(d,2),j=b[0],p=b[1],m=s.a.useState(""),g=Object(u.a)(m,2),y=g[0],_=g[1],k=s.a.useState(""),w=Object(u.a)(k,2),C=w[0],S=w[1],D=s.a.useState("Filename"),I=Object(u.a)(D,2),T=I[0],$=I[1],P=s.a.useState("Downloads"),A=Object(u.a)(P,2),E=A[0],F=A[1],N=Object(f.a)(h.b),q=function(e){O.b.dismiss(),p(e.filemeta_aggregate.aggregate.count),l([]),i(e.filemeta)},R=function(e){O.b.dismiss(),p(e.filebrowserobj_aggregate.aggregate.count),l(e.filebrowserobj),i([])},B=function(e){O.b.dismiss(),O.b.error("Failed to fetch data for search"),console.log(e)},M=Object(pt.a)(zu,{fetchPolicy:"no-cache",onCompleted:q,onError:B}),z=Object(u.a)(M,1)[0],W=Object(pt.a)(Wu,{fetchPolicy:"no-cache",onCompleted:q,onError:B}),H=Object(u.a)(W,1)[0],U=Object(pt.a)(Hu,{fetchPolicy:"no-cache",onCompleted:R,onError:B}),G=Object(u.a)(U,1)[0],K=Object(pt.a)(Ju,{fetchPolicy:"no-cache",onCompleted:q,onError:B}),V=Object(u.a)(K,1)[0],Q=Object(pt.a)(Uu,{fetchPolicy:"no-cache",onCompleted:q,onError:B}),J=Object(u.a)(Q,1)[0],Y=Object(pt.a)(Gu,{fetchPolicy:"no-cache",onCompleted:q,onError:B}),Z=Object(u.a)(Y,1)[0],X=Object(pt.a)(Yu,{fetchPolicy:"no-cache",onCompleted:q,onError:B}),ee=Object(u.a)(X,1)[0],te=Object(pt.a)(Ku,{fetchPolicy:"no-cache",onCompleted:q,onError:B}),ae=Object(u.a)(te,1)[0],ne=Object(pt.a)(Vu,{fetchPolicy:"no-cache",onCompleted:q,onError:B}),ie=Object(u.a)(ne,1)[0],re=Object(pt.a)(Qu,{fetchPolicy:"no-cache",onCompleted:R,onError:B}),ce=Object(u.a)(re,1)[0],oe=Object(pt.a)(Zu,{fetchPolicy:"no-cache",onCompleted:q,onError:B}),se=Object(u.a)(oe,1)[0],le=function(e){var t=e.search,a=e.searchHost,n=e.offset,i=e.adjustedSearchLocation;O.b.info("Searching...",{persist:!0}),_(t),S(a),"FileBrowser"===i?G({variables:{operation_id:N.user.current_operation_id,offset:n,fetchLimit:Mu,filename:"%"+t+"%",host:"%"+a+"%"}}):"Uploads"===i?z({variables:{operation_id:N.user.current_operation_id,offset:n,fetchLimit:Mu,filename:"%"+t+"%",host:"%"+a+"%"}}):"Downloads"===i?H({variables:{operation_id:N.user.current_operation_id,offset:n,fetchLimit:Mu,filename:"%"+t+"%",host:"%"+a+"%"}}):V({variables:{operation_id:N.user.current_operation_id,offset:n,fetchLimit:Mu,filename:"%"+t+"%",host:"%"+a+"%"}})},de=function(e){var t=e.search,a=e.searchHost,n=e.offset,r=e.adjustedSearchLocation;O.b.info("Searching...",{persist:!0}),_(t),S(a),"FileBrowser"===r?(O.b.dismiss(),O.b.warning("FileBrowser doesn't currently track file hashes"),p(0),l([]),i([])):"Uploads"===r?J({variables:{operation_id:N.user.current_operation_id,offset:n,fetchLimit:Mu,hash:"%"+t+"%",host:"%"+a+"%"}}):"Downloads"===r?Z({variables:{operation_id:N.user.current_operation_id,offset:n,fetchLimit:Mu,hash:"%"+t+"%",host:"%"+a+"%"}}):ee({variables:{operation_id:N.user.current_operation_id,offset:n,fetchLimit:Mu,hash:"%"+t+"%",host:"%"+a+"%"}})},ue=function(e){var t=e.search,a=e.searchHost,n=e.offset,i=e.adjustedSearchLocation;O.b.info("Searching...",{persist:!0});var r=t;""===t&&(r="_"),_(r),S(a),"FileBrowser"===i?ce({variables:{operation_id:N.user.current_operation_id,offset:n,fetchLimit:Mu,comment:"%"+r+"%",host:"%"+a+"%"}}):"Uploads"===i?ae({variables:{operation_id:N.user.current_operation_id,offset:n,fetchLimit:Mu,comment:"%"+r+"%",host:"%"+a+"%"}}):"Downloads"===i?ie({variables:{operation_id:N.user.current_operation_id,offset:n,fetchLimit:Mu,comment:"%"+r+"%",host:"%"+a+"%"}}):se({variables:{operation_id:N.user.current_operation_id,offset:n,fetchLimit:Mu,comment:"%"+r+"%",host:"%"+a+"%"}})};return Object(x.jsxs)(go.c,Object(v.a)(Object(v.a)({},e),{},{children:[Object(x.jsx)(rb,{onChangeSearchField:function(e){switch($(e),e){case"Filename":le({search:y,searchHost:C,offset:0,adjustedSearchLocation:E});break;case"Hash":de({search:y,searchHost:C,offset:0,adjustedSearchLocation:E});break;case"Comments":ue({search:y,searchHost:C,offset:0,adjustedSearchLocation:E})}},onFilenameSearch:le,value:e.value,index:e.index,queryParams:e.queryParams,onHashSearch:de,onCommentSearch:ue,onChangeSearchLocation:function(e){switch(F(e),T){case"Filename":le({search:y,searchHost:C,offset:0,adjustedSearchLocation:e});break;case"Hash":de({search:y,searchHost:C,offset:0,adjustedSearchLocation:e});break;case"Comments":ue({search:y,searchHost:C,offset:0,adjustedSearchLocation:e})}},changeSearchParam:e.changeSearchParam}),Object(x.jsx)("div",{style:{overflowY:"auto",flexGrow:1},children:n.length>0?"Uploads"===E?Object(x.jsx)(hu,{files:n}):"Downloads"===E?Object(x.jsx)(pu,{files:n}):Object(x.jsx)(Ou,{files:n}):o.length>0?Object(x.jsx)(Nu,{files:o}):Object(x.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",left:"50%",top:"50%"},children:"No Search Results"})}),Object(x.jsxs)("div",{style:{background:"transparent",display:"flex",justifyContent:"center",alignItems:"center"},children:[Object(x.jsx)(Kd.a,{count:Math.ceil(j/Mu),variant:"outlined",color:"primary",boundaryCount:1,siblingCount:1,onChange:function(e,t){if(1===t)switch(T){case"Filename":le({search:y,searchHost:C,offset:0});break;case"Hash":de({search:y,searchHost:C,offset:0});break;case"Comments":ue({search:y,searchHost:C,offset:0})}else switch(T){case"Filename":le({search:y,searchHost:C,offset:(t-1)*Mu});break;case"Hash":de({search:y,searchHost:C,offset:(t-1)*Mu});break;case"Comments":ue({search:y,searchHost:C,offset:(t-1)*Mu})}},showFirstButton:!0,showLastButton:!0,style:{padding:"20px"}}),Object(x.jsxs)(L.a,{style:{paddingLeft:"10px"},children:["Total Results: ",j]})]})]}))},ob=a(307),sb=a.n(ob),lb=Object(be.a)(eb||(eb=Object(_.a)(["\nmutation updateCommentMutation($credential_id: Int!, $comment: String!){\n update_credential_by_pk(pk_columns: {id: $credential_id}, _set: {comment: $comment}) {\n comment\n id\n operator {\n username\n }\n }\n}\n"]))),db=Object(be.a)(tb||(tb=Object(_.a)(["\nmutation updateAccountMutation($credential_id: Int!, $account: String!){\n update_credential_by_pk(pk_columns: {id: $credential_id}, _set: {account: $account}) {\n account\n id\n operator {\n username\n }\n }\n}\n"]))),ub=Object(be.a)(ab||(ab=Object(_.a)(["\nmutation updateAccountMutation($credential_id: Int!, $realm: String!){\n update_credential_by_pk(pk_columns: {id: $credential_id}, _set: {realm: $realm}) {\n realm\n id\n operator {\n username\n }\n }\n}\n"]))),bb=Object(be.a)(nb||(nb=Object(_.a)(["\nmutation updateAccountMutation($credential_id: Int!, $credential: bytea!){\n update_credential_by_pk(pk_columns: {id: $credential_id}, _set: {credential_raw: $credential}) {\n credential_text\n id\n operator {\n username\n }\n }\n}\n"]))),jb=Object(be.a)(ib||(ib=Object(_.a)(["\nmutation updateAccountMutation($credential_id: Int!, $deleted: Boolean!){\n update_credential_by_pk(pk_columns: {id: $credential_id}, _set: {deleted: $deleted}) {\n deleted\n id\n operator {\n username\n }\n }\n}\n"])));function pb(e){var t=s.a.useState([]),a=Object(u.a)(t,2),n=a[0],i=a[1];Object(o.useEffect)((function(){i(Object(y.a)(e.credentials))}),[e.credentials]);var r=function(e){var t=e.id,a=e.comment,r=e.operator,c=n.map((function(e){return e.id===t?Object(v.a)(Object(v.a)({},e),{},{comment:a,operator:r}):Object(v.a)({},e)}));i(c)},c=function(e){var t=e.id,a=e.account,r=e.operator,c=n.map((function(e){return e.id===t?Object(v.a)(Object(v.a)({},e),{},{account:a,operator:r}):Object(v.a)({},e)}));i(c)},l=function(e){var t=e.id,a=e.realm,r=e.operator,c=n.map((function(e){return e.id===t?Object(v.a)(Object(v.a)({},e),{},{realm:a,operator:r}):Object(v.a)({},e)}));i(c)},d=function(e){var t=e.id,a=e.credential_text,r=e.operator,c=n.map((function(e){return e.id===t?Object(v.a)(Object(v.a)({},e),{},{credential_text:a,operator:r}):Object(v.a)({},e)}));i(c)},b=function(e){var t=e.id,a=e.deleted,r=e.operator,c=n.map((function(e){return e.id===t?Object(v.a)(Object(v.a)({},e),{},{deleted:a,operator:r}):Object(v.a)({},e)}));i(c)};return Object(x.jsx)(S.a,{component:T.a,className:"mythicElement",children:Object(x.jsxs)(k.a,{stickyHeader:!0,size:"small",style:{maxWidth:"100%",overflow:"scroll"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{style:{width:"4rem"},children:"Delete"}),Object(x.jsx)(C.a,{style:{width:"4rem"},children:"Edit"}),Object(x.jsx)(C.a,{children:"Account"}),Object(x.jsx)(C.a,{children:"Realm"}),Object(x.jsx)(C.a,{children:"Credential"}),Object(x.jsx)(C.a,{style:{width:"20rem"},children:"Comment"}),Object(x.jsx)(C.a,{style:{width:"15rem"},children:"Timestamp"}),Object(x.jsx)(C.a,{children:"Task / Operator"}),Object(x.jsx)(C.a,{style:{width:"5rem"},children:"Type"})]})}),Object(x.jsx)(w.a,{children:n.map((function(e){return Object(x.jsx)(mb,Object(v.a)({onEditComment:r,onEditAccount:c,onEditRealm:l,onEditCredential:d,onEditDeleted:b},e),"cred"+e.id)}))})]})})}function mb(e){var t,a=Object(f.a)(h.b),n=Object(ee.a)(),i=s.a.useState(!1),r=Object(u.a)(i,2),c=r[0],o=r[1],l=s.a.useState(!1),d=Object(u.a)(l,2),j=d[0],p=d[1],m=s.a.useState(!1),g=Object(u.a)(m,2),y=g[0],_=g[1],k=s.a.useState(!1),w=Object(u.a)(k,2),S=w[0],D=w[1],$=s.a.useState(!1),P=Object(u.a)($,2),A=P[0],F=P[1],N=s.a.useRef(null),q=s.a.useState(!1),R=Object(u.a)(q,2),B=R[0],z=R[1],W=e.credential_text.length>200?e.credential_text.slice(0,200)+"...":e.credential_text,H=Object(pe.a)(lb,{onCompleted:function(t){O.b.success("updated comment"),e.onEditComment(t.update_credential_by_pk)}}),U=Object(u.a)(H,1)[0],G=Object(pe.a)(db,{onCompleted:function(t){O.b.success("updated account"),e.onEditAccount(t.update_credential_by_pk)}}),K=Object(u.a)(G,1)[0],V=Object(pe.a)(ub,{onCompleted:function(t){O.b.success("updated realm"),e.onEditRealm(t.update_credential_by_pk)}}),Q=Object(u.a)(V,1)[0],J=Object(pe.a)(bb,{onCompleted:function(t){O.b.success("updated credential"),e.onEditCredential(t.update_credential_by_pk)}}),X=Object(u.a)(J,1)[0],te=Object(pe.a)(jb,{onCompleted:function(t){O.b.success("updated deleted status"),e.onEditDeleted(t.update_credential_by_pk)}}),ae=Object(u.a)(te,1)[0],ne=[{name:"Edit Account",click:function(e){e.stopPropagation(),_(!0)}},{name:"Edit Realm",click:function(e){D(!0)}},{name:"Edit Credential",click:function(e){F(!0)}},{name:"Edit Comment",click:function(e){p(!0)}}],ie=function(e){N.current&&N.current.contains(e.target)||z(!1)};return Object(x.jsx)(s.a.Fragment,{children:Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(fa.a,{onClose:function(){o(!1)},onSubmit:function(){ae({variables:{credential_id:e.id,deleted:!e.deleted}})},open:c,acceptText:e.deleted?"Restore":"Remove"}),j&&Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"md",open:j,onClose:function(){p(!1)},innerDialog:Object(x.jsx)(Y.b,{title:"Edit Credential Comment",onSubmit:function(t){U({variables:{credential_id:e.id,comment:t}})},value:e.comment,onClose:function(){p(!1)}})}),y&&Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"md",open:y,onClose:function(){_(!1)},innerDialog:Object(x.jsx)(Y.b,{title:"Edit Credential Account",onSubmit:function(t){K({variables:{credential_id:e.id,account:t}})},value:e.account,onClose:function(){_(!1)}})}),S&&Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"md",open:S,onClose:function(){D(!1)},innerDialog:Object(x.jsx)(Y.b,{title:"Edit Credential Realm",onSubmit:function(t){Q({variables:{credential_id:e.id,realm:t}})},value:e.realm,onClose:function(){D(!1)}})}),A&&Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"md",open:A,onClose:function(){F(!1)},innerDialog:Object(x.jsx)(Y.b,{title:"Edit Credential Credential",onSubmit:function(t){X({variables:{credential_id:e.id,credential:t}})},value:e.credential_text,onClose:function(){F(!1)}})}),Object(x.jsxs)(C.a,{children:[e.deleted?Object(x.jsx)(kt.a,{title:"Restore Credential for use in Tasking",children:Object(x.jsx)(E.a,{size:"small",onClick:function(){o(!0)},style:{color:n.palette.success.main},variant:"contained",children:Object(x.jsx)(xc.a,{})})}):Object(x.jsx)(kt.a,{title:"Delete Credential so it can't be used in Tasking",children:Object(x.jsx)(E.a,{size:"small",onClick:function(){o(!0)},style:{color:n.palette.error.main},variant:"contained",children:Object(x.jsx)(M.a,{})})})," "]}),Object(x.jsxs)(C.a,{children:[Object(x.jsx)(b.a,{size:"small",variant:"contained",color:"primary",ref:N,onClick:function(){return z(!0)},children:"Edit"}),Object(x.jsx)(et.a,{open:B,anchorEl:N.current,role:void 0,transition:!0,style:{zIndex:4},children:function(e){var t=e.TransitionProps,a=e.placement;return Object(x.jsx)(Xe.a,Object(v.a)(Object(v.a)({},t),{},{style:{transformOrigin:"bottom"===a?"center top":"center bottom"},children:Object(x.jsx)(T.a,{variant:"outlined",style:{backgroundColor:"dark"===n.palette.type?n.palette.primary.dark:n.palette.primary.light,color:"white"},children:Object(x.jsx)(Ze.a,{onClickAway:ie,children:Object(x.jsx)(at.a,{id:"split-button-menu",children:ne.map((function(e,t){return Object(x.jsx)(tt.a,{onClick:function(e){return function(e,t){ne[t].click(e),z(!1)}(e,t)},children:e.name},e.name+t)}))})})})}))}})]}),Object(x.jsx)(C.a,{children:Object(x.jsx)(L.a,{variant:"body2",style:{wordBreak:"break-all"},children:e.account})}),Object(x.jsx)(C.a,{children:Object(x.jsx)(L.a,{variant:"body2",style:{wordBreak:"break-all"},children:e.realm})}),Object(x.jsx)(C.a,{children:e.credential_text.length>64?Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(kt.a,{title:"Copy to clipboard",children:Object(x.jsx)(E.a,{onClick:function(){return t=e.credential_text,void(Object(Zo.a)(t)?O.b.success("Copied text!"):O.b.error("Failed to copy text"));var t},size:"small",children:Object(x.jsx)(Mt.a,{icon:zt.f})})}),Object(x.jsx)(L.a,{variant:"body2",style:{wordBreak:"break-all",maxWidth:"40rem"},children:W})]}):Object(x.jsx)(s.a.Fragment,{children:Object(x.jsx)(L.a,{variant:"body2",style:{wordBreak:"break-all",maxWidth:"40rem"},children:W})})}),Object(x.jsx)(C.a,{children:Object(x.jsx)(L.a,{variant:"body2",style:{wordBreak:"break-all",display:"inline-block"},children:e.comment})}),Object(x.jsx)(C.a,{children:Object(x.jsx)(L.a,{variant:"body2",style:{wordBreak:"break-all"},children:Object(Z.b)(e.timestamp,(null===a||void 0===a||null===(t=a.user)||void 0===t?void 0:t.view_utc_time)||!1)})}),Object(x.jsx)(C.a,{children:null!==e.task_id?Object(x.jsx)(co.a,{style:{wordBreak:"break-all"},underline:"always",target:"_blank",href:"/new/task/"+e.task_id,children:e.task_id}):e.operator.username}),Object(x.jsx)(C.a,{children:e.type})]})})}var hb,fb,Ob,xb,gb,yb,vb=a(172),_b=Object(be.a)(hb||(hb=Object(_.a)(["\nfragment credentialData on credential{\n account\n comment\n credential_text\n id\n realm\n type\n task_id\n timestamp\n deleted\n operator {\n username\n }\n}\n"]))),kb=20,wb=Object(be.a)(fb||(fb=Object(_.a)(["\n","\nquery accountQuery($operation_id: Int!, $account: String!, $offset: Int!, $fetchLimit: Int!) {\n credential_aggregate(distinct_on: id, where: {account: {_ilike: $account}, operation_id: {_eq: $operation_id}}) {\n aggregate {\n count\n }\n }\n credential(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {account: {_ilike: $account}, operation_id: {_eq: $operation_id}}) {\n ...credentialData\n }\n }\n"])),_b),Cb=Object(be.a)(Ob||(Ob=Object(_.a)(["\n","\nquery accountQuery($operation_id: Int!, $realm: String!, $offset: Int!, $fetchLimit: Int!) {\n credential_aggregate(distinct_on: id, where: {realm: {_ilike: $realm}, operation_id: {_eq: $operation_id}}) {\n aggregate {\n count\n }\n }\n credential(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {realm: {_ilike: $realm}, operation_id: {_eq: $operation_id}}) {\n ...credentialData\n }\n }\n"])),_b),Sb=Object(be.a)(xb||(xb=Object(_.a)(["\n","\nquery accountQuery($operation_id: Int!, $credential: String!, $offset: Int!, $fetchLimit: Int!) {\n credential_aggregate(distinct_on: id, where: {credential_text: {_ilike: $credential}, operation_id: {_eq: $operation_id}}) {\n aggregate {\n count\n }\n }\n credential(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {credential_text: {_ilike: $credential}, operation_id: {_eq: $operation_id}}) {\n ...credentialData\n }\n }\n"])),_b),Db=Object(be.a)(gb||(gb=Object(_.a)(["\n","\nquery accountQuery($operation_id: Int!, $comment: String!, $offset: Int!, $fetchLimit: Int!) {\n credential_aggregate(distinct_on: id, where: {comment: {_ilike: $comment}, operation_id: {_eq: $operation_id}}) {\n aggregate {\n count\n }\n }\n credential(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {comment: {_ilike: $comment}, operation_id: {_eq: $operation_id}}) {\n ...credentialData\n }\n }\n"])),_b),Ib=Object(be.a)(yb||(yb=Object(_.a)(["\n","\nmutation createCredential($comment: String!, $account: String!, $realm: String!, $type: String!, $credential: bytea!) {\n insert_credential_one(object: {account: $account, credential_raw: $credential, comment: $comment, realm: $realm, type: $type}) {\n id\n }\n }\n"])),_b);function Tb(e){return Object(x.jsx)(go.a,Object(v.a)({label:"Credentials",iconComponent:Object(x.jsx)(sb.a,{})},e))}var $b,Pb,Ab,Eb,Lb,Fb,Nb,qb=function(e){var t=Object(ee.a)(),a=s.a.useState(""),n=Object(u.a)(a,2),i=n[0],r=n[1],c=s.a.useState("Account"),o=Object(u.a)(c,2),l=o[0],d=o[1],p=["Account","Realm","Comment","Credential"],m=s.a.useState(!1),h=Object(u.a)(m,2),f=h[0],g=h[1],y=Object(pe.a)(Ib,{fetchPolicy:"no-cache",onCompleted:function(e){O.b.success("Successfully created new credential")},onError:function(e){O.b.error("Failed to create credential"),console.log(e)}}),v=Object(u.a)(y,1)[0],_=function(t,a,n){var r=a||i;switch(n||l){case"Account":e.onAccountSearch({search:r,offset:0});break;case"Realm":e.onRealmSearch({search:r,offset:0});break;case"Comment":e.onCommentSearch({search:r,offset:0});break;case"Credential":e.onCredentialSearch({search:r,offset:0});break;case"Type":e.OnTypeSearch({search:r,offset:0})}};return s.a.useEffect((function(){if(e.value===e.index){var t=new URLSearchParams(window.location.search),a="",n="Account";t.has("search")&&(r(t.get("search")),a=t.get("search")),t.has("searchField")&&p.includes(t.get("searchField"))?(d(t.get("searchField")),e.onChangeSearchField(t.get("searchField")),n=t.get("searchField")):(d("Account"),e.onChangeSearchField("Account"),e.changeSearchParam("searchField","Account")),_(0,a,n)}}),[e.value,e.index]),Object(x.jsxs)(ft.a,{container:!0,spacing:2,style:{paddingTop:"10px",paddingLeft:"10px",maxWidth:"100%"},children:[Object(x.jsx)(ft.a,{item:!0,xs:5,children:Object(x.jsx)(j.a,{placeholder:"Search...",value:i,onChange:function(t,a,n){r(a),e.changeSearchParam("search",a)},onEnter:_,name:"Search...",InputProps:{endAdornment:Object(x.jsx)(s.a.Fragment,{children:Object(x.jsx)(uo.a,{title:"Search",children:Object(x.jsx)(E.a,{onClick:_,children:Object(x.jsx)(Gd.a,{style:{color:t.palette.info.main}})})})}),style:{padding:0}}})}),Object(x.jsxs)(ft.a,{item:!0,xs:2,children:[Object(x.jsx)(Hd.a,{component:"legend",children:"Search Credential's"}),Object(x.jsx)(ht.a,{style:{marginBottom:"10px",width:"15rem",marginTop:"5px"},value:l,onChange:function(t){d(t.target.value),e.onChangeSearchField(t.target.value),e.changeSearchParam("searchField",t.target.value)},children:p.map((function(e,t){return Object(x.jsx)(tt.a,{value:e,children:e},"searchopt"+e)}))})]}),Object(x.jsxs)(ft.a,{item:!0,xs:2,children:[Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"md",open:f,onClose:function(){g(!1)},innerDialog:Object(x.jsx)(vb.a,{onSubmit:function(e){var t=e.type,a=e.account,n=e.realm,i=e.comment,r=e.credential;v({variables:{type:t,account:a,realm:n,comment:i,credential:r}})},onClose:function(){g(!1)}})}),Object(x.jsx)(b.a,{size:"small",color:"primary",onClick:function(){g(!0)},variant:"contained",children:"New Credential"})]})]})},Rb=function(e){var t=s.a.useState([]),a=Object(u.a)(t,2),n=a[0],i=a[1],r=s.a.useState(0),c=Object(u.a)(r,2),o=c[0],l=c[1],d=s.a.useState(""),b=Object(u.a)(d,2),j=b[0],p=b[1],m=s.a.useState("Account"),g=Object(u.a)(m,2),y=g[0],_=g[1],k=Object(f.a)(h.b),w=function(e){O.b.dismiss(),l(e.credential_aggregate.aggregate.count),i(e.credential)},C=function(e){O.b.dismiss(),O.b.error("Failed to fetch data for search"),console.log(e)},S=Object(pt.a)(wb,{fetchPolicy:"no-cache",onCompleted:w,onError:C}),D=Object(u.a)(S,1)[0],I=Object(pt.a)(Cb,{fetchPolicy:"no-cache",onCompleted:w,onError:C}),T=Object(u.a)(I,1)[0],$=Object(pt.a)(Sb,{fetchPolicy:"no-cache",onCompleted:w,onError:C}),P=Object(u.a)($,1)[0],A=Object(pt.a)(Db,{fetchPolicy:"no-cache",onCompleted:w,onError:C}),E=Object(u.a)(A,1)[0],F=function(e){var t=e.search,a=e.offset;O.b.info("Searching...",{persist:!0}),p(t),D({variables:{operation_id:k.user.current_operation_id,offset:a,fetchLimit:kb,account:"%"+t+"%"}})},N=function(e){var t=e.search,a=e.offset;O.b.info("Searching...",{persist:!0}),p(t),T({variables:{operation_id:k.user.current_operation_id,offset:a,fetchLimit:kb,realm:"%"+t+"%"}})},q=function(e){var t=e.search,a=e.offset;O.b.info("Searching...",{persist:!0}),p(t),P({variables:{operation_id:k.user.current_operation_id,offset:a,fetchLimit:kb,credential:"%"+t+"%"}})},R=function(e){var t=e.search,a=e.offset;O.b.info("Searching...",{persist:!0}),p(t);var n=t;""===n&&(n="_"),E({variables:{operation_id:k.user.current_operation_id,offset:a,fetchLimit:kb,comment:"%"+n+"%"}})};return Object(x.jsxs)(go.c,Object(v.a)(Object(v.a)({},e),{},{children:[Object(x.jsx)(qb,{onChangeSearchField:function(e){switch(_(e),e){case"Account":F({search:j,offset:0});break;case"Realm":N({search:j,offset:0});break;case"Credential":q({search:j,offset:0});break;case"Comment":R({search:j,offset:0})}},onAccountSearch:F,value:e.value,index:e.index,onRealmSearch:N,onCredentialSearch:q,onCommentSearch:R,changeSearchParam:e.changeSearchParam}),Object(x.jsx)("div",{style:{overflowY:"auto",flexGrow:1},children:n.length>0?Object(x.jsx)(pb,{credentials:n}):Object(x.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",left:"50%",top:"50%"},children:"No Search Results"})}),Object(x.jsxs)("div",{style:{background:"transparent",display:"flex",justifyContent:"center",alignItems:"center"},children:[Object(x.jsx)(Kd.a,{count:Math.ceil(o/kb),variant:"outlined",color:"primary",boundaryCount:1,siblingCount:1,onChange:function(e,t){if(1===t)switch(y){case"Account":F({search:j,offset:0});break;case"Realm":N({search:j,offset:0});break;case"Credential":q({search:j,offset:0});break;case"Comment":R({search:j,offset:0})}else switch(y){case"Account":F({search:j,offset:(t-1)*kb});break;case"Realm":N({search:j,offset:(t-1)*kb});break;case"Credential":q({search:j,offset:(t-1)*kb});break;case"Comment":R({search:j,offset:(t-1)*kb})}},showFirstButton:!0,showLastButton:!0,style:{padding:"20px"}}),Object(x.jsxs)(L.a,{style:{paddingLeft:"10px"},children:["Total Results: ",o]})]})]}))};function Bb(e){var t=s.a.useState([]),a=Object(u.a)(t,2),n=a[0],i=a[1];return Object(o.useEffect)((function(){for(var t=e.keylogs.reduce((function(e,t){return void 0===e[t.user]?e[t.user]=Object(jt.a)({},t.task.callback.host,Object(jt.a)({},t.window,[Object(v.a)({},t)])):"undefined"===e[t.user][t.task.callback.host]?e[t.user][t.task.callback.host]=Object(jt.a)({},t.window,[Object(v.a)({},t)]):void 0===e[t.user][t.task.callback.host][t.window]?e[t.user][t.task.callback.host][t.window]=[Object(v.a)({},t)]:e[t.user][t.task.callback.host][t.window].push(Object(v.a)({},t)),Object(v.a)({},e)}),{}),a=[],n=0,r=Object.entries(t);n0?Object(x.jsx)(Bb,{keylogs:n}):Object(x.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",left:"50%",top:"50%"},children:"No Search Results"})}),Object(x.jsxs)("div",{style:{background:"transparent",display:"flex",justifyContent:"center",alignItems:"center"},children:[Object(x.jsx)(Kd.a,{count:Math.ceil(o/zb),variant:"outlined",color:"primary",boundaryCount:1,siblingCount:1,onChange:function(e,t){if(1===t)switch(y){case"Keystroke":B({search:j,offset:0});break;case"User":M({search:j,offset:0});break;case"Program":z({search:j,offset:0});break;case"Host":W({search:j,offset:0})}else switch(y){case"Keystroke":B({search:j,offset:(t-1)*zb});break;case"User":M({search:j,offset:(t-1)*zb});break;case"Program":z({search:j,offset:(t-1)*zb});break;case"Host":W({search:j,offset:(t-1)*zb})}},showFirstButton:!0,showLastButton:!0,style:{padding:"20px"}}),Object(x.jsxs)(L.a,{style:{paddingLeft:"10px"},children:["Total Results: ",o]})]})]}))},aj=a(212),nj=a.n(aj),ij=a(296),rj=Object(be.a)(Jb||(Jb=Object(_.a)(["\nmutation updateComment ($token_id: Int!, $description: String) {\n update_token_by_pk(pk_columns: {id: $token_id}, _set: {description: $description}) {\n description\n id\n }\n}\n"]))),cj=Object(be.a)(Yb||(Yb=Object(_.a)(["\nquery getCommentQuery ($token_id: Int!) {\n token_by_pk(id: $token_id) {\n description\n id\n }\n}\n"])));function oj(e){var t=Object(o.useState)(""),a=Object(u.a)(t,2),n=a[0],i=a[1];Object(je.a)(cj,{variables:{token_id:e.token_id},onCompleted:function(e){i(e.token_by_pk.description)},fetchPolicy:"network-only"});var r=Object(pe.a)(rj,{onCompleted:function(t){console.log("udpated"),e.onClose()},onError:function(t){console.error(t),e.onClose()}}),c=Object(u.a)(r,1)[0],l=function(){c({variables:{token_id:e.token_id,description:n}})};return Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(V.a,{id:"form-dialog-title",children:"Edit Token Description"}),Object(x.jsx)(G.a,{dividers:!0,children:Object(x.jsx)(j.a,{autoFocus:!0,onEnter:l,onChange:function(e,t,a){i(t)},value:n})}),Object(x.jsxs)(U.a,{children:[Object(x.jsx)(b.a,{onClick:e.onClose,variant:"contained",color:"primary",children:"Close"}),Object(x.jsx)(b.a,{onClick:l,variant:"contained",color:"secondary",children:"Submit"})]})]})}var sj,lj,dj,uj,bj,jj=Object(be.a)(Zb||(Zb=Object(_.a)(["\nmutation updateCredentialDeletedMutation($token_id: Int!, $deleted: Boolean!){\n update_token_by_pk(pk_columns: {id: $token_id}, _set: {deleted: $deleted}) {\n deleted\n id\n }\n}\n"]))),pj=Object(be.a)(Xb||(Xb=Object(_.a)(["\nmutation updateCallbacksOfDeletedTokenMutation($token_id: Int!, $deleted: Boolean!){\n update_callbacktoken(where: {token_id: {_eq: $token_id}}, _set: {deleted: $deleted}) {\n affected_rows\n }\n}\n"])));function mj(e){var t=s.a.useState([]),a=Object(u.a)(t,2),n=a[0],i=a[1];Object(o.useEffect)((function(){i(Object(y.a)(e.tokens))}),[e.credentials]);var r=function(e){var t=e.id,a=e.deleted,r=n.map((function(e){return e.id===t?Object(v.a)(Object(v.a)({},e),{},{deleted:a}):Object(v.a)({},e)}));i(r)};return Object(x.jsx)(S.a,{component:T.a,className:"mythicElement",style:{height:"calc(78vh)"},children:Object(x.jsxs)(k.a,{stickyHeader:!0,size:"small",style:{maxWidth:"100%",overflow:"scroll"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{style:{width:"5rem"},children:"Delete"}),Object(x.jsx)(C.a,{children:"User"}),Object(x.jsx)(C.a,{children:"Groups"}),Object(x.jsx)(C.a,{children:"TokenId"}),Object(x.jsx)(C.a,{children:"Logon Session"}),Object(x.jsx)(C.a,{children:"Description"}),Object(x.jsx)(C.a,{children:"Task"}),Object(x.jsx)(C.a,{children:"Callbacks With Handles"}),Object(x.jsx)(C.a,{children:"Host"})]})}),Object(x.jsx)(w.a,{children:n.map((function(e){return Object(x.jsx)(hj,Object(v.a)({onEditDeleted:r},e),"cred"+e.id)}))})]})})}function hj(e){var t,a=Object(ee.a)(),n=s.a.useState(!1),i=Object(u.a)(n,2),r=i[0],c=i[1],o=s.a.useState(!1),l=Object(u.a)(o,2),d=l[0],b=l[1],j=s.a.useState(!1),p=Object(u.a)(j,2),m=p[0],h=p[1],f=Object(pe.a)(pj,{onCompleted:function(e){O.b.success("Removed token from callback")},onError:function(e){O.b.error("Operation not allowed")}}),g=Object(u.a)(f,1)[0],y=Object(pe.a)(jj,{onCompleted:function(t){O.b.success("Updated deleted status"),null===e.callbacktokens||e.deleted||g({variables:{token_id:e.id,deleted:!0}}),e.onEditDeleted(t.update_token_by_pk)},onError:function(e){O.b.error("Operation not allowed")}}),v=Object(u.a)(y,1)[0];return Object(x.jsx)(s.a.Fragment,{children:Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(fa.a,{onClose:function(){c(!1)},onSubmit:function(){v({variables:{token_id:e.id,deleted:!e.deleted}})},open:r,acceptText:e.deleted?"Restore":"Remove"}),Object(x.jsxs)(C.a,{children:[e.deleted?Object(x.jsx)(kt.a,{title:"Restore Token for use in Tasking",children:Object(x.jsx)(E.a,{size:"small",onClick:function(){c(!0)},style:{color:a.palette.success.main},variant:"contained",children:Object(x.jsx)(xc.a,{})})}):Object(x.jsx)(kt.a,{title:"Delete Token so it can't be used in Tasking",children:Object(x.jsx)(E.a,{size:"small",onClick:function(){c(!0)},style:{color:a.palette.error.main},variant:"contained",children:Object(x.jsx)(M.a,{})})})," "]}),Object(x.jsx)(C.a,{children:Object(x.jsx)(L.a,{variant:"body2",style:{wordBreak:"break-all"},children:e.User})}),Object(x.jsx)(C.a,{children:Object(x.jsx)(L.a,{variant:"body2",style:{wordBreak:"break-all"},children:e.Groups})}),Object(x.jsxs)(C.a,{children:[Object(x.jsx)(L.a,{variant:"body2",style:{wordBreak:"break-all",display:"inline-block"},children:e.TokenId}),Object(x.jsx)(kt.a,{title:"View Token Information",children:Object(x.jsx)(E.a,{size:"small",color:"primary",onClick:function(){b(!0)},children:Object(x.jsx)(nj.a,{})})}),Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"md",open:d,onClose:function(){b(!1)},innerDialog:Object(x.jsx)(ij.a,{token_id:e.id,onClose:function(){b(!1)}})})]}),Object(x.jsx)(C.a,{children:null===e.logonsession?Object(x.jsx)(L.a,{variant:"body2",style:{wordBreak:"break-all",display:"inline-block"},children:"No Logon Session Data"}):Object(x.jsxs)(s.a.Fragment,{children:[e.logonsession.LogonId," ",null!==e.logonsession.LogonType?" ("+e.logonsession.LogonType+")":null]})}),Object(x.jsxs)(C.a,{children:[Object(x.jsx)(L.a,{variant:"body2",style:{wordBreak:"break-all",display:"inline-block"},children:e.description}),Object(x.jsx)(E.a,{onClick:function(){return h(!0)},size:"small",children:Object(x.jsx)(_i.a,{})}),Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"md",open:m,onClose:function(){h(!1)},innerDialog:Object(x.jsx)(oj,{token_id:e.id,onClose:function(){h(!1)}})})]}),Object(x.jsx)(C.a,{children:Object(x.jsx)(co.a,{style:{wordBreak:"break-all"},color:"textPrimary",underline:"always",target:"_blank",href:"/new/task/"+e.task.id,children:e.task.id})}),Object(x.jsx)(C.a,{children:(null===(t=e.callbacktokens)||void 0===t?void 0:t.map((function(e){return e.callback_id})))||null}),Object(x.jsx)(C.a,{children:e.host})]})})}var fj=Object(be.a)(sj||(sj=Object(_.a)(["\nfragment tokenData on token{\n id\n User\n Groups\n TokenId\n logonsession {\n LogonType\n UserName\n LogonDomain\n id\n LogonId\n authenticationpackages(where: {deleted: {_eq: false}}) {\n Name\n id\n }\n }\n task {\n id\n }\n host\n deleted\n description\n callbacktokens(where: {deleted: {_eq: false}}) {\n callback_id\n id\n }\n}\n"]))),Oj=20,xj=Object(be.a)(lj||(lj=Object(_.a)(["\n","\nquery usergroupQuery($operation_id: Int!, $name: String!, $offset: Int!, $fetchLimit: Int!) {\n token_aggregate(distinct_on: id, where: {task: {callback: {operation_id: {_eq: $operation_id}}}, _or: [{Groups: {_ilike: $name}}, {User: {_ilike: $name}}, {logonsession: {UserName: {_ilike: $name}}}]}) {\n aggregate {\n count\n }\n }\n token(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {task: {callback: {operation_id: {_eq: $operation_id}}}, _or: [{Groups: {_ilike: $name}}, {User: {_ilike: $name}}, {logonsession: {UserName: {_ilike: $name}}}]}) {\n ...tokenData\n }\n}\n"])),fj),gj=Object(be.a)(dj||(dj=Object(_.a)(["\n","\nquery sidQuery($operation_id: Int!, $sid: String!, $offset: Int!, $fetchLimit: Int!) {\n token_aggregate(distinct_on: id, where: {task: {callback: {operation_id: {_eq: $operation_id}}}, _or: [{AppContainerSid: {_ilike: $sid}}, {LogonSid: {_ilike: $sid}}, {Owner: {_ilike: sid}}, {PrimaryGroup: {_ilike: sid}}, {DefaultDacl: {_ilike: sid}}]}) {\n aggregate {\n count\n }\n }\n token(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {task: {callback: {operation_id: {_eq: $operation_id}}}, _or: [{AppContainerSid: {_ilike: $sid}}, {LogonSid: {_ilike: $sid}}, {Owner: {_ilike: sid}}, {PrimaryGroup: {_ilike: sid}}, {DefaultDacl: {_ilike: sid}}]}) {\n ...tokenData\n }\n}\n"])),fj),yj=Object(be.a)(uj||(uj=Object(_.a)(["\n","\nquery logontypeQuery($operation_id: Int!, $logontype: String!, $offset: Int!, $fetchLimit: Int!) {\n token_aggregate(distinct_on: id, where: {logonsession: {LogonType: { _ilike: $logontype}}, task: {callback: {operation_id: {_eq: $operation_id}}}}) {\n aggregate {\n count\n }\n }\n token(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {logonsession: {LogonType: { _ilike: $logontype}}, task: {callback: {operation_id: {_eq: $operation_id}}}}) {\n ...tokenData\n }\n }\n"])),fj),vj=Object(be.a)(bj||(bj=Object(_.a)(["\n","\nquery hostQuery($operation_id: Int!, $host: String!, $offset: Int!, $fetchLimit: Int!) {\n token_aggregate(distinct_on: id, where: {host: {_ilike: $host}, task: {callback: {operation_id: {_eq: $operation_id}}}}) {\n aggregate {\n count\n }\n }\n token(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {host: {_ilike: $host}, task: {callback: {operation_id: {_eq: $operation_id}}}}) {\n ...tokenData\n }\n}\n"])),fj);function _j(e){return Object(x.jsx)(go.a,Object(v.a)({label:"Tokens",iconComponent:Object(x.jsx)(nj.a,{})},e))}var kj,wj,Cj,Sj,Dj,Ij,Tj=function(e){var t=Object(ee.a)(),a=s.a.useState(""),n=Object(u.a)(a,2),i=n[0],r=n[1],c=s.a.useState("User/Group"),o=Object(u.a)(c,2),l=o[0],d=o[1],b=["User/Group","SID","LogonType","Host"],p=function(t,a,n){var r=a||i;switch(n||l){case"User/Group":e.onUserGroupSearch({search:r,offset:0});break;case"SID":e.onSIDSearch({search:r,offset:0});break;case"LogonType":e.onLogonTypeSearch({search:r,offset:0});break;case"Host":e.onHostSearch({search:r,offset:0})}};return s.a.useEffect((function(){if(e.value===e.index){var t=new URLSearchParams(window.location.search),a="",n="User/Group";t.has("search")&&(r(t.get("search")),a=t.get("search")),t.has("searchField")&&b.includes(t.get("searchField"))?(d(t.get("searchField")),e.onChangeSearchField(t.get("searchField")),n=t.get("searchField")):(d("User/Group"),e.onChangeSearchField("User/Group"),e.changeSearchParam("searchField","User/Group")),p(0,a,n)}}),[e.value,e.index]),Object(x.jsxs)(ft.a,{container:!0,spacing:2,style:{paddingTop:"10px",paddingLeft:"10px",maxWidth:"100%"},children:[Object(x.jsx)(ft.a,{item:!0,xs:6,children:Object(x.jsx)(j.a,{placeholder:"Search...",value:i,onChange:function(t,a,n){r(a),e.changeSearchParam("search",a)},onEnter:p,name:"Search...",InputProps:{endAdornment:Object(x.jsx)(s.a.Fragment,{children:Object(x.jsx)(uo.a,{title:"Search",children:Object(x.jsx)(E.a,{onClick:p,children:Object(x.jsx)(Gd.a,{style:{color:t.palette.info.main}})})})}),style:{padding:0}}})}),Object(x.jsxs)(ft.a,{item:!0,xs:2,children:[Object(x.jsx)(Hd.a,{component:"legend",children:"Search Tokens by"}),Object(x.jsx)(ht.a,{style:{marginBottom:"10px",width:"15rem",marginTop:"5px"},value:l,onChange:function(t){d(t.target.value),e.onChangeSearchField(t.target.value),e.changeSearchParam("searchField",t.target.value)},children:b.map((function(e,t){return Object(x.jsx)(tt.a,{value:e,children:e},"searchopt"+e)}))})]})]})},$j=function(e){var t=s.a.useState([]),a=Object(u.a)(t,2),n=a[0],i=a[1],r=s.a.useState(0),c=Object(u.a)(r,2),o=c[0],l=c[1],d=s.a.useState(""),b=Object(u.a)(d,2),j=b[0],p=b[1],m=s.a.useState("User/Group"),g=Object(u.a)(m,2),y=g[0],_=g[1],k=Object(f.a)(h.b),w=function(e){O.b.dismiss(),l(e.token_aggregate.aggregate.count),i(e.token)},C=function(e){O.b.dismiss(),O.b.error("Failed to fetch data for search"),console.log(e)},S=Object(pt.a)(xj,{fetchPolicy:"network-only",onCompleted:w,onError:C}),D=Object(u.a)(S,1)[0],I=Object(pt.a)(gj,{fetchPolicy:"no-cache",onCompleted:w,onError:C}),T=Object(u.a)(I,1)[0],$=Object(pt.a)(yj,{fetchPolicy:"no-cache",onCompleted:w,onError:C}),P=Object(u.a)($,1)[0],A=Object(pt.a)(vj,{fetchPolicy:"no-cache",onCompleted:w,onError:C}),E=Object(u.a)(A,1)[0],F=function(e){var t=e.search,a=e.offset;O.b.info("Searching...",{persist:!0}),p(t);var n=t;""===n&&(n="_"),D({variables:{operation_id:k.user.current_operation_id,offset:a,fetchLimit:Oj,name:"%"+n+"%"}})},N=function(e){var t=e.search,a=e.offset;O.b.info("Searching...",{persist:!0}),p(t);var n=t;""===n&&(n="_"),P({variables:{operation_id:k.user.current_operation_id,offset:a,fetchLimit:Oj,logontype:"%"+n+"%"}})},q=function(e){var t=e.search,a=e.offset;O.b.info("Searching...",{persist:!0}),p(t);var n=t;""===n&&(n="_"),E({variables:{operation_id:k.user.current_operation_id,offset:a,fetchLimit:Oj,host:"%"+n+"%"}})},R=function(e){var t=e.search,a=e.offset;O.b.info("Searching...",{persist:!0}),p(t);var n=t;""===n&&(n="_"),T({variables:{operation_id:k.user.current_operation_id,offset:a,fetchLimit:Oj,sid:"%"+n+"%"}})};return Object(x.jsxs)(go.c,Object(v.a)(Object(v.a)({},e),{},{children:[Object(x.jsx)(Tj,{onChangeSearchField:function(e){switch(_(e),i([]),e){case"User/Group":F({search:j,offset:0});break;case"SID":R({search:j,offset:0});break;case"LogonType":N({search:j,offset:0});break;case"Host":q({search:j,offset:0})}},onUserGroupSearch:F,value:e.value,index:e.index,onLogonTypeSearch:N,onHostSearch:q,onSIDSearch:R,changeSearchParam:e.changeSearchParam}),Object(x.jsx)("div",{style:{overflowY:"auto",flexGrow:1},children:n.length>0?Object(x.jsx)(mj,{tokens:n}):Object(x.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",left:"50%",top:"50%"},children:"No Search Results"})}),Object(x.jsxs)("div",{style:{background:"transparent",display:"flex",justifyContent:"center",alignItems:"center"},children:[Object(x.jsx)(Kd.a,{count:Math.ceil(o/Oj),variant:"outlined",color:"primary",boundaryCount:1,siblingCount:1,onChange:function(e,t){if(1===t)switch(y){case"User/Group":F({search:j,offset:0});break;case"SID":R({search:j,offset:0});break;case"LogonType":N({search:j,offset:0});break;case"Host":q({search:j,offset:0})}else switch(y){case"User/Group":F({search:j,offset:(t-1)*Oj});break;case"SID":R({search:j,offset:(t-1)*Oj});break;case"LogonType":N({search:j,offset:(t-1)*Oj});break;case"Host":q({search:j,offset:(t-1)*Oj})}},showFirstButton:!0,showLastButton:!0,style:{padding:"20px"}}),Object(x.jsxs)(L.a,{style:{paddingLeft:"10px"},children:["Total Results: ",o]})]})]}))},Pj=a(238),Aj=a.n(Pj);function Ej(e){var t=s.a.useState([]),a=Object(u.a)(t,2),n=a[0],i=a[1];Object(o.useEffect)((function(){i(Object(y.a)(e.callbacks))}),[e.callbacks]);var r=function(e){var t=e.id,a=e.active,r=n.map((function(e){return e.id===t?Object(v.a)(Object(v.a)({},e),{},{active:a}):Object(v.a)({},e)}));i(r)};return Object(x.jsx)(S.a,{component:T.a,className:"mythicElement",children:Object(x.jsxs)(k.a,{stickyHeader:!0,size:"small",style:{maxWidth:"100%",overflow:"auto"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{style:{width:"5rem"},children:"Hide"}),Object(x.jsx)(C.a,{children:"User"}),Object(x.jsx)(C.a,{children:"Domain"}),Object(x.jsx)(C.a,{children:"Host"}),Object(x.jsx)(C.a,{children:"Description"}),Object(x.jsx)(C.a,{children:"IP"}),Object(x.jsx)(C.a,{children:"Process Name"}),Object(x.jsx)(C.a,{children:"ID"}),Object(x.jsx)(C.a,{children:"Checkin Times"})]})}),Object(x.jsx)(w.a,{children:n.map((function(e){return Object(x.jsx)(Lj,Object(v.a)({onEditDeleted:r},e),"cred"+e.id)}))})]})})}function Lj(e){var t=Object(f.a)(h.b),a=Object(ee.a)(),n=s.a.useState(!1),i=Object(u.a)(n,2),r=i[0],c=i[1],o=Object(pe.a)(Al,{onCompleted:function(t){O.b.success("Updated active status"),e.onEditDeleted({id:e.id,active:!e.active})},onError:function(e){O.b.error("Operation not allowed")}}),l=Object(u.a)(o,1)[0];return Object(x.jsx)(s.a.Fragment,{children:Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(fa.a,{onClose:function(){c(!1)},onSubmit:function(){l({variables:{callback_id:e.id,active:!e.active}})},open:r,acceptText:e.active?"Hide":"Restore"}),Object(x.jsxs)(C.a,{children:[e.active?Object(x.jsx)(kt.a,{title:"Hide Callback so it can't be used in Tasking",children:Object(x.jsx)(E.a,{size:"small",onClick:function(){c(!0)},style:{color:a.palette.error.main},variant:"contained",children:Object(x.jsx)(M.a,{})})}):Object(x.jsx)(kt.a,{title:"Restore Callback for Tasking",children:Object(x.jsx)(E.a,{size:"small",onClick:function(){c(!0)},style:{color:a.palette.success.main},variant:"contained",children:Object(x.jsx)(xc.a,{})})})," "]}),Object(x.jsx)(C.a,{children:Object(x.jsx)(L.a,{variant:"body2",style:{wordBreak:"break-all"},children:e.user})}),Object(x.jsx)(C.a,{children:Object(x.jsx)(L.a,{variant:"body2",style:{wordBreak:"break-all"},children:e.domain})}),Object(x.jsx)(C.a,{children:e.host}),Object(x.jsx)(C.a,{children:Object(x.jsx)(L.a,{variant:"body2",style:{wordBreak:"break-all",display:"inline-block"},children:e.description})}),Object(x.jsx)(C.a,{children:e.ip}),Object(x.jsx)(C.a,{children:e.process_name}),Object(x.jsx)(C.a,{children:Object(x.jsx)(co.a,{style:{wordBreak:"break-all"},color:"textPrimary",underline:"always",target:"_blank",href:"/new/callbacks/"+e.id,children:e.id})}),Object(x.jsxs)(C.a,{children:[Object(x.jsxs)(L.a,{variant:"body2",style:{wordBreak:"break-all"},children:["Initial: ",Object(Z.b)(e.init_callback,t.user.view_utc_time)]}),Object(x.jsxs)(L.a,{variant:"body2",style:{wordBreak:"break-all"},children:["Latest: ",Object(Z.b)(e.last_checkin,t.user.view_utc_time)]})]})]})})}var Fj=Object(be.a)(kj||(kj=Object(_.a)(["\nfragment callbackData on callback{\n user\n host\n description\n domain\n id\n integrity_level\n ip\n process_name\n active\n init_callback\n last_checkin\n}\n"]))),Nj=50,qj=Object(be.a)(wj||(wj=Object(_.a)(["\n","\nquery userQuery($operation_id: Int!, $user: String!, $offset: Int!, $fetchLimit: Int!) {\n callback_aggregate(distinct_on: id, where: {operation_id: {_eq: $operation_id}, user: {_ilike: $user}}) {\n aggregate {\n count\n }\n }\n callback(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {operation_id: {_eq: $operation_id}, user: {_ilike: $user}}) {\n ...callbackData\n }\n}\n"])),Fj),Rj=Object(be.a)(Cj||(Cj=Object(_.a)(["\n","\nquery hostQuery($operation_id: Int!, $host: String!, $offset: Int!, $fetchLimit: Int!) {\n callback_aggregate(distinct_on: id, where: {host: {_ilike: $host}, operation_id: {_eq: $operation_id}}) {\n aggregate {\n count\n }\n }\n callback(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {host: {_ilike: $host}, operation_id: {_eq: $operation_id}}) {\n ...callbackData\n }\n}\n"])),Fj),Bj=Object(be.a)(Sj||(Sj=Object(_.a)(["\n","\nquery domainQuery($operation_id: Int!, $domain: String!, $offset: Int!, $fetchLimit: Int!) {\n callback_aggregate(distinct_on: id, where: {domain: {_ilike: $domain}, operation_id: {_eq: $operation_id}}){\n aggregate {\n count\n }\n }\n callback(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {domain: {_ilike: $domain}, operation_id: {_eq: $operation_id}}) {\n ...callbackData\n }\n}\n"])),Fj),Mj=Object(be.a)(Dj||(Dj=Object(_.a)(["\n","\nquery domainQuery($operation_id: Int!, $description: String!, $offset: Int!, $fetchLimit: Int!) {\n callback_aggregate(distinct_on: id, where: {description: {_ilike: $description}, operation_id: {_eq: $operation_id}}){\n aggregate {\n count\n }\n }\n callback(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {description: {_ilike: $description}, operation_id: {_eq: $operation_id}}) {\n ...callbackData\n }\n}\n"])),Fj),zj=Object(be.a)(Ij||(Ij=Object(_.a)(["\n","\nquery domainQuery($operation_id: Int!, $ip: String!, $offset: Int!, $fetchLimit: Int!) {\n callback_aggregate(distinct_on: id, where: {_or: [{ip: {_ilike: $ip}}, {external_ip: {_ilike: $ip}}], operation_id: {_eq: $operation_id}}){\n aggregate {\n count\n }\n }\n callback(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {_or: [{ip: {_ilike: $ip}}, {external_ip: {_ilike: $ip}}], operation_id: {_eq: $operation_id}}) {\n ...callbackData\n }\n}\n"])),Fj);function Wj(e){return Object(x.jsx)(go.a,Object(v.a)({label:"Callbacks",iconComponent:Object(x.jsx)(Aj.a,{})},e))}var Hj,Uj,Gj,Kj,Vj,Qj,Jj,Yj=function(e){var t=Object(ee.a)(),a=s.a.useState(""),n=Object(u.a)(a,2),i=n[0],r=n[1],c=s.a.useState("User"),o=Object(u.a)(c,2),l=o[0],d=o[1],b=["User","Domain","Host","Description","IP"],p=function(t,a,n){var r=a||i;switch(n||l){case"User":e.onUserSearch({search:r,offset:0});break;case"Domain":e.onDomainSearch({search:r,offset:0});break;case"Host":e.onHostSearch({search:r,offset:0});break;case"Description":e.onDescriptionSearch({search:r,offset:0});break;case"IP":e.onIPSearch({search:r,offset:0})}};return s.a.useEffect((function(){if(e.value===e.index){var t=new URLSearchParams(window.location.search),a="",n="User";t.has("search")&&(r(t.get("search")),a=t.get("search")),console.log(t.get("searchField")),t.has("searchField")&&b.includes(t.get("searchField"))?(d(t.get("searchField")),e.onChangeSearchField(t.get("searchField")),n=t.get("searchField")):(d("User"),e.onChangeSearchField("User"),e.changeSearchParam("searchField","User")),p(0,a,n)}}),[e.value,e.index]),Object(x.jsxs)(ft.a,{container:!0,spacing:2,style:{paddingTop:"10px",paddingLeft:"10px",maxWidth:"100%"},children:[Object(x.jsx)(ft.a,{item:!0,xs:6,children:Object(x.jsx)(j.a,{placeholder:"Search...",value:i,onChange:function(t,a,n){r(a),e.changeSearchParam("search",a)},onEnter:p,name:"Search...",InputProps:{endAdornment:Object(x.jsx)(s.a.Fragment,{children:Object(x.jsx)(uo.a,{title:"Search",children:Object(x.jsx)(E.a,{onClick:p,children:Object(x.jsx)(Gd.a,{style:{color:t.palette.info.main}})})})}),style:{padding:0}}})}),Object(x.jsxs)(ft.a,{item:!0,xs:6,children:[Object(x.jsx)(Hd.a,{component:"legend",children:"Search Callbacks by"}),Object(x.jsx)(ht.a,{style:{marginBottom:"10px",width:"15rem",marginTop:"5px"},value:l,onChange:function(t){d(t.target.value),e.onChangeSearchField(t.target.value),e.changeSearchParam("searchField",t.target.value)},children:b.map((function(e,t){return Object(x.jsx)(tt.a,{value:e,children:e},"searchopt"+e)}))})]})]})},Zj=function(e){var t=s.a.useState([]),a=Object(u.a)(t,2),n=a[0],i=a[1],r=s.a.useState(0),c=Object(u.a)(r,2),o=c[0],l=c[1],d=s.a.useState(""),b=Object(u.a)(d,2),j=b[0],p=b[1],m=s.a.useState("User"),g=Object(u.a)(m,2),y=g[0],_=g[1],k=Object(f.a)(h.b),w=function(e){O.b.dismiss(),l(e.callback_aggregate.aggregate.count),i(e.callback)},C=function(e){O.b.dismiss(),O.b.error("Failed to fetch data for search"),console.log(e)},S=Object(pt.a)(qj,{fetchPolicy:"no-cache",onCompleted:w,onError:C}),D=Object(u.a)(S,1)[0],I=Object(pt.a)(Bj,{fetchPolicy:"no-cache",onCompleted:w,onError:C}),T=Object(u.a)(I,1)[0],$=Object(pt.a)(Mj,{fetchPolicy:"no-cache",onCompleted:w,onError:C}),P=Object(u.a)($,1)[0],A=Object(pt.a)(Rj,{fetchPolicy:"no-cache",onCompleted:w,onError:C}),E=Object(u.a)(A,1)[0],F=Object(pt.a)(zj,{fetchPolicy:"no-cache",onCompleted:w,onError:C}),N=Object(u.a)(F,1)[0],q=function(e){var t=e.search,a=e.offset;O.b.info("Searching...",{persist:!0}),p(t);var n=t;""===n&&(n="_"),D({variables:{operation_id:k.user.current_operation_id,offset:a,fetchLimit:Nj,user:"%"+n+"%"}})},R=function(e){var t=e.search,a=e.offset;O.b.info("Searching...",{persist:!0}),p(t);var n=t;""===n&&(n="_"),T({variables:{operation_id:k.user.current_operation_id,offset:a,fetchLimit:Nj,domain:"%"+n+"%"}})},B=function(e){var t=e.search,a=e.offset;O.b.info("Searching...",{persist:!0}),p(t);var n=t;""===n&&(n="_"),E({variables:{operation_id:k.user.current_operation_id,offset:a,fetchLimit:Nj,host:"%"+n+"%"}})},M=function(e){var t=e.search,a=e.offset;O.b.info("Searching...",{persist:!0}),p(t);var n=t;""===n&&(n="_"),P({variables:{operation_id:k.user.current_operation_id,offset:a,fetchLimit:Nj,description:"%"+n+"%"}})},z=function(e){var t=e.search,a=e.offset;O.b.info("Searching...",{persist:!0}),p(t);var n=t;""===n&&(n="_"),N({variables:{operation_id:k.user.current_operation_id,offset:a,fetchLimit:Nj,ip:"%"+n+"%"}})};return Object(x.jsxs)(go.c,Object(v.a)(Object(v.a)({},e),{},{children:[Object(x.jsx)(Yj,{onChangeSearchField:function(e){switch(_(e),e){case"User":q({search:j,offset:0});break;case"Domain":R({search:j,offset:0});break;case"Description":M({search:j,offset:0});break;case"Host":B({search:j,offset:0});break;case"IP":z({search:j,offset:0})}},onUserSearch:q,onIPSearch:z,value:e.value,index:e.index,onDomainSearch:R,onHostSearch:B,onDescriptionSearch:M,changeSearchParam:e.changeSearchParam}),Object(x.jsx)("div",{style:{overflowY:"auto",flexGrow:1},children:n.length>0?Object(x.jsx)(Ej,{callbacks:n}):Object(x.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",left:"50%",top:"50%"},children:"No Search Results"})}),Object(x.jsxs)("div",{style:{background:"transparent",display:"flex",justifyContent:"center",alignItems:"center",paddingTop:"5px",paddingBottom:"5px"},children:[Object(x.jsx)(Kd.a,{count:Math.ceil(o/Nj),variant:"outlined",color:"primary",boundaryCount:1,siblingCount:1,onChange:function(e,t){if(1===t)switch(y){case"User":q({search:j,offset:0});break;case"Domain":R({search:j,offset:0});break;case"Description":M({search:j,offset:0});break;case"Host":B({search:j,offset:0});break;case"IP":z({search:j,offset:0})}else switch(y){case"User":q({search:j,offset:(t-1)*Nj});break;case"Domain":R({search:j,offset:(t-1)*Nj});break;case"Description":M({search:j,offset:(t-1)*Nj});break;case"Host":B({search:j,offset:(t-1)*Nj});break;case"IP":z({search:j,offset:(t-1)*Nj})}},showFirstButton:!0,showLastButton:!0,style:{padding:"20px"}}),Object(x.jsxs)(L.a,{style:{paddingLeft:"10px"},children:["Total Results: ",o]})]})]}))},Xj=a(308),ep=a.n(Xj);function tp(e){var t=s.a.useState([]),a=Object(u.a)(t,2),n=a[0],i=a[1];return Object(o.useEffect)((function(){i(Object(y.a)(e.artifacts))}),[e.artifacts]),Object(x.jsx)(S.a,{component:T.a,className:"mythicElement",style:{},children:Object(x.jsxs)(k.a,{stickyHeader:!0,size:"small",style:{},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{children:"Type"}),Object(x.jsx)(C.a,{children:"Command"}),Object(x.jsx)(C.a,{children:"Task"}),Object(x.jsx)(C.a,{children:"Callback"}),Object(x.jsx)(C.a,{children:"Host"}),Object(x.jsx)(C.a,{children:"Artifact"})]})}),Object(x.jsx)(w.a,{children:n.map((function(e){return Object(x.jsx)(ap,Object(v.a)({},e),"cred"+e.id)}))})]})})}function ap(e){return Object(x.jsx)(s.a.Fragment,{children:Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:Object(x.jsx)(L.a,{variant:"body2",style:{wordBreak:"break-all"},children:e.artifact.name})}),Object(x.jsx)(C.a,{children:Object(x.jsx)(L.a,{variant:"body2",style:{wordBreak:"break-all"},children:e.task.command.cmd})}),Object(x.jsx)(C.a,{children:Object(x.jsx)(co.a,{style:{wordBreak:"break-all"},color:"textPrimary",underline:"always",target:"_blank",href:"/new/task/"+e.task.id,children:e.task.id})}),Object(x.jsx)(C.a,{children:Object(x.jsx)(co.a,{style:{wordBreak:"break-all"},color:"textPrimary",underline:"always",target:"_blank",href:"/new/callbacks/"+e.task.callback_id,children:e.task.callback_id})}),Object(x.jsx)(C.a,{children:Object(x.jsx)(L.a,{variant:"body2",style:{wordBreak:"break-all",display:"inline-block"},children:e.host})}),Object(x.jsx)(C.a,{children:Object(x.jsx)(L.a,{variant:"body2",style:{wordBreak:"break-all",display:"inline-block"},children:e.artifact_instance_text})})]})})}var np=Object(be.a)(Hj||(Hj=Object(_.a)(["\nfragment artifactData on taskartifact{\n id\n artifact_instance_text\n host\n id\n timestamp\n artifact {\n name\n description\n }\n task {\n id\n callback_id\n command {\n cmd\n }\n }\n}\n"]))),ip=100,rp=Object(be.a)(Uj||(Uj=Object(_.a)(["\n","\nquery artifactQuery($operation_id: Int!, $artifact: String!, $offset: Int!, $fetchLimit: Int!) {\n taskartifact_aggregate(distinct_on: id, where: {operation_id: {_eq: $operation_id}, artifact_instance_text: {_ilike: $artifact}}) {\n aggregate {\n count\n }\n }\n taskartifact(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {operation_id: {_eq: $operation_id}, artifact_instance_text: {_ilike: $artifact}}) {\n ...artifactData\n }\n}\n"])),np),cp=Object(be.a)(Gj||(Gj=Object(_.a)(["\n","\nquery hostQuery($operation_id: Int!, $host: String!, $offset: Int!, $fetchLimit: Int!) {\n taskartifact_aggregate(distinct_on: id, where: {host: {_ilike: $host}, operation_id: {_eq: $operation_id}}) {\n aggregate {\n count\n }\n }\n taskartifact(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {host: {_ilike: $host}, operation_id: {_eq: $operation_id}}) {\n ...artifactData\n }\n}\n"])),np),op=Object(be.a)(Kj||(Kj=Object(_.a)(["\n","\nquery commandQuery($operation_id: Int!, $command: String!, $offset: Int!, $fetchLimit: Int!) {\n taskartifact_aggregate(distinct_on: id, where: {task: {command: {cmd: {_ilike: $command}}}, operation_id: {_eq: $operation_id}}){\n aggregate {\n count\n }\n }\n taskartifact(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {task: {command: {cmd: {_ilike: $command}}}, operation_id: {_eq: $operation_id}}) {\n ...artifactData\n }\n}\n"])),np),sp=Object(be.a)(Vj||(Vj=Object(_.a)(["\n","\nquery typeQuery($operation_id: Int!, $type: String!, $offset: Int!, $fetchLimit: Int!) {\n taskartifact_aggregate(distinct_on: id, where: {artifact: {name: {_ilike: $type}}, operation_id: {_eq: $operation_id}}){\n aggregate {\n count\n }\n }\n taskartifact(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {artifact: {name: {_ilike: $type}}, operation_id: {_eq: $operation_id}}) {\n ...artifactData\n }\n}\n"])),np),lp=Object(be.a)(Qj||(Qj=Object(_.a)(["\n","\nquery taskQuery($operation_id: Int!, $task_id: Int!, $offset: Int!, $fetchLimit: Int!) {\n taskartifact_aggregate(distinct_on: id, where: {task_id: {_eq: $task_id}, operation_id: {_eq: $operation_id}}){\n aggregate {\n count\n }\n }\n taskartifact(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {task_id: {_eq: $task_id}, operation_id: {_eq: $operation_id}}) {\n ...artifactData\n }\n}\n"])),np),dp=Object(be.a)(Jj||(Jj=Object(_.a)(["\n","\nquery taskQuery($operation_id: Int!, $callback_id: Int!, $offset: Int!, $fetchLimit: Int!) {\n taskartifact_aggregate(distinct_on: id, where: {task: {callback_id: {_eq: $callback_id}}, operation_id: {_eq: $operation_id}}){\n aggregate {\n count\n }\n }\n taskartifact(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {task: {callback_id: {_eq: $callback_id}}, operation_id: {_eq: $operation_id}}) {\n ...artifactData\n }\n}\n"])),np);function up(e){return Object(x.jsx)(go.a,Object(v.a)({label:"Artifacts",iconComponent:Object(x.jsx)(ep.a,{})},e))}var bp,jp,pp,mp=function(e){var t=Object(ee.a)(),a=s.a.useState(""),n=Object(u.a)(a,2),i=n[0],r=n[1],c=s.a.useState("Artifact"),o=Object(u.a)(c,2),l=o[0],d=o[1],b=["Artifact","Command","Host","Type","Task","Callback"],p=function(t,a,n){var r=a||i;switch(n||l){case"Artifact":e.onArtifactSearch({search:r,offset:0});break;case"Command":e.onCommandSearch({search:r,offset:0});break;case"Host":e.onHostSearch({search:r,offset:0});break;case"Type":e.onTypeSearch({search:r,offset:0});break;case"Task":e.onTaskSearch({search:r,offset:0});break;case"Callback":e.onCallbackSearch({search:r,offset:0})}};return s.a.useEffect((function(){if(e.value===e.index){var t=new URLSearchParams(window.location.search),a="",n="Artifact";t.has("search")&&(r(t.get("search")),a=t.get("search")),t.has("searchField")&&b.includes(t.get("searchField"))?(d(t.get("searchField")),e.onChangeSearchField(t.get("searchField")),n=t.get("searchField")):(d("Artifact"),e.onChangeSearchField("Artifact"),e.changeSearchParam("searchField","Artifact")),p(0,a,n)}}),[e.value,e.index]),Object(x.jsxs)(ft.a,{container:!0,spacing:2,style:{paddingTop:"10px",paddingLeft:"10px",maxWidth:"100%"},children:[Object(x.jsx)(ft.a,{item:!0,xs:6,children:Object(x.jsx)(j.a,{placeholder:"Search...",value:i,onChange:function(t,a,n){r(a),e.changeSearchParam("search",a)},onEnter:p,name:"Search...",InputProps:{endAdornment:Object(x.jsx)(s.a.Fragment,{children:Object(x.jsx)(uo.a,{title:"Search",children:Object(x.jsx)(E.a,{onClick:p,children:Object(x.jsx)(Gd.a,{style:{color:t.palette.info.main}})})})}),style:{padding:0}}})}),Object(x.jsxs)(ft.a,{item:!0,xs:6,children:[Object(x.jsx)(Hd.a,{component:"legend",children:"Search Artifacts by"}),Object(x.jsx)(ht.a,{style:{marginBottom:"10px",width:"15rem",marginTop:"5px"},value:l,onChange:function(t){d(t.target.value),e.onChangeSearchField(t.target.value),e.changeSearchParam("searchField",t.target.value)},children:b.map((function(e,t){return Object(x.jsx)(tt.a,{value:e,children:e},"searchopt"+e)}))})]})]})},hp=function(e){var t=s.a.useState([]),a=Object(u.a)(t,2),n=a[0],i=a[1],r=s.a.useState(0),c=Object(u.a)(r,2),o=c[0],l=c[1],d=s.a.useState(""),b=Object(u.a)(d,2),j=b[0],p=b[1],m=s.a.useState("Artifact"),g=Object(u.a)(m,2),y=g[0],_=g[1],k=Object(f.a)(h.b),w=function(e){O.b.dismiss(),l(e.taskartifact_aggregate.aggregate.count),i(e.taskartifact)},C=function(e){O.b.dismiss(),O.b.error("Failed to fetch data for search"),console.log(e)},S=Object(pt.a)(rp,{fetchPolicy:"no-cache",onCompleted:w,onError:C}),D=Object(u.a)(S,1)[0],I=Object(pt.a)(op,{fetchPolicy:"no-cache",onCompleted:w,onError:C}),T=Object(u.a)(I,1)[0],$=Object(pt.a)(sp,{fetchPolicy:"no-cache",onCompleted:w,onError:C}),P=Object(u.a)($,1)[0],A=Object(pt.a)(cp,{fetchPolicy:"no-cache",onCompleted:w,onError:C}),E=Object(u.a)(A,1)[0],F=Object(pt.a)(lp,{fetchPolicy:"no-cache",onCompleted:w,onError:C}),N=Object(u.a)(F,1)[0],q=Object(pt.a)(dp,{fetchPolicy:"no-cache",onCompleted:w,onError:C}),R=Object(u.a)(q,1)[0],B=function(e){var t=e.search,a=e.offset;O.b.info("Searching...",{persist:!0}),p(t);var n=t;""===n&&(n="_"),D({variables:{operation_id:k.user.current_operation_id,offset:a,fetchLimit:ip,artifact:"%"+n+"%"}})},M=function(e){var t=e.search,a=e.offset;O.b.info("Searching...",{persist:!0}),p(t);var n=t;""===n&&(n="_"),T({variables:{operation_id:k.user.current_operation_id,offset:a,fetchLimit:ip,command:"%"+n+"%"}})},z=function(e){var t=e.search,a=e.offset;O.b.info("Searching...",{persist:!0}),p(t);var n=t;""===n&&(n="_"),E({variables:{operation_id:k.user.current_operation_id,offset:a,fetchLimit:ip,host:"%"+n+"%"}})},W=function(e){var t=e.search,a=e.offset;O.b.info("Searching...",{persist:!0}),p(t);var n=t;""===n&&(n="_"),P({variables:{operation_id:k.user.current_operation_id,offset:a,fetchLimit:ip,type:"%"+n+"%"}})},H=function(e){var t=e.search,a=e.offset;""!==t?(O.b.info("Searching...",{persist:!0}),p(t),N({variables:{operation_id:k.user.current_operation_id,offset:a,fetchLimit:ip,task_id:parseInt(t)}})):O.b.warning("Must specify a task number")},U=function(e){var t=e.search,a=e.offset;""!==t?(O.b.info("Searching...",{persist:!0}),p(t),R({variables:{operation_id:k.user.current_operation_id,offset:a,fetchLimit:ip,callback_id:t}})):O.b.warning("Must specify a callback number")};return Object(x.jsxs)(go.c,Object(v.a)(Object(v.a)({},e),{},{children:[Object(x.jsx)(mp,{onChangeSearchField:function(e){switch(_(e),e){case"Artifact":B({search:j,offset:0});break;case"Command":M({search:j,offset:0});break;case"Type":W({search:j,offset:0});break;case"Host":z({search:j,offset:0});break;case"Task":H({search:j,offset:0});break;case"Callback":U({search:j,offset:0})}},onArtifactSearch:B,onTaskSearch:H,value:e.value,index:e.index,onCommandSearch:M,onHostSearch:z,onTypeSearch:W,onCallbackSearch:U,changeSearchParam:e.changeSearchParam}),Object(x.jsx)("div",{style:{overflowY:"auto",flexGrow:1},children:n.length>0?Object(x.jsx)(tp,{artifacts:n}):Object(x.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",left:"50%",top:"50%"},children:"No Search Results"})}),Object(x.jsxs)("div",{style:{background:"transparent",display:"flex",justifyContent:"center",alignItems:"center",paddingTop:"5px",paddingBottom:"10px"},children:[Object(x.jsx)(Kd.a,{count:Math.ceil(o/ip),variant:"outlined",color:"primary",boundaryCount:1,siblingCount:1,onChange:function(e,t){if(1===t)switch(y){case"Artifact":B({search:j,offset:0});break;case"Command":M({search:j,offset:0});break;case"Type":W({search:j,offset:0});break;case"Host":z({search:j,offset:0});break;case"Task":H({search:j,offset:0});break;case"Callback":U({search:j,offset:0})}else switch(y){case"Artifact":B({search:j,offset:(t-1)*ip});break;case"Command":M({search:j,offset:(t-1)*ip});break;case"Type":W({search:j,offset:(t-1)*ip});break;case"Host":z({search:j,offset:(t-1)*ip});break;case"Task":H({search:j,offset:(t-1)*ip});break;case"Callback":U({search:j,offset:(t-1)*ip})}},showFirstButton:!0,showLastButton:!0,style:{padding:"20px"}}),Object(x.jsxs)(L.a,{style:{paddingLeft:"10px"},children:["Total Results: ",o]})]})]}))},fp=Object(be.a)(bp||(bp=Object(_.a)(["\nmutation StopSocksMutation($callback_id: Int!){\n stop_socks(callback_id: $callback_id){\n status\n error\n }\n}\n"])));function Op(e){var t=s.a.useState([]),a=Object(u.a)(t,2),n=a[0],i=a[1];Object(o.useEffect)((function(){i(Object(y.a)(e.callbacks))}),[e.callbacks]);var r=function(e){var t=e.id,a=(e.active,n.map((function(e){return e.id===t?Object(v.a)(Object(v.a)({},e),{},{port:null}):Object(v.a)({},e)})));i(a)};return Object(x.jsx)(S.a,{component:T.a,className:"mythicElement",style:{height:"calc(78vh)"},children:Object(x.jsxs)(k.a,{stickyHeader:!0,size:"small",style:{maxWidth:"100%",overflow:"scroll"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{style:{width:"5rem"},children:"Stop"}),Object(x.jsx)(C.a,{children:"User"}),Object(x.jsx)(C.a,{children:"Domain"}),Object(x.jsx)(C.a,{children:"Host"}),Object(x.jsx)(C.a,{children:"Description"}),Object(x.jsx)(C.a,{children:"ID"})]})}),Object(x.jsx)(w.a,{children:n.map((function(e){return Object(x.jsx)(xp,Object(v.a)({onEditDeleted:r},e),"cred"+e.id)}))})]})})}function xp(e){var t=Object(ee.a)(),a=s.a.useState(!1),n=Object(u.a)(a,2),i=n[0],r=n[1],c=Object(pe.a)(fp,{onCompleted:function(t){O.b.success("Stopped Socks on that Port"),e.onEditDeleted({id:e.id})},onError:function(e){O.b.error("Operation not allowed")}}),o=Object(u.a)(c,1)[0];return Object(x.jsx)(s.a.Fragment,{children:Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(fa.a,{onClose:function(){r(!1)},onSubmit:function(){o({variables:{callback_id:e.id}})},open:i,acceptText:"Stop Socks"}),Object(x.jsxs)(C.a,{children:[e.port?Object(x.jsx)(uo.a,{title:"Stop Socks Port on Mythic Server",children:Object(x.jsx)(E.a,{size:"small",onClick:function(){r(!0)},style:{color:t.palette.error.main},variant:"contained",children:Object(x.jsx)(M.a,{})})}):null," "]}),Object(x.jsx)(C.a,{children:Object(x.jsx)(L.a,{variant:"body2",style:{wordBreak:"break-all"},children:e.user})}),Object(x.jsx)(C.a,{children:Object(x.jsx)(L.a,{variant:"body2",style:{wordBreak:"break-all"},children:e.domain})}),Object(x.jsx)(C.a,{children:e.host}),Object(x.jsx)(C.a,{children:Object(x.jsx)(L.a,{variant:"body2",style:{wordBreak:"break-all",display:"inline-block"},children:e.description})}),Object(x.jsx)(C.a,{children:Object(x.jsx)(co.a,{style:{wordBreak:"break-all"},color:"textPrimary",underline:"always",target:"_blank",href:"/new/callbacks/"+e.id,children:e.id})})]})})}var gp=Object(be.a)(jp||(jp=Object(_.a)(["\nfragment callbackData on callback{\n user\n host\n description\n domain\n id\n integrity_level\n ip\n process_name\n active\n init_callback\n last_checkin\n port\n}\n"]))),yp=Object(be.a)(pp||(pp=Object(_.a)(["\n","\nquery userQuery($operation_id: Int!, $offset: Int!, $fetchLimit: Int!) {\n callback_aggregate(distinct_on: id, where: {operation_id: {_eq: $operation_id}, port: {_is_null: false}}) {\n aggregate {\n count\n }\n }\n callback(limit: $fetchLimit, distinct_on: id, offset: $offset, order_by: {id: desc}, where: {operation_id: {_eq: $operation_id}, port: {_is_null: false}}) {\n ...callbackData\n }\n}\n"])),gp);function vp(e){return Object(x.jsx)(go.a,Object(v.a)({label:"SOCKS",iconComponent:Object(x.jsx)(Mt.a,{icon:zt.C,size:"lg"})},e))}var _p=function(e){var t=s.a.useState([]),a=Object(u.a)(t,2),n=a[0],i=a[1],r=s.a.useState(0),c=Object(u.a)(r,2),l=c[0],d=c[1],b=Object(f.a)(h.b),j=Object(pt.a)(yp,{fetchPolicy:"network-only",onCompleted:function(e){O.b.dismiss(),0===e.callback_aggregate.aggregate.count&&O.b.info("No Socks Running"),d(e.callback_aggregate.aggregate.count),i(e.callback)},onError:function(e){O.b.error("Failed to fetch data for socks"),console.log(e)}}),p=Object(u.a)(j,1)[0];Object(o.useEffect)((function(){e.value===e.index&&p({variables:{offset:0,operation_id:b.user.current_operation_id,fetchLimit:20}})}),[e.value,e.index]);return Object(x.jsxs)(go.c,Object(v.a)(Object(v.a)({},e),{},{children:[Object(x.jsx)("div",{style:{overflowY:"auto",flexGrow:1},children:n.length>0?Object(x.jsx)(Op,{callbacks:n}):Object(x.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",left:"50%",top:"50%"},children:"No Search Results"})}),Object(x.jsxs)("div",{style:{background:"transparent",display:"flex",justifyContent:"center",alignItems:"center"},children:[Object(x.jsx)(Kd.a,{count:Math.ceil(l/20),variant:"outlined",color:"primary",boundaryCount:1,siblingCount:1,onChange:function(e,t){p(1===t?{variables:{offset:0,operation_id:b.user.current_operation_id,fetchLimit:20}}:{variables:{offset:20*(t-1),operation_id:b.user.current_operation_id,fetchLimit:20}})},showFirstButton:!0,showLastButton:!0,style:{padding:"20px"}}),Object(x.jsxs)(L.a,{style:{paddingLeft:"10px"},children:["Total Results: ",l]})]})]}))},kp=Object(Se.a)((function(e){return{root:{width:"100%",backgroundColor:e.palette.background.paper}}}));function wp(e){var t=kp(),a=["callbacks","tasks","files","credentials","keylogs","artifacts","tokens","socks"],n=new URLSearchParams(window.location.search),i=n.get("tab"),r=a.findIndex((function(e){return e===i})),c=-1===r?0:r,o=function(t,a){n.set(t,a);var i=window.location.pathname+"?"+n.toString();e.history.push(i)};return Object(x.jsxs)("div",{className:t.root,style:{height:"100%",display:"flex",flexDirection:"column"},children:[Object(x.jsx)(Oo.a,{position:"static",color:"default",children:Object(x.jsx)(xo.a,{value:c,onChange:function(t,i){n.set("tab",a[i]);var r=window.location.pathname+"?"+n.toString();e.history.push(r)},indicatorColor:"primary",textColor:"primary",variant:"scrollable",scrollButtons:"auto","aria-label":"scrollable auto tabs example",children:a.map((function(e,t){switch(e){case"tasks":return Object(x.jsx)(Zd,{},"taskstab");case"files":return Object(x.jsx)(Xu,{},"filestab");case"credentials":return Object(x.jsx)(Tb,{},"credentialstab");case"keylogs":return Object(x.jsx)(Qb,{},"keylogstab");case"tokens":return Object(x.jsx)(_j,{},"tokenstab");case"callbacks":return Object(x.jsx)(Wj,{},"callbackstab");case"artifacts":return Object(x.jsx)(up,{},"artifactstab");case"socks":return Object(x.jsx)(vp,{},"sockstab");default:return null}}))})}),a.map((function(e,t){switch(e){case"tasks":return Object(x.jsx)(nu,{index:t,value:c,changeSearchParam:o},"taskspanel");case"callbacks":return Object(x.jsx)(Zj,{index:t,value:c,changeSearchParam:o},"callbackspanel");case"files":return Object(x.jsx)(cb,{index:t,value:c,changeSearchParam:o},"filespanel");case"credentials":return Object(x.jsx)(Rb,{index:t,value:c,changeSearchParam:o},"credentialspanel");case"keylogs":return Object(x.jsx)(tj,{index:t,value:c,changeSearchParam:o},"keylogspanel");case"tokens":return Object(x.jsx)($j,{index:t,value:c,changeSearchParam:o},"tokenspanel");case"artifacts":return Object(x.jsx)(hp,{index:t,value:c,changeSearchParam:o},"artifactspanel");case"socks":return Object(x.jsx)(_p,{index:t,value:c,changeSearchParam:o},"sockspanel");default:return null}}))]})}var Cp,Sp,Dp=a(903),Ip=a(511),Tp=a.n(Ip),$p=a(514),Pp=a.n($p),Ap=a(40),Ep=a(911),Lp=a(516),Fp=a.n(Lp),Np=a(517),qp=a.n(Np),Rp=a(520),Bp=a.n(Rp),Mp=a(510),zp=a.n(Mp),Wp=Object(be.a)(Cp||(Cp=Object(_.a)(['\nsubscription MySubscription($operation_id: Int!) {\n operationeventlog_aggregate(where: {deleted: {_eq: false}, level: {_eq: "warning"}, resolved: {_eq: false}, operation_id: {_eq: $operation_id}}) {\n aggregate{\n count\n }\n }\n}\n ']))),Hp=Object(Se.a)((function(e){return{tooltip:{backgroundColor:e.palette.background.contrast,color:e.palette.text.contrast,boxShadow:e.shadows[1],fontSize:13},arrow:{color:e.palette.background.contrast}}}));function Up(e){var t,a=Object(f.a)(h.b),n=Hp(),i=Object(Me.a)(Wp,{variables:{operation_id:(null===a||void 0===a||null===(t=a.user)||void 0===t?void 0:t.current_operation_id)||0},onError:function(e){O.b.error("Mythic encountered an error getting event log messages: "+e.toString()),console.error(e)}}),r=i.loading,c=i.error,o=i.data;return Object(x.jsx)(E.a,{color:"inherit",component:Ap.b,to:"/new/EventFeed",style:{float:"right"},children:Object(x.jsx)(uo.a,{title:"Event Feed",arrow:!0,classes:{tooltip:n.tooltip,arrow:n.arrow},children:r?Object(x.jsx)(Pe.a,{color:"secondary",badgeContent:0,children:Object(x.jsx)(oa.a,{size:20,thickness:4})}):c?Object(x.jsx)(Pe.a,{color:"secondary",badgeContent:0,children:Object(x.jsx)(No.a,{})}):Object(x.jsx)(Pe.a,{badgeContent:o.operationeventlog_aggregate.aggregate.count,color:"error",children:Object(x.jsx)(zp.a,{})})})})}var Gp=Object(be.a)(Sp||(Sp=Object(_.a)(["\nsubscription EventFeedNotificationSubscription($fromNow: timestamp!, $operation_id: Int!) {\n operationeventlog(limit: 1, where: {deleted: {_eq: false}, timestamp: {_gte: $fromNow}, operation_id: {_eq: $operation_id}}, order_by: {id: desc}) {\n operator {\n username\n }\n message\n level\n resolved\n source\n }\n}\n "])));function Kp(e){var t,a=Object(f.a)(h.b),n=s.a.useRef((new Date).toISOString()),i=Object(Me.a)(Gp,{variables:{fromNow:n.current,operation_id:(null===a||void 0===a||null===(t=a.user)||void 0===t?void 0:t.current_operation_id)||0},fetchPolicy:"no-cache",onError:function(e){O.b.warning("Failed to get event notifications")}}),r=i.loading,c=i.error,l=i.data;return Object(o.useEffect)((function(){if(!r&&!c&&l&&l.operationeventlog.length>0){if("debug"===l.operationeventlog[0].source)return;if(l.operationeventlog[0].resolved)return;if(l.operationeventlog[0].operator){var e=l.operationeventlog[0].operator.username+":"+l.operationeventlog[0].message;O.b.toast(e,l.operationeventlog[0].level,{autoHideDuration:2e3})}else l.operationeventlog[0].operator||O.b.toast(l.operationeventlog[0].message,l.operationeventlog[0].level,{autoHideDuration:3e3})}else c&&(console.error(c),O.b.warning("Mythic encountered an error getting operational event stream",{autoHideDuration:2e3}))}),[r,l,c,a.user]),null}var Vp,Qp=a(515),Jp=a.n(Qp),Yp=["title","titleId"];function Zp(){return(Zp=Object.assign||function(e){for(var t=1;t=0||(i[a]=e[a]);return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(i[a]=e[a])}return i}function em(e,t){var a=e.title,n=e.titleId,i=Xp(e,Yp);return o.createElement("svg",Zp({id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",width:"80px",height:"66px",viewBox:"0 0 80 66",enableBackground:"new 0 0 80 66",xmlSpace:"preserve",ref:t,"aria-labelledby":n},i),a?o.createElement("title",{id:n},a):null,Vp||(Vp=o.createElement("image",{id:"image0",width:80,height:66,x:0,y:0,href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABCCAYAAAD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MDowMHhJtaMAAAAhdEVYdGV4aWY6 RGF0ZVRpbWUAMjAyMDowMjoxMyAwMjoxMDowM+QYGrMAAAAqdEVYdGV4aWY6RGF0ZVRpbWVEaWdp dGl6ZWQAMjAyMDowMjoxMyAwOToxMDowMhsP+NkAAAATdEVYdGV4aWY6RXhpZk9mZnNldAAxNzDS Dd5MAAAAF3RFWHRleGlmOlBpeGVsWERpbWVuc2lvbgA4MIVW3/AAAAAXdEVYdGV4aWY6UGl4ZWxZ RGltZW5zaW9uADY2LyCOzgAAADF0RVh0ZXhpZjpTb2Z0d2FyZQBBZG9iZSBJbGx1c3RyYXRvciBD QyAyMy4wIChXaW5kb3dzKV8EztAAAAAASUVORK5CYII="})))}var tm=o.forwardRef(em),am=(a.p,a(518)),nm=a.n(am),im=a(912),rm=a(243),cm=a.n(rm),om=a(519),sm=a.n(om),lm=a(513),dm=a.n(lm),um=a(315),bm=a.n(um),jm=a(521),pm=a.n(jm),mm=a(522),hm=a.n(mm),fm=a(512),Om=a.n(fm),xm=a(297),gm=a.n(xm),ym=240,vm=Object(Se.a)((function(e){return{root:{width:"100%"},title:{flexGrow:1},hide:{display:"none"},drawer:{width:ym,flexShrink:0},drawerPaper:{width:ym},drawerHeader:Object(v.a)(Object(v.a)({display:"flex",alignItems:"center",padding:e.spacing(0,1)},e.mixins.toolbar),{},{justifyContent:"flex-end"}),appBar:{width:"100%",transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen})},appBarShift:{maxWidth:"calc(100% - ".concat(ym,"px)"),marginLeft:ym,transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})},nested:{paddingLeft:e.spacing(4)},mythicElement:{}}}));function _m(e){var t,a,n,i,r=Object(ee.a)(),c=vm(r),o=s.a.useRef(null),l=s.a.useRef(null),d=s.a.useState(!1),j=Object(u.a)(d,2),p=j[0],O=j[1],g=s.a.useState(!1),y=Object(u.a)(g,2),v=y[0],_=y[1],k=Object(f.a)(h.b),w=Object(f.a)(h.c),C=s.a.useState(!1),S=Object(u.a)(C,2),D=S[0],I=S[1],T=s.a.useState(!1),P=Object(u.a)(T,2),F=P[0],N=P[1],q=s.a.useState(!1),R=Object(u.a)(q,2),B=R[0],M=R[1],z=s.a.useState(!1),W=Object(u.a)(z,2),H=W[0],U=W[1],G=function(){Object(h.c)(!1)},K=function(e){O(!1)},V=function(e){_(!1)};return Object(x.jsxs)(s.a.Fragment,{children:[(null===k||void 0===k||null===(t=k.user)||void 0===t?void 0:t.current_operation_id)?Object(x.jsx)(Kp,{}):null,Object(x.jsx)(Oo.a,{className:Object(qa.default)(c.appBar,Object(jt.a)({},c.appBarShift,w)),children:(null===k||void 0===k?void 0:k.loggedIn)?Object(x.jsxs)(Dp.a,{variant:"dense",children:[Object(x.jsx)(E.a,{edge:"start",className:Object(qa.default)(c.menuButton,w&&c.hide),color:"inherit","aria-label":"menu",onClick:function(){Object(h.c)(!0)},children:Object(x.jsx)(Tp.a,{})}),Object(x.jsxs)("div",{style:{width:"100%"},children:[Object(x.jsx)(kt.a,{title:"C2 Profiles and Payload Types",children:Object(x.jsx)(E.a,{component:Ap.b,to:"/new/payloadtypes",color:"inherit",children:Object(x.jsx)(Om.a,{className:"mythicElement"})})}),Object(x.jsx)(kt.a,{title:"Payloads",children:Object(x.jsx)(E.a,{component:Ap.b,to:"/new/payloads",color:"inherit",children:Object(x.jsx)(Mt.a,{icon:zt.a})})}),Object(x.jsx)(kt.a,{title:"Search Operation",children:Object(x.jsx)(E.a,{component:Ap.b,to:"/new/search",color:"inherit",children:Object(x.jsx)(Gd.a,{className:"mythicElement"})})}),Object(x.jsx)(kt.a,{title:"Files",children:Object(x.jsx)(E.a,{component:Ap.b,to:"/new/search?searchField=Filename&tab=files&location=Downloads",color:"inherit",children:Object(x.jsx)(ru.a,{className:"mythicElement"})})}),Object(x.jsx)(kt.a,{title:"Artifacts",children:Object(x.jsx)(E.a,{component:Ap.b,to:"/new/search?searchField=Artifact&tab=artifacts",color:"inherit",children:Object(x.jsx)(ep.a,{className:"mythicElement"})})}),Object(x.jsx)(kt.a,{title:"SOCKS",children:Object(x.jsx)(E.a,{component:Ap.b,to:"/new/search?tab=socks",color:"inherit",children:Object(x.jsx)(Mt.a,{icon:zt.C})})}),Object(x.jsx)(kt.a,{title:"Screenshots",arrow:!0,children:Object(x.jsx)(E.a,{component:Ap.b,to:"/new/search?searchField=Filename&tab=files&location=Screenshots",color:"inherit",children:Object(x.jsx)(Mt.a,{icon:zt.d})})}),Object(x.jsx)(kt.a,{title:"Credentials",arrow:!0,children:Object(x.jsx)(E.a,{component:Ap.b,to:"/new/search?searchField=Account&tab=credentials",color:"inherit",children:Object(x.jsx)(sb.a,{className:"mythicElement"})})}),Object(x.jsx)(kt.a,{title:"Active Callbacks",children:Object(x.jsx)(E.a,{component:Ap.b,to:"/new/callbacks",color:"inherit",children:Object(x.jsx)(Aj.a,{className:"mythicElement"})})}),Object(x.jsx)(kt.a,{title:"Reporting",children:Object(x.jsx)(E.a,{component:Ap.b,to:"/new/reporting",color:"inherit",children:Object(x.jsx)(Mt.a,{icon:zt.t})})}),Object(x.jsx)(kt.a,{title:"MITRE ATT&CK",children:Object(x.jsx)(E.a,{component:Ap.b,to:"/new/mitre",color:"inherit",children:Object(x.jsx)(dm.a,{className:"mythicElement"})})}),Object(x.jsx)(b.a,{style:{display:"inline-flex",alignItems:"center",paddingRight:"10px",color:"white"},component:Ap.b,to:"/new/operations",children:Object(x.jsx)(L.a,{children:(null===k||void 0===k||null===(a=k.user)||void 0===a?void 0:a.current_operation)||"No Operation Set"})}),Object(x.jsxs)(Fn.a,{id:"menu-appbar",nodeRef:o,anchorEl:function(){return o.current},anchorOrigin:{vertical:"bottom",horizontal:"right"},getContentAnchorEl:null,transformOrigin:{vertical:"top",horizontal:"center"},open:p,onClose:K,MenuListProps:{style:{backgroundColor:"dark"===r.palette.type?r.palette.primary.dark:r.palette.primary.light,color:"white"}},children:[Object(x.jsx)(tt.a,{component:Ap.b,to:"/new/settings",onClick:K,name:"settings",children:"User Management"}),Object(x.jsx)(tt.a,{component:Ap.b,to:"/new/login",onClick:function(){Object(h.c)(!1),console.log("clicked logout, calling FailedRefresh"),Object(h.a)()},children:"Logout"})]}),Object(x.jsxs)("div",{style:{display:"inline-flex",justifyContent:"flex-end",float:"right"},children:[Object(x.jsx)(E.a,{"aria-label":"account of current user","aria-controls":"menu-appbar","aria-haspopup":"true",onClick:function(e){O(!0)},ref:o,color:"inherit",style:{float:"right"},children:Object(x.jsx)(kt.a,{title:"Settings or Logout",children:Object(x.jsx)(Pp.a,{})})}),Object(x.jsx)(E.a,{"aria-label":"documentation links","aria-controls":"menu-appbar","aria-haspopup":"true",onClick:function(e){_(!0)},ref:l,color:"inherit",style:{float:"right"},children:Object(x.jsx)(kt.a,{title:"Help Documentation",children:Object(x.jsx)(Jp.a,{})})}),Object(x.jsxs)(Fn.a,{id:"menu-appbar",nodeRef:l,anchorEl:function(){return l.current},anchorOrigin:{vertical:"bottom",horizontal:"right"},getContentAnchorEl:null,transformOrigin:{vertical:"top",horizontal:"center"},open:v,onClose:V,MenuListProps:{style:{backgroundColor:"dark"===r.palette.type?r.palette.primary.dark:r.palette.primary.light,color:"white"}},children:[Object(x.jsx)(tt.a,{component:Ap.b,target:"_blank",to:"/docs/agents",onClick:V,children:"Agent Documentation"}),Object(x.jsx)(tt.a,{component:Ap.b,target:"_blank",to:"/docs/wrappers",onClick:V,children:"Wrapper Documentation"}),Object(x.jsx)(tt.a,{component:Ap.b,target:"_blank",to:"/docs/c2-profiles",onClick:V,children:"C2 Profile Documentation"}),Object(x.jsx)(tt.a,{component:Ap.b,href:"https://docs.mythic-c2.net",target:"_blank",onClick:V,children:"Mythic Documentation"})]}),Object(x.jsx)(Up,{}),(null===k||void 0===k||null===(n=k.user)||void 0===n?void 0:n.username)?Object(x.jsx)(L.a,{style:{display:"flex",alignItems:"center",paddingRight:"10px"},children:null===k||void 0===k||null===(i=k.user)||void 0===i?void 0:i.username}):Object(x.jsx)(m.a,{to:"/new/login"})]})]})]}):null}),Object(x.jsxs)(Ep.a,{className:c.drawer,anchor:"left",open:w,classes:{paper:c.drawerPaper},onEscapeKeyDown:G,children:[Object(x.jsxs)("div",{className:c.drawerHeader,role:"presentation",children:[Object(x.jsx)(tm,{style:{width:"90%"}}),"v",Nh,Object(x.jsx)(E.a,{onClick:G,children:"ltr"===r.direction?Object(x.jsx)(Fp.a,{className:"mythicElement"}):Object(x.jsx)(qp.a,{className:"mythicElement"})})]}),Object(x.jsx)(ka.a,{}),Object(x.jsx)(Oa.a,{subheader:Object(x.jsx)(im.a,{component:"div",id:"nested-list-subheader",children:"Home"}),children:Object(x.jsxs)(xa.a,{button:!0,component:Ap.b,to:"/new",onClick:G,children:[Object(x.jsx)(ga.a,{children:Object(x.jsx)(nm.a,{className:"mythicElement"})}),Object(x.jsx)(ya.a,{primary:"Home"})]},"home")}),Object(x.jsx)(ka.a,{}),Object(x.jsxs)(Oa.a,{subheader:Object(x.jsx)(im.a,{component:"div",id:"nested-list-subheader",children:"Global Configurations"}),children:[Object(x.jsxs)(xa.a,{button:!0,onClick:function(){I(!D)},children:[Object(x.jsx)(ga.a,{children:Object(x.jsx)(sm.a,{})}),Object(x.jsx)(ya.a,{children:"Services"}),D?Object(x.jsx)(cm.a,{}):Object(x.jsx)(Wa.a,{})]}),Object(x.jsx)(A.a,{in:D,unmountOnExit:!0,children:Object(x.jsxs)(Oa.a,{component:"div",disablePadding:!0,children:[Object(x.jsxs)(xa.a,{button:!0,className:c.nested,component:Ap.b,to:"/new/payloadtypes",onClick:G,children:[Object(x.jsx)(ga.a,{children:Object(x.jsx)(Bp.a,{className:"mythicElement"})}),Object(x.jsx)(ya.a,{primary:"Payload Types"})]},"payloadtypes"),Object(x.jsxs)(xa.a,{button:!0,className:c.nested,component:Ap.b,to:"/new/c2profiles",onClick:G,children:[Object(x.jsx)(ga.a,{children:Object(x.jsx)(Ve.a,{className:"mythicElement"})}),Object(x.jsx)(ya.a,{primary:"C2 Profiles"})]},"c2profiles")]})}),Object(x.jsxs)(xa.a,{button:!0,onClick:function(){N(!F)},children:[Object(x.jsx)(ga.a,{children:Object(x.jsx)(bm.a,{})}),Object(x.jsx)(ya.a,{children:"Create"}),F?Object(x.jsx)(cm.a,{}):Object(x.jsx)(Wa.a,{})]}),Object(x.jsx)(A.a,{in:F,unmountOnExit:!0,children:Object(x.jsxs)(Oa.a,{component:"div",disablePadding:!0,children:[Object(x.jsxs)(xa.a,{button:!0,className:c.nested,component:Ap.b,to:"/new/createpayload",onClick:G,children:[Object(x.jsx)(ga.a,{children:Object(x.jsx)(bm.a,{className:"mythicElement"})}),Object(x.jsx)(ya.a,{primary:"Create Payload"})]},"createpayload"),Object(x.jsxs)(xa.a,{button:!0,className:c.nested,component:Ap.b,to:"/new/createwrapper",onClick:G,children:[Object(x.jsx)(ga.a,{children:Object(x.jsx)(bm.a,{className:"mythicElement"})}),Object(x.jsx)(ya.a,{primary:"Create Wrapped Payload"})]},"createwrapper")]})}),Object(x.jsxs)(xa.a,{button:!0,onClick:function(){M(!B)},children:[Object(x.jsx)(ga.a,{children:Object(x.jsx)(pm.a,{})}),Object(x.jsx)(ya.a,{children:"Operations"}),B?Object(x.jsx)(cm.a,{}):Object(x.jsx)(Wa.a,{})]}),Object(x.jsx)(A.a,{in:B,unmountOnExit:!0,children:Object(x.jsxs)(Oa.a,{component:"div",disablePadding:!0,children:[Object(x.jsxs)(xa.a,{button:!0,className:c.nested,component:Ap.b,to:"/new/operations",onClick:G,children:[Object(x.jsx)(ga.a,{children:Object(x.jsx)(_i.a,{className:"mythicElement"})}),Object(x.jsx)(ya.a,{primary:"Modify Operations"})]},"modifyoperations"),Object(x.jsxs)(xa.a,{button:!0,className:c.nested,component:Ap.b,to:"/new/browserscripts",onClick:G,children:[Object(x.jsx)(ga.a,{children:Object(x.jsx)(gm.a,{className:"mythicElement"})}),Object(x.jsx)(ya.a,{primary:"BrowserScripts"})]},"browserscripts")]})})]}),Object(x.jsx)(ka.a,{}),Object(x.jsxs)(Oa.a,{subheader:Object(x.jsx)(im.a,{component:"div",id:"nested-list-subheader",children:"Operational Views"}),children:[Object(x.jsxs)(xa.a,{button:!0,onClick:function(){U(!H)},children:[Object(x.jsx)(ga.a,{children:Object(x.jsx)(hm.a,{})}),Object(x.jsx)(ya.a,{children:"Operational Data"}),H?Object(x.jsx)(cm.a,{}):Object(x.jsx)(Wa.a,{})]}),Object(x.jsx)(A.a,{in:H,unmountOnExit:!0,children:Object(x.jsxs)(Oa.a,{component:"div",disablePadding:!0,children:[Object(x.jsxs)(xa.a,{button:!0,className:c.nested,component:Ap.b,to:"/new/payloads",onClick:G,children:[Object(x.jsx)(ga.a,{children:Object(x.jsx)(Mt.a,{icon:zt.a,size:"lg"})}),Object(x.jsx)(ya.a,{primary:"Payloads"})]},"payloads"),Object(x.jsxs)(xa.a,{button:!0,className:c.nested,component:Ap.b,to:"/new/search",onClick:G,children:[Object(x.jsx)(ga.a,{children:Object(x.jsx)(Gd.a,{className:"mythicElement"})}),Object(x.jsx)(ya.a,{primary:"Search"})]},"search")]})}),Object(x.jsxs)(xa.a,{button:!0,component:Ap.b,to:"/new/callbacks",onClick:G,children:[Object(x.jsx)(ga.a,{children:Object(x.jsx)(Aj.a,{className:"mythicElement"})}),Object(x.jsx)(ya.a,{primary:"Active Callbacks"})]},"callbacks")]}),Object(x.jsxs)(xa.a,{children:[Object(x.jsx)($.a,{checked:"dark"===e.theme,onChange:e.toggleTheme,color:"primary",inputProps:{"aria-label":"primary checkbox"},name:"darkMode"}),Object(x.jsx)("div",{style:{display:"inline-block"},children:" Enable Dark Mode "})]}),Object(x.jsxs)(xa.a,{children:["UI Version: ",qh]})]})]})}var km;function wm(e){var t=s.a.useState([]),a=Object(u.a)(t,2),n=a[0],i=a[1],r=Object(ee.a)();return Object(o.useEffect)((function(){var t=e.tasks.reduce((function(e,t){return[].concat(Object(y.a)(e),Object(y.a)(t.taskartifacts))}),[]);t.sort((function(e,t){return e.task_id>t.task_id?1:t.task_id>e.task_id?-1:0})),i(t)}),[e.tasks]),0===n.length?null:Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(T.a,{elevation:5,style:{backgroundColor:r.pageHeader.main,color:r.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:Object(x.jsx)(L.a,{variant:"h4",style:{textAlign:"left",display:"inline-block",marginLeft:"20px"},children:"Artifact Tasks"})}),Object(x.jsx)(T.a,{elevation:5,style:{position:"relative",backgroundColor:r.body},variant:"elevation",children:Object(x.jsx)(S.a,{component:T.a,className:"mythicElement",children:Object(x.jsxs)(k.a,{size:"small",style:{tableLayout:"fixed",maxWidth:"calc(100vw)",overflow:"scroll"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{children:"Task ID"}),Object(x.jsx)(C.a,{children:"Artifact Type"}),Object(x.jsx)(C.a,{children:"Host"}),Object(x.jsx)(C.a,{children:"Artifact"})]})}),Object(x.jsx)(w.a,{children:n.map((function(e){return Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{children:e.task_id}),Object(x.jsx)(C.a,{children:e.artifact.name}),Object(x.jsx)(C.a,{children:e.host}),Object(x.jsx)(C.a,{children:e.artifact_instance_text})]},"artifact"+e.id)}))})]})})})]})}function Cm(e){var t=s.a.useState([]),a=Object(u.a)(t,2),n=a[0],i=a[1],r=Object(ee.a)();return Object(o.useEffect)((function(){var t=e.tasks.reduce((function(e,t){var a=t.attacktasks.reduce((function(t,a){return e.find((function(e){return e.attack.t_num===a.attack.t_num}))?Object(y.a)(t):[].concat(Object(y.a)(t),[a])}),[]);return[].concat(Object(y.a)(e),Object(y.a)(a))}),[]);t.sort((function(e,t){return e.attack.t_num>t.attack.t_num?1:t.attack.t_num>e.attack.t_num?-1:0})),i(t)}),[e.tasks]),0===n.length?null:Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(T.a,{elevation:5,style:{backgroundColor:r.pageHeader.main,color:r.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:Object(x.jsx)(L.a,{variant:"h4",style:{textAlign:"left",display:"inline-block",marginLeft:"20px"},children:"MITRE ATT&CK Mappings"})}),Object(x.jsx)(T.a,{elevation:5,style:{position:"relative",backgroundColor:r.body},variant:"elevation",children:Object(x.jsx)(S.a,{component:T.a,className:"mythicElement",children:Object(x.jsxs)(k.a,{size:"small",style:{tableLayout:"fixed",maxWidth:"calc(100vw)",overflow:"scroll"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{children:"Technique ID"}),Object(x.jsx)(C.a,{children:"Technique"})]})}),Object(x.jsx)(w.a,{children:n.map((function(e){return Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{children:e.attack.t_num}),Object(x.jsx)(C.a,{children:e.attack.name})]},"attack"+e.attack.id)}))})]})})})]})}function Sm(e){var t=s.a.useState([]),a=Object(u.a)(t,2),n=a[0],i=a[1],r=Object(ee.a)();return Object(o.useEffect)((function(){var t=e.tasks.reduce((function(e,t){return[].concat(Object(y.a)(e),Object(y.a)(t.filemeta))}),[]);i(t),t.sort((function(e,t){return e.id>t.id?1:t.id>e.id?-1:0}))}),[e.tasks]),0===n.length?null:Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(T.a,{elevation:5,style:{backgroundColor:r.pageHeader.main,color:r.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:Object(x.jsx)(L.a,{variant:"h4",style:{textAlign:"left",display:"inline-block",marginLeft:"20px"},children:"Files / Screenshots"})}),Object(x.jsx)(T.a,{elevation:5,style:{position:"relative",backgroundColor:r.body},variant:"elevation",children:Object(x.jsx)(S.a,{component:T.a,className:"mythicElement",children:Object(x.jsxs)(k.a,{size:"small",style:{tableLayout:"fixed",maxWidth:"calc(100vw)",overflow:"scroll"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{children:"Filename"}),Object(x.jsx)(C.a,{children:"Type"}),Object(x.jsx)(C.a,{children:"Remote Path"}),Object(x.jsx)(C.a,{children:"Comment"}),Object(x.jsx)(C.a,{children:"Hashes"})]})}),Object(x.jsx)(w.a,{children:n.map((function(e){return Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{children:!e.deleted&&e.complete?Object(x.jsx)(co.a,{href:window.origin+"/api/v1.4/files/download/"+e.agent_file_id,style:{textDecoration:"underline",color:"inherit"},children:e.filename_text}):e.complete?e.filename_text:e.filename_text+" ("+e.chunks_received+"/"+e.total_chunks+")"}),Object(x.jsx)(C.a,{children:e.is_screenshot?"Screenshot":e.is_payload?"Payload":e.is_download_from_agent?"Download":"Upload"}),Object(x.jsx)(C.a,{children:""===e.full_remote_path_text?"":e.host+":"+e.full_remote_path_text}),Object(x.jsx)(C.a,{children:e.comment}),Object(x.jsxs)(C.a,{children:["MD5:",Object(x.jsx)("br",{}),e.md5,Object(x.jsx)("br",{}),"SHA1:",Object(x.jsx)("br",{}),e.sha1]})]},"file"+e.id)}))})]})})})]})}function Dm(e){var t=s.a.useState([]),a=Object(u.a)(t,2),n=a[0],i=a[1],r=Object(ee.a)();return Object(o.useEffect)((function(){var t=e.tasks.reduce((function(e,t){return[].concat(Object(y.a)(e),Object(y.a)(t.credentials))}),[]);i(t)}),[e.tasks]),0===n.length?null:Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(T.a,{elevation:5,style:{backgroundColor:r.pageHeader.main,color:r.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:Object(x.jsx)(L.a,{variant:"h4",style:{textAlign:"left",display:"inline-block",marginLeft:"20px"},children:"Credentials"})}),Object(x.jsx)(T.a,{elevation:5,style:{position:"relative",backgroundColor:r.body},variant:"elevation",children:Object(x.jsx)(S.a,{component:T.a,className:"mythicElement",children:Object(x.jsxs)(k.a,{size:"small",style:{tableLayout:"fixed",maxWidth:"calc(100vw)",overflow:"scroll"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{children:"Task"}),Object(x.jsx)(C.a,{children:"Type"}),Object(x.jsx)(C.a,{children:"Realm"}),Object(x.jsx)(C.a,{children:"Account"}),Object(x.jsx)(C.a,{children:"Credentials"}),Object(x.jsx)(C.a,{children:"Comment"})]})}),Object(x.jsx)(w.a,{children:n.map((function(e){return Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{children:e.task_id}),Object(x.jsx)(C.a,{children:e.type}),Object(x.jsx)(C.a,{children:e.realm}),Object(x.jsx)(C.a,{children:e.account}),Object(x.jsx)(C.a,{children:e.credential_text}),Object(x.jsx)(C.a,{children:e.comment})]},"cred"+e.id)}))})]})})})]})}var Im,Tm,$m,Pm,Am,Em=Object(be.a)(km||(km=Object(_.a)(["\nquery taskMetadataQuery($task_range: [Int!]) {\n task(where: {id: {_in: $task_range}}) {\n credentials {\n account\n comment\n credential_text\n id\n realm\n type\n task_id\n }\n filemeta {\n agent_file_id\n complete\n deleted\n filename_text\n full_remote_path_text\n host\n id\n comment\n total_chunks\n chunks_received\n is_download_from_agent\n is_payload\n is_screenshot\n md5\n sha1\n task {\n comment\n id\n }\n }\n taskartifacts {\n artifact_instance_text\n host\n task_id\n artifact{\n id\n name\n }\n id\n }\n tokens {\n TokenId\n id\n host\n }\n attacktasks(distinct_on: attack_id) {\n attack {\n name\n os\n id\n t_num\n tactic\n }\n id\n }\n id\n }\n }"])));function Lm(e){var t=s.a.useState([]),a=Object(u.a)(t,2),n=a[0],i=a[1],r=Object(pt.a)(Em,{onCompleted:function(e){i(e.task)},onError:function(e){console.log("error!",e)}}),c=Object(u.a)(r,1)[0];return Object(o.useEffect)((function(){c({variables:{task_range:e.taskIDs}})}),[e.taskIDs,c]),Object(x.jsxs)("div",{style:{marginTop:"10px",marginRight:"5px"},children:[Object(x.jsx)(wm,{tasks:n}),Object(x.jsx)(Cm,{tasks:n}),Object(x.jsx)(Sm,{tasks:n}),Object(x.jsx)(Dm,{tasks:n})]})}function Fm(e){var t=Object(o.useState)(0),a=Object(u.a)(t,2),n=a[0],i=a[1],r=Object(o.useState)([]),c=Object(u.a)(r,2),l=c[0],d=c[1],p=Object(o.useState)(10),m=Object(u.a)(p,2),h=m[0],f=m[1],O=Object(o.useState)(10),g=Object(u.a)(O,2),y=g[0],v=g[1],_=Object(o.useState)("all"),k=Object(u.a)(_,2),w=k[0],C=k[1],S=Object(o.useState)(""),D=Object(u.a)(S,2),I=D[0],T=D[1],$=Object(o.useRef)(null);return Object(o.useEffect)((function(){d(e.taskOptions),e.taskOptions.length>0&&i(e.taskOptions[0])}),[e.tasks,e.taskOptions]),Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(V.a,{id:"form-dialog-title",children:"Add More Tasks to View"}),Object(x.jsxs)(G.a,{dividers:!0,children:[Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsxs)(mt.a,{style:{width:"100%"},children:[Object(x.jsx)($t.a,{ref:$,children:"View More Tasks Around Task:"}),Object(x.jsx)(ht.a,{labelId:"demo-dialog-select-label",id:"demo-dialog-select",value:n,onChange:function(e){i(e.target.value)},input:Object(x.jsx)(Ot.a,{}),children:l.map((function(e){return Object(x.jsx)(tt.a,{value:e,children:e},"selectiontask:"+e)}))})]}),Object(x.jsx)("br",{}),Object(x.jsx)("br",{})]}),Object(x.jsx)(j.a,{type:"number",value:h,onChange:function(e,t,a){return f(t)},name:"Number of tasks before"}),Object(x.jsx)(j.a,{type:"number",value:y,onChange:function(e,t,a){return v(t)},name:"Number of tasks after"}),Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsxs)(mt.a,{style:{width:"100%"},children:[Object(x.jsx)($t.a,{ref:$,children:"Search Type"}),Object(x.jsx)(ht.a,{labelId:"demo-dialog-select-label",id:"demo-dialog-select",value:w,onChange:function(e){C(e.target.value)},input:Object(x.jsx)(Ot.a,{}),children:[{type:"all",text:"All Callbacks"},{type:"callback",text:"This Callack"},{type:"operator",text:"All callbacks but limited by operator"}].map((function(e){return Object(x.jsx)(tt.a,{value:e.type,children:e.text},"selectiontype:"+e.type)}))})]}),Object(x.jsx)("br",{}),Object(x.jsx)("br",{})]}),"operator"===w?Object(x.jsx)(j.a,{multiline:!1,onChange:function(e,t,a){T(t)},value:I,name:"Operator Username"}):null]}),Object(x.jsxs)(U.a,{children:[Object(x.jsx)(b.a,{onClick:e.onClose,variant:"contained",color:"primary",children:"Close"}),Object(x.jsx)(b.a,{onClick:function(){e.submitFetchTasks({taskSelected:n,beforeCount:parseInt(h),afterCount:parseInt(y),search:"operator"===w?I:w}),e.onClose()},variant:"contained",color:"secondary",children:"Fetch Tasks"})]})]})}var Nm=Object(be.a)(Im||(Im=Object(_.a)(["\nfragment TaskData on task {\n comment\n callback_id\n commentOperator{\n username\n }\n completed\n id\n operator{\n username\n }\n display_params\n original_params\n command_name\n status\n timestamp\n command {\n cmd\n id\n }\n callback {\n id\n host\n user\n integrity_level\n domain\n }\n responses_aggregate{\n aggregate{\n count\n }\n }\n parent_task_id\n opsec_pre_blocked\n opsec_pre_bypassed\n opsec_post_blocked\n opsec_post_bypassed\n tasks {\n id\n }\n token {\n id\n }\n}\n"]))),qm=Object(be.a)(Tm||(Tm=Object(_.a)(["\n","\nquery tasksQuery($task_range: [Int!]) {\n task(where: {id: {_in: $task_range}}, order_by: {id: asc}) {\n ...TaskData\n }\n}"])),Nm),Rm=Object(be.a)($m||($m=Object(_.a)(["\n","\nquery tasksAcrossAllCallbacks($operation_id: Int!, $baseTask: Int!, $beforeCount: Int!, $afterCount: Int!){\n before: task(where: {callback:{operation_id: {_eq: $operation_id}}, id:{_lt: $baseTask}}, order_by: {id: desc}, limit: $beforeCount) {\n ...TaskData\n }\n after: task(where: {callback:{operation_id: {_eq: $operation_id}}, id:{_gt: $baseTask}}, limit: $afterCount, order_by: {id: asc}) {\n ...TaskData\n }\n}"])),Nm),Bm=Object(be.a)(Pm||(Pm=Object(_.a)(["\n","\nquery tasksAcrossACallbacks($callback_id: Int!, $baseTask: Int!, $beforeCount: Int!, $afterCount: Int!){\n before: task(where: {callback:{id: {_eq: $operation_id}}, id:{_lt: $baseTask}}, limit: $beforeCount, order_by: {id: desc}) {\n ...TaskData\n }\n after: task(where: {callback:{id: {_eq: $operation_id}}, id:{_gt: $baseTask}}, limit: $afterCount, order_by: {id: asc}) {\n ...TaskData\n }\n}"])),Nm),Mm=Object(be.a)(Am||(Am=Object(_.a)(["\n","\nquery tasksAcrossAllCallbacksByOperator($operation_id: Int!, $baseTask: Int!, $beforeCount: Int!, $afterCount: Int!, $operator: String!){\n before: task(where: {callback:{operation_id: {_eq: $operation_id}}, id:{_lt: $baseTask}, operator: {username: {_eq: $operator}}}, limit: $beforeCount, order_by: {id: desc}) {\n ...TaskData\n }\n after: task(where: {callback:{operation_id: {_eq: $operation_id}}, id:{_gt: $baseTask}, operator: {username: {_eq: $operator}}}, limit: $afterCount, order_by: {id: asc}) {\n ...TaskData\n }\n}"])),Nm);function zm(e){var t=Object(f.a)(h.b),a=Object(m.h)().taskId,n=s.a.useState([]),i=Object(u.a)(n,2),r=i[0],c=i[1],l=s.a.useState([]),d=Object(u.a)(l,2),j=d[0],p=d[1],g=s.a.useState([]),_=Object(u.a)(g,2),k=_[0],w=_[1],C=s.a.useState(!1),S=Object(u.a)(C,2),D=S[0],I=S[1],P=s.a.useState(!1),A=Object(u.a)(P,2),E=A[0],F=A[1],N=Object(ee.a)(),q=function(e){var t=e.filter((function(e){return null===e.parent_task_id})),a=[],n=-1;0===t.length&&(t=Object(y.a)(e));var i=k.reduce((function(e,t){return"task"===t.type&&null===t.parent_task_id?e.find((function(e){return e.id===t.id}))?Object(y.a)(e):[].concat(Object(y.a)(e),[Object(v.a)(Object(v.a)({},t),{},{checked:!1})]):Object(y.a)(e)}),Object(y.a)(t));i.sort((function(e,t){return e.id>t.id?1:t.id>e.id?-1:0})),i.forEach((function(e){e.callback.id!==n&&a.push(Object(v.a)(Object(v.a)({type:"callback"},e.callback),{},{checked:!1})),n=e.callback.id,a.push(Object(v.a)(Object(v.a)({type:"task"},e),{},{checked:!1}))})),w(a);var o=e.reduce((function(e,t){var a=t.tasks.filter((function(t){return!e.includes(t.id)})).map((function(e){return e.id}));return e.includes(t.id)?[].concat(Object(y.a)(e),Object(y.a)(a)):[].concat(Object(y.a)(e),[t.id],Object(y.a)(a))}),Object(y.a)(r));c(o)},R=Object(pt.a)(Rm,{onCompleted:function(e){O.b.success("Successfully fetched tasks"),q([].concat(Object(y.a)(e.before),Object(y.a)(e.after)))}}),B=Object(u.a)(R,1)[0],M=Object(pt.a)(Bm,{onCompleted:function(e){O.b.success("Successfully fetched tasks"),q([].concat(Object(y.a)(e.before),Object(y.a)(e.after)))}}),z=Object(u.a)(M,1)[0],W=Object(pt.a)(Mm,{onCompleted:function(e){O.b.success("Successfully fetched tasks"),q([].concat(Object(y.a)(e.before),Object(y.a)(e.after)))}}),H=Object(u.a)(W,1)[0],U=Object(pt.a)(qm,{onCompleted:function(e){q(e.task)}}),G=Object(u.a)(U,1)[0],K=function(e){var t=k.map((function(t){return"task"===t.type&&"task"+t.id===e.target.name?Object(v.a)(Object(v.a)({},t),{},{checked:e.target.checked}):Object(v.a)({},t)}));w(t)};return Object(o.useEffect)((function(){if(window.location.pathname.includes("/new/tasks/by_range")){var e=new URLSearchParams(window.location.search);if(e.has("tasks")){console.log(e.get("tasks"));var t=function(e){for(var t=[],a=e.split(","),n=0;n0){var t=Z.operationeventlog[0].message.split(":").pop().trim();O.b.success("",{persist:!0,content:function(e){return Object(x.jsx)(ou,{id:e,title:"Download Generated Report",downloadLink:window.location.origin+"/api/v1.4/files/download/"+t})}})}}),[Z]),Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(S.a,{component:T.a,className:"mythicElement",children:Object(x.jsxs)(k.a,{size:"small",style:{tableLayout:"fixed",maxWidth:"calc(100vw)",overflow:"scroll"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{style:{width:"25rem"},children:"Report Option"}),Object(x.jsx)(C.a,{children:"Selected Values"})]})}),Object(x.jsxs)(w.a,{children:[Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"Output Format"}),Object(x.jsx)(C.a,{children:Object(x.jsx)(ht.a,{autoFocus:!0,style:{width:"100%",marginBottom:"10px"},value:l,label:"Select an Output Format",onChange:function(e){d(e.target.value),"json"!==e.target.value&&N(!1)},children:["pdf","latex","json"].map((function(e,t){return Object(x.jsx)(tt.a,{value:e,children:e},"outputformat"+t)}))})})]}),Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"Include MITRE ATT&CK Coverage Per Task"}),Object(x.jsx)(C.a,{children:Object(x.jsx)($.a,{checked:g,onChange:function(e){return y(!g)},inputProps:{"aria-label":"primary checkbox"},name:"active"})})]}),Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"Include MITRE ATT&CK Coverage Overview"}),Object(x.jsx)(C.a,{children:Object(x.jsx)($.a,{checked:P,onChange:function(e){return A(!P)},inputProps:{"aria-label":"primary checkbox"},name:"active"})})]}),"json"===l&&Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"Include Command Output"}),Object(x.jsx)(C.a,{children:Object(x.jsx)($.a,{checked:F,onChange:function(e){return N(!F)},inputProps:{"aria-label":"primary checkbox"},name:"active"})})]}),Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:"Exclude Callbacks With Matching Values"}),Object(x.jsx)(C.a,{children:Object(x.jsx)(k.a,{children:Object(x.jsxs)(w.a,{children:[Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{style:{width:"10rem"},children:"Exclude Users"}),Object(x.jsx)(C.a,{children:Object(x.jsx)(j.a,{onChange:function(e,t,a){U(t)},value:H,name:"Excluded Usernames"})})]}),Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{children:"Exclude Hosts"}),Object(x.jsx)(C.a,{children:Object(x.jsx)(j.a,{onChange:function(e,t,a){M(t)},value:B,name:"Excluded Hostnames"})})]}),Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{children:"Exclude IDs"}),Object(x.jsx)(C.a,{children:Object(x.jsx)(j.a,{onChange:function(e,t,a){Q(t)},value:V,name:"Excluded Callback IDs"})})]})]})})})]})]})]})}),Object(x.jsx)(b.a,{variant:"contained",style:{marginTop:"10px",backgroundColor:a.palette.success.main,color:"white"},onClick:function(){Y({variables:{outputFormat:l,includeMITREOverall:P,includeMITREPerTask:g,includeOutput:F,excludedUsers:H,excludedHosts:B,excludedIDs:V}})},children:"Generate"})]})}function th(){var e=Object(ee.a)();return Object(x.jsxs)("div",{style:{maxHeight:"calc(96vh)",margin:"10px"},children:[Object(x.jsx)(T.a,{elevation:5,style:{backgroundColor:e.pageHeader.main,color:e.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:Object(x.jsx)(L.a,{variant:"h3",style:{textAlign:"left",display:"inline-block",marginLeft:"20px"},children:"Mythic Report Generation"})}),Object(x.jsx)(eh,{})]})}function ah(e){var t=e.entry,a=e.showCountGrouping,n=e.onClose,i=s.a.useState([]),r=Object(u.a)(i,2),c=r[0],o=r[1],l=s.a.useState([]),d=Object(u.a)(l,2),j=d[0],p=d[1];return s.a.useEffect((function(){switch(a){case"":break;case"command":var e=t.commands.reduce((function(e,t){return t.payloadtype.ptype in e?e[t.payloadtype.ptype].push(t.cmd):e[t.payloadtype.ptype]=[t.cmd],Object(v.a)({},e)}),{});o(Object.entries(e));break;case"task":var n=t.tasks.reduce((function(e,t){return t.callback.payload.payloadtype.ptype in e?e[t.callback.payload.payloadtype.ptype].push({id:t.id,command:t.command_name+" "+t.display_params,comment:t.comment,callback_id:t.callback.id}):e[t.callback.payload.payloadtype.ptype]=[{id:t.id,command:t.command_name+" "+t.display_params,comment:t.comment,callback_id:t.callback.id}],Object(v.a)({},e)}),{});p(Object.entries(n))}}),[t,a]),Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsxs)(V.a,{id:"form-dialog-title",children:[t.name," - ",Object(x.jsx)(co.a,{style:{wordBreak:"break-all"},underline:"always",target:"_blank",href:"https://attack.mitre.org/techniques/"+t.t_num.replace(".","/"),children:t.t_num})]}),Object(x.jsx)(G.a,{dividers:!0,children:"command"===a?Object(x.jsx)(nh,{commands:c}):Object(x.jsx)(ih,{tasks:j})}),Object(x.jsx)(U.a,{children:Object(x.jsx)(b.a,{onClick:n,variant:"contained",color:"secondary",children:"Close"})})]})}function nh(e){var t=e.commands,a=(Object(f.a)(h.b),Object(ee.a)());return Object(x.jsx)(s.a.Fragment,{children:t.map((function(e){return Object(x.jsxs)("div",{children:[Object(x.jsx)(T.a,{elevation:5,style:{backgroundColor:a.pageHeader.main,color:a.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:Object(x.jsx)(L.a,{variant:"h6",style:{textAlign:"left",display:"inline-block",marginLeft:"20px",color:a.pageHeaderColor},children:e[0]})}),Object(x.jsxs)(k.a,{size:"small","aria-label":"details",style:{overflowWrap:"break-word"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{children:"Command"}),Object(x.jsx)(C.a,{style:{width:"5rem"},children:"Documentation"})]})}),Object(x.jsx)(w.a,{children:e[1].map((function(t){return Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:t}),Object(x.jsx)(C.a,{children:Object(x.jsx)(b.a,{variant:"contained",color:"primary",target:"_blank",href:"/docs/agents/"+e[0]+"/commands/"+t,children:"Docs"})})]},"command"+t)}))})]})]},"agent"+e[0])}))})}function ih(e){var t=e.tasks,a=(Object(f.a)(h.b),Object(ee.a)());return Object(x.jsx)(s.a.Fragment,{children:t.map((function(e){return Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(T.a,{elevation:5,style:{backgroundColor:a.pageHeader.main,color:a.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:Object(x.jsx)(L.a,{variant:"h6",style:{textAlign:"left",display:"inline-block",marginLeft:"20px",color:a.pageHeaderColor},children:e[0]})}),Object(x.jsxs)(k.a,{size:"small","aria-label":"details",style:{overflowWrap:"break-word"},children:[Object(x.jsx)(D.a,{children:Object(x.jsxs)(I.a,{children:[Object(x.jsx)(C.a,{style:{width:"5rem"},children:"Callback"}),Object(x.jsx)(C.a,{style:{width:"5rem"},children:"Task"}),Object(x.jsx)(C.a,{children:"Command"}),Object(x.jsx)(C.a,{children:"Comment"})]})}),Object(x.jsx)(w.a,{children:e[1].map((function(e){return Object(x.jsxs)(I.a,{hover:!0,children:[Object(x.jsx)(C.a,{children:Object(x.jsx)("a",{href:"/new/callbacks/"+e.callback_id,target:"_blank",children:e.callback_id})}),Object(x.jsx)(C.a,{children:Object(x.jsx)("a",{href:"/new/task/"+e.id,target:"_blank",children:e.id})}),Object(x.jsx)(C.a,{children:e.command}),Object(x.jsx)(C.a,{children:e.comment})]})}))})]})]})}))})}function rh(e){var t,a=e.row,n=e.showCountGrouping,i=s.a.useState({}),r=Object(u.a)(i,2),c=r[0],o=r[1],l=s.a.useState(!1),d=Object(u.a)(l,2),j=d[0],p=d[1];return s.a.useEffect((function(){switch(n){case"":o({});break;case"command":a.commands.length>0?o({color:"white",backgroundColor:"rgb(188, 58, 36)"}):o({});break;case"task":a.tasks.length>0?o({color:"white",backgroundColor:"rgb(188, 58, 36)"}):o({})}}),[a.commands,a.tasks,n]),Object(x.jsxs)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[(null===a||void 0===a||null===(t=a.t_num)||void 0===t?void 0:t.includes("."))?Object(x.jsx)(P.a,{width:"50px",height:"1px",style:{border:"1px dashed grey"}}):null,Object(x.jsx)(b.a,{style:Object(v.a)({width:"100%",justifyContent:"flex-start"},c),variant:"outlined",onClick:function(){return p(!0)},children:a.name}),j?Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"md",open:j,onClose:function(){p(!1)},innerDialog:Object(x.jsx)(ah,{entry:a,showCountGrouping:n,onClose:function(){p(!1)}})}):null]})}function ch(e){var t=e.column,a=e.showCountGrouping,n=Object(ee.a)(),i=s.a.useState(0),r=Object(u.a)(i,2),c=r[0],o=r[1],l=s.a.useState(0),d=Object(u.a)(l,2),b=d[0],j=d[1];return s.a.useEffect((function(){var e;switch(a){case"":j((null===t||void 0===t||null===(e=t.rows)||void 0===e?void 0:e.length)||0),o(0);break;case"command":o(t.commands);var n=t.rows.reduce((function(e,t){return t.commands.length>0?e+1:e}),0);j(n);break;case"task":o(t.tasks);var i=t.rows.reduce((function(e,t){return t.tasks.length>0?e+1:e}),0);j(i)}}),[t.commands,t.rows,t.tasks,a]),Object(x.jsxs)("div",{style:{display:"flex",flexDirection:"column",paddingRight:"15px"},children:[Object(x.jsxs)(P.a,{height:"100px",width:"100%",style:{backgroundColor:n.tableHover},children:[Object(x.jsx)("h2",{style:{margin:0,textAlign:"center"},children:Object(x.jsx)("b",{children:t.tactic})}),Object(x.jsxs)("p",{style:{textAlign:"center",margin:0},children:[b," techniques"]}),""===a?null:Object(x.jsxs)("p",{style:{textAlign:"center",margin:0},children:[c," ",a,"s"]})]}),Object(x.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:t.rows.map((function(e,t){return Object(x.jsx)(rh,{row:e,showCountGrouping:a},"row"+t)}))})]})}var oh,sh,lh,dh,uh,bh=Object(be.a)(Gm||(Gm=Object(_.a)(["\nquery getAllPayloadTypes{\n payloadtype(where: {wrapper: {_eq: false}}, order_by: {ptype: asc}) {\n ptype\n }\n}\n"]))),jh=Object(Se.a)((function(e){return{formControl:{margin:e.spacing(1),minWidth:120,width:"97%"}}}));function ph(e){var t=jh(),a=s.a.useState([]),n=Object(u.a)(a,2),i=n[0],r=n[1],c=s.a.useState(""),o=Object(u.a)(c,2),l=o[0],d=o[1],j=Object(je.a)(bh,{onCompleted:function(e){var t=e.payloadtype.map((function(e){return e.ptype}));t.length>0&&d(t[0]),r(t)},fetchPolicy:"network-only"}),p=j.loading,m=j.error;return p?Object(x.jsx)(Ae.a,{style:{marginTop:"10px"}}):m?(console.error(m),Object(x.jsx)("div",{children:"Error!"})):Object(x.jsxs)(s.a.Fragment,{children:[Object(x.jsx)(V.a,{children:"Select a Payload Type to Filter On"}),Object(x.jsx)(G.a,{dividers:!0,children:Object(x.jsx)(s.a.Fragment,{children:Object(x.jsx)(mt.a,{className:t.formControl,children:Object(x.jsxs)(ht.a,{labelId:"demo-dialog-select-label-profile",id:"demo-dialog-select",value:l,onChange:function(e){d(e.target.value)},style:{minWidth:"30%"},children:[Object(x.jsx)(tt.a,{value:"",children:"None"}),i.map((function(e){return Object(x.jsx)(tt.a,{value:e,children:e},e)}))]})})})}),Object(x.jsxs)(U.a,{children:[Object(x.jsx)(b.a,{onClick:e.onClose,variant:"contained",color:"primary",children:"Close"}),Object(x.jsx)(b.a,{onClick:function(){""!==l?(e.onSubmit(l),e.onClose()):e.onClose()},variant:"contained",style:{backgroundColor:Ir.a.palette.success.main},children:"Select"})]})]})}function mh(e){var t=e.entries,a=e.onGetCommands,n=e.onGetTasks,i=e.onGetCommandsFiltered,r=e.onGetTasksFiltered,c=Object(ee.a)(),o=s.a.useRef(null),l=s.a.useState(!1),d=Object(u.a)(l,2),j=d[0],p=d[1],m=s.a.useState(""),h=Object(u.a)(m,2),f=h[0],O=h[1],g=s.a.useState(!1),y=Object(u.a)(g,2),_=y[0],k=y[1],w=s.a.useState(!1),C=Object(u.a)(w,2),S=C[0],D=C[1],I=s.a.useState(!1),$=Object(u.a)(I,2),P=$[0],A=$[1],E=s.a.useState(!1),F=Object(u.a)(E,2),N=F[0],q=F[1],R=[{name:"Fetch All Commands Mapped to MITRE",click:function(){k(!0),O("command"),p(!1),a()}},{name:"Fetch All Issued Tasks Mapped to MITRE",click:function(){O("task"),p(!1),n()}},{name:"Fetch Command Mappings by Payload Type",click:function(){p(!1),q(!0)}},{name:"Fetch Task Mappings by Payload Type",click:function(){p(!1),A(!0)}},{name:"Export Highlighted to ATT&CK Navigator",click:function(){p(!1),B()}},{name:"View MITRE License",click:function(){D(!0),p(!1)}}];s.a.useEffect((function(){k(!1)}),[t]);var B=function(){var e={name:"layer",versions:{attack:"10",navigator:"4.5.5",layer:"4.3"},domain:"enterprise-attack",description:"",filters:{platforms:["Linux","macOS","Windows","Azure AD","Office 365","SaaS","IaaS","Google Workspace","PRE","Network","Containers"]},sorting:0,layout:{layout:"side",aggregateFunction:"average",showID:!1,showName:!0,showAggregateScores:!1,countUnscored:!1},hideDisabled:!1,techniques:[],gradient:{colors:["#ff6666ff","#ffe766ff","#8ec843ff"],minValue:0,maxValue:100},legendItems:[],metadata:[],links:[],showTacticRowBackground:!1,tacticRowBackground:"#dddddd",selectTechniquesAcrossTactics:!0,selectSubtechniquesWithParent:!1};for(var a in t)for(var n=0;n0&&e.techniques.push({techniqueID:t[a].rows[n].t_num,tactic:a.replace(" ","-").toLowerCase(),color:"#bc3b24",enabled:!0,comment:"",metadata:[],links:[],showSubtechniques:!0});break;case"task":t[a].rows[n].tasks.length>0&&e.techniques.push({techniqueID:t[a].rows[n].t_num,tactic:a.replace(" ","-").toLowerCase(),color:"#bc3b24",enabled:!0,comment:"",metadata:[],links:[],showSubtechniques:!0})}var i=new Blob([JSON.stringify(e,null,2)],{type:"application/octet-stream"}),r=document.getElementById("download_config");if(null!==r)r.href=URL.createObjectURL(i),r.download="attack_navigator.json",r.click();else{var c=document.createElement("a");c.id="download_config",c.href=URL.createObjectURL(i),c.download="attack_navigator.json",document.body.appendChild(c),c.click()}};return Object(x.jsxs)("div",{style:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},children:[Object(x.jsxs)(T.a,{elevation:5,style:{backgroundColor:c.pageHeader.main,color:c.pageHeaderText.main,marginBottom:"5px",marginTop:"10px"},variant:"elevation",children:[Object(x.jsx)(L.a,{variant:"h3",style:{textAlign:"left",display:"inline-block",marginLeft:"20px"},children:"MITRE ATT&CK Mappings"}),Object(x.jsx)(Qe.a,{variant:"contained",ref:o,"aria-label":"split button",style:{marginRight:"10px",marginTop:"10px",float:"right"},color:"primary",children:Object(x.jsxs)(b.a,{size:"small",color:"primary","aria-controls":j?"split-button-menu":void 0,"aria-expanded":j?"true":void 0,"aria-haspopup":"menu",onClick:function(){return p(!j)},children:["Actions ",Object(x.jsx)(Ye.a,{})]})}),Object(x.jsx)(et.a,{open:j,anchorEl:o.current,role:void 0,transition:!0,style:{zIndex:10},children:function(e){var t=e.TransitionProps,a=e.placement;return Object(x.jsx)(Xe.a,Object(v.a)(Object(v.a)({},t),{},{style:{transformOrigin:"bottom"===a?"center top":"center bottom"},children:Object(x.jsx)(T.a,{style:{backgroundColor:"dark"===c.palette.type?c.palette.primary.dark:c.palette.primary.light,color:"white"},children:Object(x.jsx)(Ze.a,{onClickAway:function(){return p(!1)},children:Object(x.jsx)(at.a,{id:"split-button-menu",children:R.map((function(e,t){return Object(x.jsx)(tt.a,{onClick:function(e){return function(e,t){R[t].click(e)}(e,t)},children:e.name},e.name)}))})})})}))}})]}),Object(x.jsxs)("div",{style:{display:"flex",flexGrow:1,overflow:"auto"},children:[Object(x.jsx)(vs.a,{open:_,style:{zIndex:2,position:"absolute"},invisible:!1,children:Object(x.jsx)(oa.a,{color:"inherit"})}),S&&Object(x.jsx)(Bl.a,{onClose:function(){D(!1)},title:"MITRE ATT&CK Usage License",maxWidth:"md",fullWidth:!0,value:"The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use ATT&CK\xae for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy.\n \n\xa9 2021 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation.",open:S}),P&&Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"sm",open:P,onClose:function(){A(!1)},innerDialog:Object(x.jsx)(ph,{onClose:function(){A(!1)},onSubmit:function(e){k(!0),O("task"),r(e)}})}),N&&Object(x.jsx)(Y.a,{fullWidth:!0,maxWidth:"sm",open:N,onClose:function(){q(!1)},innerDialog:Object(x.jsx)(ph,{onClose:function(){q(!1)},onSubmit:function(e){k(!0),O("command"),i(e)}})}),["Reconnaissance","Resource Development","Initial Access","Execution","Persistence","Privilege Escalation","Defense Evasion","Credential Access","Discovery","Lateral Movement","Collection","Command And Control","Exfiltration","Impact"].map((function(e){return Object(x.jsx)(ch,{column:t[e],showCountGrouping:f},e)}))]})]})}var hh=Object(be.a)(oh||(oh=Object(_.a)(["\nquery GetMitreAttack {\n attack(order_by: {t_num: asc}){\n id\n name\n t_num\n os\n tactic\n }\n}\n"]))),fh=Object(be.a)(sh||(sh=Object(_.a)(["\nquery GetMitreTaskAttack($operation_id: Int!) {\n attacktask(where: {task: {callback: {operation_id: {_eq: $operation_id}}}}) {\n attack_id\n task {\n id\n command_name\n comment\n display_params\n callback {\n id\n payload {\n payloadtype {\n ptype\n }\n }\n }\n }\n }\n}\n"]))),Oh=Object(be.a)(lh||(lh=Object(_.a)(["\nquery GetMitreTaskAttack($operation_id: Int!, $payload_type: String!) {\n attacktask(where: {task: {callback: {operation_id: {_eq: $operation_id}, payload: {payloadtype: {ptype: {_eq: $payload_type}}}}}}) {\n attack_id\n task {\n id\n command_name\n comment\n display_params\n callback {\n id\n payload {\n payloadtype {\n ptype\n }\n }\n }\n }\n }\n}\n"]))),xh=Object(be.a)(dh||(dh=Object(_.a)(["\nquery GetMitreCommandAttack{\n attackcommand {\n attack_id\n command {\n cmd\n payloadtype {\n ptype\n }\n }\n }\n}\n"]))),gh=Object(be.a)(uh||(uh=Object(_.a)(["\nquery GetMitreCommandAttack($payload_type: String!){\n attackcommand(where: {command: {payloadtype: {ptype: {_eq: $payload_type}}}}) {\n attack_id\n command {\n cmd\n payloadtype {\n ptype\n }\n }\n }\n}\n"])));function yh(e){var t=Object(f.a)(h.b),a=s.a.useState(!0),n=Object(u.a)(a,2),i=n[0],r=n[1],c=s.a.useState({Reconnaissance:{rows:[],tactic:"Reconnaissance",commands:0,tasks:0},"Resource Development":{rows:[],tactic:"Resource Development",commands:0,tasks:0},"Initial Access":{rows:[],tactic:"Initial Access",commands:0,tasks:0},Execution:{rows:[],tactic:"Execution",commands:0,tasks:0},Persistence:{rows:[],tactic:"Persistence",commands:0,tasks:0},"Privilege Escalation":{rows:[],tactic:"Privilege Escalation",commands:0,tasks:0},"Defense Evasion":{rows:[],tactic:"Defense Evasion",commands:0,tasks:0},"Credential Access":{rows:[],tactic:"Credential Access",commands:0,tasks:0},Discovery:{rows:[],tactic:"Discovery",commands:0,tasks:0},"Lateral Movement":{rows:[],tactic:"Lateral Movement",commands:0,tasks:0},Collection:{rows:[],tactic:"Collection",commands:0,tasks:0},"Command And Control":{rows:[],tactic:"Command And Control",commands:0,tasks:0},Exfiltration:{rows:[],tactic:"Exfiltration",commands:0,tasks:0},Impact:{rows:[],tactic:"Impact",commands:0,tasks:0}}),o=Object(u.a)(c,2),l=o[0],d=o[1],b=Object(pt.a)(xh,{onError:function(e){console.error(e)},fetchPolicy:"network-only",onCompleted:function(e){var t=Object(y.a)(e.attackcommand),a=Object(v.a)({},l),n=function(e){for(var n=0,i=function(i){a[e].rows[i].commands=[],t=t.filter((function(t){return t.attack_id!==a[e].rows[i].id||(a[e].rows[i].commands.push(Object(v.a)({},t.command)),!1)})),n+=a[e].rows[i].commands.length},r=0;r1e3*t.exp)}return!1},Hh=Object(Ah.a)(function(){var e=Object(c.a)(r.a.mark((function e(t,a){var n,i,c;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a.headers;case 1:if(!Rh){e.next=6;break}return e.next=4,new Promise((function(e){return setTimeout(e,1e3)}));case 4:e.next=1;break;case 6:if(!(n=localStorage.getItem("access_token"))){e.next=26;break}if(i=Object(Fh.a)(n),c=1e3*i.exp-Date.now(),72e5,!(c<72e5)&&Wh()){e.next=24;break}return console.log("token is at its half life or less, try to get a new token"),e.next=15,Gh();case 15:if(!e.sent){e.next=20;break}return e.abrupt("return",{headers:{Authorization:"Bearer ".concat(localStorage.getItem("access_token"))}});case 20:console.log("update failed!"),Object(h.a)();case 22:e.next=24;break;case 24:e.next=28;break;case 26:console.log("no access token"),Object(h.a)();case 28:return e.abrupt("return",{Authorization:"Bearer ".concat(localStorage.getItem("access_token")),headers:{Authorization:"Bearer ".concat(localStorage.getItem("access_token"))}});case 29:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}()),Uh=Object(Ih.a)((function(e){var t=e.graphQLErrors,a=e.networkError;console.log("errors?");try{if(t){console.log("[graphQLError]",t);var i,r=Object(n.a)(t);try{for(r.s();!(i=r.n()).done;){var c=i.value;switch(c.extensions.code){case"forbidden":O.b.error(c.message);break;case"access-denied":case"start-failed":console.log("got start-failed error in graphql"),console.log("would have asked for new token, but auth link will handle it");case"validation-failed":return void console.log(c);default:console.log(c),O.b.error(c.message)}}}catch(c){r.e(c)}finally{r.f()}}if(a){if(console.log("[Network error]",a),void 0===a.extensions)return O.b.error("Failed to connect to Mythic, please refresh"),Object(h.a)(),Yh(),void(window.location="/new/login");switch(a.extensions.code){case"access-denied":O.b.warning("Access Denied");break;case"start-failed":console.log("got start-failed error in network"),Object(h.a)(),Yh(),window.location="/new/login";break;default:console.log(a)}}}catch(o){return O.b.error("Failed to connect to Mythic, please refresh"),console.log(o),Yh(),void(window.location="/new/login")}})),Gh=function(){var e=Object(c.a)(r.a.mark((function e(){var t,a,n;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Rh=!0,t={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refresh_token:localStorage.getItem("refresh_token"),access_token:localStorage.getItem("access_Token")})},e.next=4,fetch("/refresh",t);case 4:return a=e.sent,n=a.json().then((function(e){return console.log(e),"access_token"in e?(Object(h.e)(e),console.log("successfully got new access_token"),Rh=!1,!0):(console.log("calling FailedRefresh from GetNewToken call"),Object(h.a)(),Rh=!1,!1)})).catch((function(e){return console.log("Error trying to get json response in GetNewToken",e),console.log(a),Object(h.a)(),Rh=!1,!1})),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Kh=new $h.SubscriptionClient("https:"===window.location.protocol?"wss://"+window.location.host+"/graphql/":"ws://"+window.location.host+"/graphql/",{reconnect:!0,reconnectionAttempts:10,connectionParams:function(){return{Authorization:"Bearer ".concat(localStorage.getItem("access_token")),headers:{Authorization:"Bearer ".concat(localStorage.getItem("access_token"))}}}}),Vh=new Dh.a(Kh),Qh=Object(wh.split)((function(e){var t=e.query,a=Object(Ph.e)(t);return"OperationDefinition"===a.kind&&"subscription"===a.operation}),Vh,zh),Jh=new Ch.a({link:Object(wh.from)([Hh,Uh,Mh,Hh.concat(Qh)]),cache:Bh});function Yh(){var e=Object.assign({},Kh.operations);Kh.close(!0),Kh.connect(),Object.keys(e).forEach((function(t){Kh.sendMessage(t,Lh.a.GQL_START,e[t].options)}))}null!==localStorage.getItem("access_token")&&(Wh(localStorage.getItem("access_token"))?null!==localStorage.getItem("user")&&Object(h.b)({loggedIn:!0,access_token:localStorage.getItem("access_token"),refresh_token:localStorage.getItem("refresh_token"),user:JSON.parse(localStorage.getItem("user"))}):(localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token"),localStorage.removeItem("user"))),d.a.render(Object(x.jsx)(s.a.StrictMode,{children:Object(x.jsx)(Sh.a,{client:Jh,children:Object(x.jsx)(Ap.a,{children:Object(x.jsx)(vh,{},"App")})})}),document.getElementById("root"))}},[[825,1,2]]]); +//# sourceMappingURL=main.14a4d6e6.chunk.js.map \ No newline at end of file diff --git a/mythic-react-docker/mythic/public/static/js/main.14a4d6e6.chunk.js.map b/mythic-react-docker/mythic/public/static/js/main.14a4d6e6.chunk.js.map new file mode 100644 index 000000000..1faaa7558 --- /dev/null +++ b/mythic-react-docker/mythic/public/static/js/main.14a4d6e6.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["components/pages/Callbacks/CallbacksTabsTaskingFilterDialog.js","components/pages/Callbacks/CallbacksTabsTaskingInputTokenSelect.js","components/pages/Callbacks/CallbacksTabsTaskingInput.js","components/pages/Callbacks/CallbacksTabsTasking.js","components/MythicComponents/MythicDialog.js","components/pages/Callbacks/TaskFromUIButton.js","components/utilities/Clipboard.js","cache.js","themes/Themes.js","components/utilities/useSingleAndDoubleClick.js","components/MythicComponents/MythicResizableGrid/styles.js","components/MythicComponents/MythicResizableGrid/HeaderCell.js","components/MythicComponents/MythicResizableGrid/Cell.js","components/MythicComponents/MythicResizableGrid/DraggableHandles.js","components/MythicComponents/MythicResizableGrid/MythicResizableGrid.js","components/MythicComponents/MythicResizableGrid/index.js","components/MythicComponents/MythicTextField.js","components/pages/Search/CredentialTableNewCredentialDialog.js","components/MythicComponents/MythicDisplayTextDialog.js","components/MythicComponents/MythicStyledTooltip.js","components/pages/Callbacks/TaskDisplay.js","components/pages/Callbacks/TaskParametersDialogRow.js","components/MythicComponents/MythicFileUpload.js","components/pages/Callbacks/TaskParametersDialog.js","components/MythicComponents/MythicSelectFromListDialog.js","components/pages/Callbacks/ResponseDisplayScreenshotModal.js","components/pages/Callbacks/TaskTokenDialog.js","components/pages/Callbacks/ResponseDisplayPlaintext.js","components/utilities/Snackbar.js","components/pages/Callbacks/TaskDisplayContainer.js","components/pages/Callbacks/ResponseDisplay.js","components/pages/Callbacks/ResponseDisplayScreenshot.js","components/MythicComponents/MythicTabPanel.js","components/pages/Callbacks/ResponseDisplayDownload.js","components/pages/Callbacks/ResponseDisplaySearch.js","components/pages/Callbacks/TaskCommentDialog.js","components/pages/Callbacks/TaskTagDialog.js","components/pages/Callbacks/TaskOpsecDialog.js","components/pages/Callbacks/TaskViewParametersDialog.js","components/pages/Callbacks/TaskViewStdoutStderrDialog.js","components/pages/Callbacks/ResponseDisplayTableDialogTable.js","components/pages/Callbacks/ResponseDisplayTable.js","components/utilities/Time.js","components/MythicComponents/MythicConfirmDialog.js","../node_modules/yargs-parser sync","assets/mythic.svg","components/pages/Login/LoginForm.js","components/pages/Settings/SettingsOperatorAPIToken.js","components/pages/Settings/SettingsOperatorDialog.js","components/pages/Settings/SettingsOperatorDeleteDialog.js","components/pages/Settings/SettingsOperator.js","components/pages/Settings/SettingsOperatorTable.js","components/pages/Settings/Settings.js","components/pages/PayloadTypesC2Profiles/PayloadTypeBuildDialog.js","components/pages/PayloadTypesC2Profiles/PayloadTypeCard.js","components/pages/PayloadTypesC2Profiles/PayloadTypeContainerDisplay.js","components/pages/PayloadTypesC2Profiles/C2ProfileBuildDialog.js","components/pages/PayloadTypesC2Profiles/C2ProfileOutputDialog.js","components/pages/PayloadTypesC2Profiles/C2ProfileConfigDialog.js","components/pages/PayloadTypesC2Profiles/C2ProfileStartStopOutputDialog.js","components/pages/CreatePayload/CreatePayloadParameter.js","components/pages/CreatePayload/CreatePayloadC2ProfileParametersTable.js","components/pages/PayloadTypesC2Profiles/C2ProfileSavedInstancesDialog.js","components/pages/PayloadTypesC2Profiles/C2ProfilesCard.js","components/pages/PayloadTypesC2Profiles/C2ProfileContainerDisplay.js","components/pages/PayloadTypesC2Profiles/TranslationContainerCard.js","components/pages/PayloadTypesC2Profiles/TranslationContainerDisplay.js","components/pages/PayloadTypesC2Profiles/PayloadTypesC2Profiles.js","components/pages/CreatePayload/CreatePayloadNavigationButtons.js","components/pages/CreatePayload/Step1SelectOS.js","components/pages/CreatePayload/CreatePayloadBuildParametersTable.js","components/pages/CreatePayload/Step2SelectPayloadType.js","components/pages/CreatePayload/Step3SelectCommands.js","components/pages/CreatePayload/Step4C2Profiles.js","components/pages/CreatePayload/PayloadSubscriptionNotification.js","components/pages/CreatePayload/Step5Build.js","components/pages/CreatePayload/CreatePayload.js","components/pages/CreateWrapper/CreatePayloadNavigationButtons.js","components/pages/CreateWrapper/Step1SelectOS.js","components/pages/CreateWrapper/CreatePayloadParameter.js","components/pages/CreateWrapper/CreatePayloadBuildParametersTable.js","components/pages/CreateWrapper/Step2SelectPayloadType.js","components/pages/Payloads/DetailedPayloadTable.js","components/pages/CreateWrapper/Step3SelectPayload.js","components/pages/CreateWrapper/PayloadSubscriptionNotification.js","components/pages/CreateWrapper/Step5Build.js","components/pages/CreateWrapper/CreatePayload.js","components/pages/EventFeed/EventFeedTableEventsActions.js","components/pages/EventFeed/EventFeedTableEvents.js","components/pages/EventFeed/EventFeedTableInput.js","components/pages/EventFeed/EventFeedTable.js","components/pages/EventFeed/EventFeed.js","components/pages/Operations/OperationTableRowUpdateOperatorsDialogRow.js","components/pages/Operations/OperationTableRowUpdateOperatorsDialog.js","components/pages/Operations/OperationTableRowNotificationsDialog.js","components/pages/Operations/OperationTableRow.js","components/pages/Operations/OperationTable.js","components/pages/Operations/EditBlockListDialog.js","components/pages/Operations/CommandBlockListTable.js","components/pages/Operations/Operations.js","components/pages/BrowserScripts/EditScriptDialog.js","components/pages/BrowserScripts/BrowserScriptsTableRow.js","components/pages/BrowserScripts/BrowserScriptsTable.js","components/pages/BrowserScripts/BrowserScriptsOperationsTableRow.js","components/pages/BrowserScripts/BrowserScriptsOperationsTable.js","components/pages/BrowserScripts/BrowserScripts.js","components/pages/Payloads/PayloadDescriptionDialog.js","components/pages/Payloads/PayloadFilenameDialog.js","components/pages/Payloads/PayloadBuildMessageDialog.js","components/pages/Payloads/PayloadsTableRowC2Status.js","components/pages/Payloads/PayloadsTableRowBuildStatus.js","components/pages/Payloads/PayloadConfigCheckDialog.js","components/pages/Payloads/PayloadRedirectRulesDialog.js","components/pages/Payloads/PayloadsTableRow.js","components/pages/Payloads/ImportPayloadConfigDialog.js","components/pages/Payloads/PayloadsTable.js","components/pages/Payloads/Payloads.js","components/pages/Callbacks/D3ContextMenu.js","components/pages/Callbacks/C2PathDialog.js","components/pages/ExpandedCallback/ExpandedCallbackSideDetails.js","components/pages/ExpandedCallback/ExpandedCallback.js","components/pages/Home/QuickStartCard.js","components/pages/Home/AgentC2Overview.js","components/pages/Home/Home.js","components/utilities/LoggedInRoute.js","components/MythicComponents/MythicFileBrowserVirtualTree.js","components/pages/Callbacks/CallbacksTabsFileBrowserTree.js","components/pages/Callbacks/DownloadHistoryDialog.js","components/pages/Callbacks/TableFilterDialog.js","components/MythicComponents/MythicTransferList.js","components/pages/Callbacks/CallbacksTabsFileBrowserTable.js","components/pages/Callbacks/CallbacksTabsFileBrowser.js","components/MythicComponents/MythicProcessBrowserVirtualTree.js","components/pages/Callbacks/CallbacksTabsProcessBrowserTree.js","components/pages/Callbacks/CallbacksTabsProcessBrowserTable.js","components/pages/Callbacks/CallbacksTabsProcessBrowser.js","components/pages/Callbacks/CallbacksTabs.js","components/pages/Callbacks/HeightsDialog.js","components/pages/Callbacks/CallbackMutations.js","components/pages/Callbacks/DetailedCallbackTable.js","components/pages/Callbacks/CallbacksTabsTaskMultipleDialog.js","components/pages/Callbacks/CallbacksTabsHideMultipleDialog.js","components/pages/Callbacks/CallbacksTableRow.js","components/pages/Callbacks/CallbacksTable.js","components/pages/Callbacks/ManuallyAddEdgeDialog.js","components/pages/Callbacks/CallbacksGraph.js","components/pages/Callbacks/CallbacksTop.js","components/pages/Callbacks/Callbacks.js","components/pages/Search/SearchTabTasks.js","components/MythicComponents/MythicSnackDownload.js","components/pages/Search/FileMetaTable.js","components/pages/Search/FileBrowserTable.js","components/pages/Search/SearchTabFiles.js","components/pages/Search/CredentialTable.js","components/pages/Search/SearchTabCredentials.js","components/pages/Search/KeylogsTable.js","components/pages/Search/SearchTabKeylog.js","components/pages/Search/TokenDescriptionDialog.js","components/pages/Search/TokenTable.js","components/pages/Search/SearchTabTokens.js","components/pages/Search/CallbackSearchTable.js","components/pages/Search/SearchTabCallbacks.js","components/pages/Search/ArtifactTable.js","components/pages/Search/SearchTabArtifacts.js","components/pages/Search/SocksSearchTable.js","components/pages/Search/SearchTabSocks.js","components/pages/Search/Search.js","components/TopAppBarNotifications.js","components/EventFeedNotifications.js","components/mythic_red_small.svg","components/TopAppBar.js","components/utilities/useDarkMode.js","components/pages/SingleTaskView/TaskArtifactsTable.js","components/pages/SingleTaskView/TaskMITREATTACKTable.js","components/pages/SingleTaskView/TaskFilesTable.js","components/pages/SingleTaskView/TaskCredentialsTable.js","components/pages/SingleTaskView/MetadataTable.js","components/pages/SingleTaskView/IncludeMoreTasksDialog.js","components/pages/SingleTaskView/SingleTaskView.js","themes/GlobalStyles.js","components/pages/Reporting/ReportingTable.js","components/pages/Reporting/Reporting.js","components/pages/MITRE_ATTACK/MitreMapDisplayDialog.js","components/pages/MITRE_ATTACK/MitreGridRow.js","components/pages/MITRE_ATTACK/MitreGridColumn.js","components/pages/MITRE_ATTACK/SelectPayloadTypeDialog.js","components/pages/MITRE_ATTACK/MitreGrid.js","components/pages/MITRE_ATTACK/MitreAttack.js","components/App.js","index.js"],"names":["MenuProps","PaperProps","style","maxHeight","ITEM_HEIGHT","width","variant","getContentAnchorEl","useStyles","makeStyles","theme","formControl","margin","spacing","chips","display","flexWrap","chip","noLabel","marginTop","operatorQuery","gql","CallbacksTabsTaskingFilterDialog","props","me","useReactiveVar","meState","React","useState","onlyOperators","setOnlyOperators","operatorUsernames","setOperatorUsernames","onlyHasComments","setOnlyHasComments","onlyCommands","setOnlyCommands","everythingBut","setEverythingBut","onlyParameters","setOnlyParameters","commandOptions","setCommandOptions","classes","useQuery","variables","operation_id","user","current_operation_id","onCompleted","data","operation_by_pk","operators","map","op","username","useEffect","undefined","filterOptions","filterCommandOptions","commandOptionNames","c","cmd","Fragment","DialogTitle","id","DialogContent","dividers","overflow","FormControl","className","InputLabel","Select","labelId","multiple","value","onChange","event","target","input","Input","renderValue","selected","Chip","label","name","MenuItem","Checkbox","color","checked","indexOf","ListItemText","primary","Switch","inputProps","length","MythicTextField","error","DialogActions","Button","onClick","onClose","onSubmit","CallbacksTabsTaskingInputTokenSelect","options","setOptions","setSelected","inputRef","useRef","opts","changeSelectedToken","ref","User","tokenId","opt","token","TokenId","description","GetLoadedCommandsSubscription","subscriptionCallbackTokens","subscriptionTask","CallbacksTabsTaskingInputPreMemo","snackMessageStyles","anchorOrigin","vertical","horizontal","autoHideDuration","preventDuplicate","maxSnack","marginBottom","snackReverseSearchMessageStyles","message","setMessage","loadedOptions","setLoadedOptions","taskOptions","setTaskOptions","taskOptionsIndex","setTaskOptionsIndex","filteredTaskOptions","setFilteredTaskOptions","tabOptions","setTabOptions","tabOptionsIndex","setTabOptionsIndex","openFilterOptionsDialog","setOpenFilterOptionsDialog","tokenOptions","setTokenOptions","unmodifiedHistoryValue","setUnmodifiedHistoryValue","reverseSearching","setReverseSearching","reverseSearchString","setReverseSearchString","reverseSearchOptions","setReverseSearchOptions","reverseSearchIndex","setReverseSearchIndex","mountedRef","useSubscription","callback_id","fetchPolicy","shouldResubscribe","onSubscriptionData","subscriptionData","current","parentMountedRef","callbacktoken","task","filteredOptions","filter","applyFilteringToTasks","cmds","loadedcommands","cmdData","command","attributes","JSON","parse","push","commandparameters","supported_os","sort","a","b","display_params","includes","operator","comment","command_name","RegExp","test","parseCommandLine","command_line","stringArgs","booleanArgs","arrayArgs","numberArgs","i","parameter_type","cli_name","argv","str","res","sQuoted","dQuoted","notEmpty","buffer","split","forEach","v","s","slice","SyntaxError","parseToArgv","parser","string","boolean","number","array","configuration","snackActions","warning","determineCommandGroupName","parsed","cmdGroupOptions","reduce","prev","cur","parameter_group_name","Object","keys","key","paramGroups","intersection","onSubmitCommandLine","evt","force_parsed_popup","preventDefault","stopPropagation","splitMessage","find","l","cmdGroupName","parsedWithPositionalParameters","params","join","groupNames","parsedCopy","shift","usedGroupName","groupParameters","ui_position","unSatisfiedArguments","fillOutPositionalArguments","console","log","Boolean","TextField","placeholder","onKeyDown","newIndex","original_params","lowerCaseTextSearch","toLowerCase","filteredMatches","x","size","autoFocus","fullWidth","InputProps","type","startAdornment","Typography","ctrlKey","newMessage","pieces","lastFlag","startsWith","cmdGroupNames","paramOptions","toLocaleLowerCase","newMsg","entries","endsWith","trim","info","callback_os","shiftKey","tasking_location","disabled","endAdornment","IconButton","MythicDialog","maxWidth","open","innerDialog","onSubmitFilter","CallbacksTabsTaskingInput","memo","CallbacksTabsTaskingLabel","tabInfo","payloadDescription","callbackDescription","callbackID","setDescription","openEditDescriptionDialog","setOpenEditDescriptionDialog","customDescription","onContextMenu","title","onEditTabDescription","taskingDataFragment","createTaskingMutation","getTaskingQuery","getNextBatchTaskingQuery","CallbacksTabsTaskingPanel","index","onCloseTab","taskLimit","setTaskLimit","openParametersDialog","setOpenParametersDialog","commandInfo","setCommandInfo","taskingData","setTaskingData","taskingDataRef","Date","toISOString","fromNow","selectedToken","setSelectedToken","setFilterOptions","canScroll","setCanScroll","fetched","setFetched","fetchedAllTasks","setFetchedAllTasks","messagesEndRef","useMutation","update","cache","createTask","status","success","onError","subscriptionDataCallback","useCallback","oldLength","mergedData","findIndex","element","oldArray","newArray","commentOperator","completed","timestamp","opsec_pre_blocked","opsec_pre_bypassed","opsec_post_blocked","opsec_post_bypassed","tasks","equalTaskTrees","limit","scrollToBottom","scrollIntoView","behavior","useLayoutEffect","useLazyQuery","foundNew","callback","getInfiniteScrollTasking","loadingMore","loading","offset","fetchLimit","onCreateTask","files","token_id","MythicTabPanel","MythicStyledTooltip","marginLeft","LinearProgress","thickness","paddingTop","overflowY","flexGrow","TaskDisplay","command_id","newFilter","previousTaskingLocation","newTaskingLocation","fileParamExists","param","missingRequiredPrams","missingParams","required","groupName","stringify","os","TaskParametersDialog","payloadtype_id","parameters","selectedParameterGroup","descriptionElementRef","descriptionElement","focus","scroll","MythicModifyStringDialog","setComment","onCommitSubmit","onEnter","MythicViewJSONAsTableDialog","tableType","setTableType","headers","setHeaders","permissions","permissionDict","constructor","Array","isArray","leftColumn","rightColumn","elevation","position","component","Paper","header","hover","wordBreak","whiteSpace","row","MythicViewObjectPropertiesAsTableDialog","getLoadedCommandsQuery","TaskFromUIButton","ui_feature","onTasked","getConfirmation","openDialog","fileBrowserCommands","setFileBrowserCommands","openSelectCommandDialog","setOpenSelectCommandDialog","selectedCommand","setSelectedCommand","callbackTokenOptions","setCallbackTokenOptions","selectedCallbackToken","setSelectedCallbackToken","openCallbackTokenSelectDialog","setOpenCallbackTokenSelectDialog","taskingVariables","setTaskingVariables","openConfirmDialog","setOpenConfirmDialog","savedFinalVariables","tasked","callbackData","callback_by_pk","active","availableCommands","availableTokens","callbacktokens","onSubmitTasking","taskingLocation","action","identifier","payload","payloadtype","dontCloseOnSubmit","copyStringToClipboard","el","document","createElement","setAttribute","left","body","appendChild","select","execCommand","removeChild","toString","makeVar","loggedIn","access_token","refresh_token","menuOpen","successfulLogin","localStorage","setItem","successfulRefresh","getItem","FailedRefresh","removeItem","muiTheme","createMuiTheme","palette","main","secondary","useSingleAndDoubleClick","onSingleClick","onDoubleClick","delay","click","setClick","timer","setTimeout","clearTimeout","headerCellRow","flexDirection","top","right","zIndex","headerCell","alignItems","padding","boxSizing","justifyContent","userSelect","backgroundColor","background","paper","borderTop","tableHover","borderRight","borderBottom","borderLeft","cursor","hoveredRow","cell","fontFamily","cellInner","overflowX","textOverflow","draggableHandlesContainer","draggableHandlesClickArea","pointerEvents","draggableHandlesIndicator","backgroundImage","HeaderCell","contextMenuOptions","sortIndicatorIndex","sortDirection","headerNameKey","VariableSizeGridProps","rowIndex","columnIndex","dropdownAnchorRef","useTheme","item","items","isFiltered","filtered","handleClick","e","handleDoubleClick","openContextMenu","setOpenContextMenu","handleContextClick","disableFilterMenu","handleClose","contains","handleClicks","Box","toUpperCase","icon","faFilter","Popper","anchorEl","role","transition","disablePortal","TransitionProps","placement","Grow","transformOrigin","dark","light","ClickAwayListener","onClickAway","MenuList","option","handleMenuItemClick","Cell","rowClassName","gridUUID","onDoubleClickRow","cellStyle","cellData","rowStyle","rowData","onMouseEnter","cells","getElementsByClassName","classList","add","onMouseLeave","remove","DraggableHandles","forwardRef","height","rowHeight","minColumnWidth","columnWidths","onStop","isDragging","setIsDragging","_","leftOffset","axis","bounds","Number","POSITIVE_INFINITY","bottom","y","onStart","MIN_COLUMN_WIDTH","CellRenderer","ResizableGridWrapper","columns","onClickHeader","widthMeasureKey","AutoSizerProps","scrollbarWidth","useScrollbarSize","column","setColumnWidths","gridRef","dragHandlesRef","getColumnWidth","useMemo","Math","random","substring","getRowHeight","totalWidth","updatedColumnWidths","totalWidthDiff","updatedWidthIndexs","resetAfterColumnIndex","itemsWithHeader","innerElementType","children","rest","disableAutosize","longestElementInColumn","max","itemRow","String","updatedWidths","columnWidth","floor","autosizeColumn","columnCount","rowCount","itemData","overscanRowCount","onScroll","scrollLeft","scrollTo","MythicResizableGrid","ValidationTextField","withStyles","root","borderColor","borderWidth","borderLeftWidth","validate","checkError","onKeyPress","this","requiredValue","InputLabelProps","inputLabelProps","multiline","helperText","errorText","Component","CredentialTableNewCredentialDialog","credentialType","setCredentialType","account","setAccount","realm","setRealm","credential","setCredential","MythicDisplayTextDialog","tooltip","contrast","text","boxShadow","shadows","fontSize","arrow","other","taskDataFragment","getSubTaskingQuery","marginRight","heading","typography","pxToRem","secondaryHeading","taskAndTimeDisplay","secondaryHeadingExpanded","verticalAlign","details","accordionUseStyles","content","expandIcon","expanded","MinusSquare","d","PlusSquare","StyledTreeItem","paddingRight","iconContainer","opacity","group","paddingLeft","fade","TaskDisplayPreMemo","nodesSelected","setNodesSelected","toggleTaskTree","task_id","newSelection","TaskRow","toggleSelection","TaskStatusDisplay","ColoredTaskDisplay","themeColor","setThemeColor","minHeight","dropdownOpen","setDropdownOpen","isFetchingSubtasks","setIsFetchingSubtasks","shouldDisplay","setShouldDisplay","notifyOnNetworkStatusChange","stopPolling","startPolling","getSubTasking","getSubTasks","toggleTaskDropdown","nodeId","onIconClick","TaskLabel","tsk","displayComment","setDisplayComment","alertBadges","setAlertBadges","accordionClasses","prevResponseMaxId","scrollContent","currentData","responses","node","isAppearing","getElementById","block","inline","unmountOnExit","onEntered","defaultExpanded","toLocalTime","view_utc_time","badgeContent","getDynamicQueryParams","credentialFragment","createCredentialMutation","TaskParametersDialogRow","setValue","ChoiceOptions","setChoiceOptions","boolValue","setBoolValue","arrayValue","setArrayValue","choiceMultipleValue","setChoiceMultipleValue","agentConnectNewHost","setAgentConnectNewHost","agentConnectHostOptions","setAgentConnectHostOptions","agentConnectNewPayload","setAgentConnectNewPayload","agentConnectHost","setAgentConnectHost","agentConnectPayloadOptions","setAgentConnectPayloadOptions","agentConnectPayload","setAgentConnectPayload","agentConnectC2ProfileOptions","setAgentConnectC2ProfileOptions","agentConnectC2Profile","setAgentConnectC2Profile","openAdditionalPayloadOnHostMenu","setOpenAdditionalPayloadOnHostmenu","createCredentialDialogOpen","setCreateCredentialDialogOpen","fileValue","setFileValue","backdropOpen","setBackdropOpen","usingDynamicParamChoices","dynamic_query_function","choices","getDynamicParams","addedCredential","newLength","insert_credential_one","credential_text","createCredential","parameter_name","payload_type","ptype","hostNum","payloadNum","parseInt","default_value","onChangeAgentConnect","host_index","payload_index","c2_index","c2profileparameters","agentConnectValue","host","agent_uuid","uuid","c2_profile","onChangeValue","onChangeCredentialJSONValue","onChangeChoiceMultiple","onChangeText","onChangeNumber","onSwitchChange","onFileChange","onChangeAgentConnectHost","onChangeAgentConnectPayload","onChangeAgentConnectC2Profile","onChangeAgentConnectNewHost","onChangeAgentConnectNewPayload","onAgentConnectAddNewPayloadOnHost","payload_choices","onAgentConnectRemovePayloadOnHost","payloadOnHostID","testParameterValues","curVal","verifier_regex","addNewArrayValue","onCreateCredential","TableRow","TableCell","display_name","Backdrop","invisible","CircularProgress","native","TableContainer","Table","tableLayout","TableBody","removed","splice","removeArrayValue","n","values","onChangeArrayText","hidden","choice","c2_profile_id","c2profileparameter","crypto_type","enc_key","dec_key","callback_uuid","agent_callback_id","onChangeLinkInfo","TableHead","getParameterObject","UploadTaskFile","file","formData","FormData","append","fetch","method","upload_response","upload_result","json","then","agent_file_id","catch","statusText","GetLoadedCommandsQuery","getAllCommandsQuery","getAllEdgesQuery","getAllPayloadsQuery","getAllPayloadsOnHostsQuery","addPayloadOnHostMutation","removePayloadOnHostMutation","getCommandQuery","getCredentialsQuery","parameterGroups","setParameterGroups","setSelectedParameterGroup","setParameters","rawParameters","setRawParameters","all","loaded","edges","credentials","requiredPieces","setRequiredPieces","getAllCommands","allCommandsLoading","getLoadedCommands","loadedCommandsLoading","getAllEdges","loadedAllEdgesLoading","getAllPayloads","loadedAllPayloadsLoading","getAllPayloadsOnHosts","loadedAllPayloadsOnHostsLoading","getAllCredentials","loadedCredentialsLoading","addPayloadOnHost","RemovePayloadOnHost","requiredPiecesInitial","command_by_pk","choices_are_all_commands","choices_are_loaded_commands","payload_type_id","intersect","setB","Set","has","getLinkInfoFromAgentConnect","getLinkInfoValue","enc_key_base64","dec_key_base64","sorted","parsedParameters","defaultV","choice_filter_by_command_attributes","prevn","match","cmd_attributes","agentConnectNewPayloads","foundP2P","profiles","payloadc2profiles","profile","c2profile","is_p2p","filemetum","filename_text","tag","callbacksOrganized","entry","found","updates","c2info","c2profileparametersinstances","val","c2array","payloadInfo","registered_payload","payloads","organized","payloadonhost","duplicated_payload","p","allOrganized","hostIndex","o","supported_agents","build_requirements","supported_agent_build_parameters","matched","buildparameterinstances","build_param","buildparameter","parameter","edge_choices","callbackgraphedge","edge","source","destination","direction","end_timestamp","newFileUUIDs","collapsedParameters","newUUID","payload_id","Divider","needs_admin","MythicSelectFromListDialog","ResponseDisplayScreenshotModal","images","startIndex","zoom","setZoom","activeStep","setActiveStep","maxSteps","src","steps","nextButton","prevActiveStep","backButton","allTokenDataFragment","getTokenInfo","TaskTokenDialog","tokenData","setTokenData","logonsessionData","setLogonSessionData","authenticationData","setAuthenticationData","tokenKeys","logonsessionKeys","authenticationpackageKeys","token_by_pk","reducedTokenData","logonsession","reducedLogonSessionData","authenticationpackages","reducedAuthenticationData","pkg","pageHeader","pageHeaderText","textAlign","pageHeaderColor","authpkg","ResponseDisplayPlaintext","plaintext","plaintextView","setPlaintextView","newPlaintext","mode","showGutter","highlightActiveLine","minLines","maxLines","showLineNumbers","tabSize","useWorker","useSnackbarRef","SnackbarUtilsConfigurator","useSnackbar","msg","toast","dismiss","closeSnackbar","enqueueSnackbar","ReissueTaskMutationGQL","ReissueTaskHandlerMutationGQL","getAllResponsesLazyQuery","transform","speedDial","TaskDisplayContainer","viewBrowserScript","setViewBrowserScript","commandID","setCommandID","searchOutput","setSearchOutput","selectAllOutput","setSelectAllOutput","toggleViewBrowserScript","toggleSelectAllOutput","toggleOpenSearch","container","SpeedDialDisplay","taskData","viewAllOutput","xs","tooltipPlacement","setTask","openSpeedDial","setOpenSpeedDial","openTaskTagDialog","setOpenTaskTagDialog","openCommentDialog","setOpenCommentDialog","openTokenDialog","setOpenTokenDialog","openStdoutStderrDialog","setOpenStdoutStderrDialog","openOpsecDialog","setOpenOpsecDialog","output","response","Buffer","from","dataBlob","Blob","ele","href","URL","createObjectURL","download","downloadResponses","reissue_task","reissueTask","reissue_task_handler","reissueTaskHandler","ariaLabel","FabProps","TooltipClasses","tooltipTitle","faExpandArrowsAlt","faExternalLinkAlt","window","faBook","subResponsesQuery","getResponsesLazyQuery","getMaxCountQuery","taskScript","ResponseDisplay","setOutput","rawResponses","setRawResponses","highestFetched","search","setSearch","totalCount","setTotalCount","oldSelectAllOutput","openBackdrop","setOpenBackdrop","maxID","responseArray","r","response_aggregate","aggregate","count","fetchMoreResponses","fetchAllResponses","newerResponses","outputResponses","rawResponseArray","highestFetchedId","totalFetchedSoFar","onSubmitSearch","newSearch","disableShrink","SearchBar","ResponseDisplayComponent","PaginationBar","onSubmitPageChange","currentPage","localTotalCount","setTotalcount","maxCount","setMaxCount","setCurrentPage","subscriptionMaxCountCallback","paddingBottom","ceil","page","boundaryCount","onSubmitLocalSearch","localViewBrowserScript","browserScriptData","setBrowserScriptData","script","filterOutput","scriptData","copied","tableUpdates","table","t","filteredRows","rows","foundMatch","browserscriptoperation","unb64script","fun","Function","browserscript","fetchScripts","operator_id","user_id","screenshot","scr","dl","ResponseDisplayScreenshot","openScreenshot","setOpenScreenshot","toUTCString","hoverText","getCallbackData","queryParams","changeSearchParam","a11yProps","MythicTabLabel","selectionFollowsFocus","textColor","indicator","tabID","MythicSearchTabLabel","iconComponent","ResponseDisplayDownload","dowload","startIcon","ResponseDisplaySearch","location","origin","updateCommentMutation","getCommentQuery","TaskCommentDialog","task_by_pk","updateComment","addTaskTagMutation","removeTaskTagMutation","getTaskTagsQuery","button","divider","border","not","TaskTagDialog","newTag","setNewTag","currentTags","tasktag","allTags","setLeft","setRight","setOriginalTags","addTaskTag","removeTaskTag","setChecked","originalTags","leftChecked","rightChecked","handleToggle","currentIndex","newChecked","customList","cardHeader","dense","tabIndex","disableRipple","justify","concat","tasktag_id","updateOpsecRequestMutation","getOpsecQuery","TaskOpsecDialog","opsecMessage","setOpsecMessage","opsecData","setOpsecData","opsec_pre_bypass_user","opsec_pre_message","opsec_post_bypass_user","opsec_post_message","requestOpsecBypass","updateOpsecRequest","getParametersQuery","TaskViewParametersDialog","workingComment","TaskViewStdoutStderrDialog","stdout","stderr","ResponseDisplayTableDialogTable","getIconName","iconName","faFolderOpen","faFolder","faFileArchive","faBoxOpen","faCog","faFileWord","faFileExcel","faFilePowerpoint","faFilePdf","faDatabase","faKey","faFileCode","faDownload","faUpload","faFileImage","faList","faTrashAlt","faSyringe","faSkullCrossbones","faCamera","faFileAlt","doubleClickRow","ResponseDisplayTableStringCell","copyIcon","faCopy","startIconHoverText","startIconColor","plaintextHoverText","endIcon","endIconHoverText","endIconColor","getStringSize","bytes","parseFloat","pow","toFixed","ResponseDisplayTableSizeCell","ResponseDisplayTableActionCell","openButton","setOpenButton","openTaskingButton","setOpenTaskingButton","openDictionaryButton","setOpenDictionaryButton","openStringButton","setOpenStringButton","openTableButton","setOpenTableButton","openDropdownButton","setOpenDropdownButton","finishedTasking","finishedViewingData","leftColumnTitle","rightColumnTitle","getButtonObject","ResponseDisplayTable","dataHeight","setDataHeight","maxElements","allData","setAllData","sortKey","sortType","sortData","setSortData","sortedData","tmpData","reverse","gridData","sortColumn","disableSort","date","init_date","toDateString","toTimeString","getTimeDifference","checkin_time","now","getTime","getTimezoneOffset","millisec","abs","seconds","trunc","minutes","hours","days","useInterval","savedCallback","setInterval","clearInterval","MythicConfirmDialog","dialogText","cancelText","acceptText","webpackEmptyContext","req","Error","code","resolve","module","exports","LoginForm","setUsername","password","setPassword","isJWTValid","submit","requestOptions","restartWebsockets","to","locationState","state","pathname","redirectPath","logo","alt","APITokenRow","onDeleteAPIToken","token_value","SettingsOperatorDialog","passwordOld","setPasswordOld","passwordNew","setPasswordNew","DialogContentText","onAccept","SettingsOperatorDeleteDialog","SettingsOperator","setOpen","openUpdate","setOpenUpdateDialog","openDelete","setOpenDeleteDialog","onDeleteOperator","onUsernameChanged","onPasswordChanged","old_password","new_password","onViewUTCChanged","onActiveChanged","last_login","creation_time","admin","onAdminChanged","colSpan","Collapse","in","timeout","gutterBottom","onCreateAPIToken","float","apitokens","SettingsOperatorTable","openNew","setOpenNewDialog","onNewOperator","GET_Operator","operatorsUpdateViewUTCTime","operatorsUpdateAdmin","operatorsUpdateActive","operatorsDelete","operatorsUpdateUsername","newOperatorMutation","operatorsUpdatePassword","createAPITokenMutation","deleteAPITokenMutation","Settings","setOperators","result","update_operator_by_pk","updatedOperators","err","updateUTC","deleteOperator","updateAdmin","updateActive","createAPIToken","delete_apitokens_by_pk","api","deleteAPIToken","createOperator","newOperator","updateUsername","updatePassword","GET_Payload_Details","PayloadTypeBuildDialog","buildParams","setBuildParams","payload_name","buildparameters","defaultParameter","expand","transitions","create","duration","shortest","expandOpen","running","notrunning","StyledAvatar","badge","borderRadius","animation","Badge","PayloadTypeCard","wrappedPayloads","setWrappedPayloads","openBuildingDialog","setOpenBuildingDialog","supportedOS","setSupportedOS","last_heartbeat","wrap_these_payload_types","wrapped","Card","overlap","CardMedia","media","objectFit","CardContent","author","note","alignContent","wrapper","SUB_Payload_Types","PayloadTypeContainerDisplay","payloadTypes","setPayloadTypes","pt","GET_C2_Details","C2ProfileBuildDialog","randomize","format_string","getProfileOutputQuery","C2ProfileOutputDialog","profile_id","getProfileOutput","getProfileConfigQuery","C2ProfileConfigDialog","config","setConfig","filename","downloadContainerFile","atob","onConfigSubmit","btoa","C2ProfileStartStopOutputDialog","CreatePayloadParameter","passedValue","returnAllDictValues","dictValue","setDictValue","dictOptions","setDictOptions","dictSelectOptions","setDictSelectOptions","dictSelectOptionsChoice","setDictSelectOptionsChoice","chooseOptions","setChooseOptions","dateValue","setDateValue","submitDictChange","list","condensed","custom","tmpDate","setDate","getDate","onChangeDate","initial","default_show","dictSelectOptionsInitial","preCount","addDictValEntry","newDictValue","toggleSwitchValue","newVal","utils","DateFnsUtils","Grid","disableToolbar","format","KeyboardButtonProps","newValues","removeDictEntry","updated","onChangeDictKey","onChangeDictVal","selectOpt","CreatePayloadC2ProfileParametersTable","paramName","getProfileInstaceQuery","deleteInstanceMutation","createInstanceMutation","C2ProfileSavedInstancesDialog","instanceName","setInstanceName","selectedInstance","setSelectedInstance","createdInstances","setCreatedInstances","baseParameters","setBaseParameters","currentParameters","setCurrentParameters","c2profile_by_pk","RandExp","gen","localeCompare","c2profileparametersinstance","inst","getInstanceValues","updatedInstances","instance_name","deleteInstance","create_c2_instance","createInstance","c2Name","parameterName","c2params","c2profile_id","c2_instance","successButton","errorButton","startStopProfileMutation","setProfileConfigMutation","C2ProfilesCard","handleDropdownToggle","prevOpen","handleDropdownClose","startStopProfile","setOpenProfileStartStopDialog","onStartStopProfile","openProfileDialog","setOpenProfileDialog","openProfileConfigDialog","setOpenProfileConfigDialog","openProfileStartStopDialog","openProfileSavedInstancesDialog","setOpenProfileSavedInstancesDialog","uploadContainerFile","configSubmit","faLink","payloadtypec2profiles","container_running","ButtonGroup","file_path","SUB_C2_Profiles","C2ProfileContainerDisplay","setC2profile","TranslationContainerCard","faLanguage","payloadtypes","SUB_Translation_Containers","TranslationContainerDisplay","translationContainers","setTranslationContainers","translationContainersWithPayloads","setTranslationContainersWithPayloads","unassigned","translationcontainer","tr","assigned","PayloadTypesC2Profiles","CreatePayloadNavigationButtons","first","canceled","finished","last","GET_Payload_Types","Step1SelectOS","setOS","osOptions","setOSOptions","sortedOptions","currentOptions","adds","prevData","align","FormHelperText","CreatePayloadBuildParametersTable","buildParameters","Step2SelectPayloadType","selectedPayloadType","setSelectedPayloadType","fileExtension","setFileExtension","supportsDynamicLoading","setSupportsDynamicLoading","payloadTypeParameters","setSelectedPayloadTypeParameters","buildOptions","file_extension","supports_dynamic_loading","payloadtypedata","newParams","finishedParams","Step3SelectCommands","commands","setCommands","payloadType","allCommands","reason","include_command","build_option_that_sets_include_to_false","selectedCommands","CommandTransferSelect","foundExit","cmdNames","hoveredCommand","setHoveredCommnad","itemKey","initialLeft","initialRight","setHoveredData","innerText","CardHeader","List","valueObj","ListItem","ListItemIcon","Step4C2Profiles","c2Profiles","setC2Profiles","c2","original","fixedArray","originalPiece","final","updateC2Parameter","updatedc2","curC2","curc2","FormControlLabel","control","toggleC2Selection","labelPlacement","onChangeCreatedInstanceName","allValid","includedC2","adjustedC2","subscribe_payloads","breakpoints","up","minWidth","fontWeight","actionRoot","icons","collapse","checkIcon","textTransform","SnackMessage","setExpanded","CardActions","clsx","file_id","SnackMessageError","PayloadSubscriptionNotification","build_phase","build_message","persist","build_stderr","create_payload","Step5Build","setFilename","createPayload","createPayloadMutation","final_values","finishedPayload","CreatePayload","setPayload","handleStepData","stepData","handleNext","cancelStep","handleBack","Stepper","alternativeLabel","Step","StepLabel","step","getStepContent","disableNext","selectedPayloadTypeID","setSelectedPayloadTypeID","DetailedPayloadTable","DetailedPayloadInnerTable","setBuildParameters","commandState","payloadcommands","mythic","version","buildParametersState","c2ProfilesState","sha1","md5","j","wrapped_payload_id","Step3SelectPayload","payloadOptions","setPayloadOptions","payloadtype_by_pk","PayloadSelect","selectedPayload","stickyHeader","PayloadsTableRow","onSelected","openDetailedView","setOpenDetailedView","build_error","CreatePayloadWrapper","EventFeedTableEventsActions","setAnchorEl","onUpdateResolution","resolved","currentTarget","ListItemSecondaryAction","Menu","level","onUpdateLevel","getSurroundingEvents","onUpdateDeleted","EventFeedTableEvents","ListItemAvatar","Avatar","disableTypography","textBackgroundColorSuccess","textBackgroundColor","textBackgroundColorMythic","textBackgroundColorError","EventFeedTableInput","onSubmitMessage","Row","EventList","operationeventlog","listRef","createRef","getItemSize","eventlogWithFunctions","oplog","resetAfterIndex","itemCount","itemSize","overscanCount","EventFeedTable","dropDownOptions","loadMore","loadNextError","resolveViewableErrors","resolveAllErrors","GET_Event_Feed","SUB_Event_Feed","GET_Surrounding_Events","Create_Operational_Event_Log","GET_Event_Feed_Next_Error","Update_Deleted","Update_Resolution","Update_Level","Update_ResolveViewableErrors","Update_ResolveAllErrors","EventFeed","setOperationEventLog","setOffset","eventQuerySize","newEvents","indx","updatingPrev","getMoreTasking","getSurroundingEventQuery","getNextError","newOperationEventLog","removedMessage","update_operationeventlog","returning","newMessages","updateDeleted","updatedMessage","update_operationeventlog_by_pk","updatedMessages","updateResolution","updateLevel","updated_ids","updateResolveViewable","updateResolveAllErrors","lower_id","upper_id","resolveIds","ids","OperationTableRowUpdateOperatorsDialogRow","viewMode","setViewMode","blockListName","setBlockListName","view_mode","disabledcommandsprofile","updateOperator","blockListItemIndex","commandBlockLists","cbl","GET_Operations","Update_Lead","Update_OperatorViewMode","Remove_OperatorFromOperation","Add_OperatorsToOperation","OperationTableRowUpdateOperatorsDialog","setAdmin","originalOperators","setOriginalOperators","setCommandBlockLists","allOperators","operatoroperations","updateAssignments","operatoroperation_id","blockListNames","updateOperationLead","addOperators","removeOperatorsMutation","updateOperatorViewMode","newAdmin","admin_id","newOperators","removeOperators","oldMatch","oop","operatoroperation_ids","GET_OperationData","OperationTableRowNotificationsDialog","setName","channel","setChannel","displayName","setDisplayName","iconEmoji","setIconEmoji","iconURL","setIconURL","webhook","setWebhook","webhookMessage","setWebhookMessage","complete","setComplete","webhook_message","icon_emoji","icon_url","onTextChange","onUpdateOperation","updateCurrentOpertionMutation","OperationTableRow","openUpdateNotifications","setOpenUpdateNotifications","openUpdateOperators","setOpenUpdateOperators","openChangeCurrentOperation","setOpenChangeCurrentOperation","updateCurrentOperation","current_operation_name","operation_name","Update_Operation","newOperationMutation","OperationTable","openNewOperator","setOpenNewOperatorDialog","update_operation_by_pk","updateOperation","createOperation","onNewOperation","operation","newOperation","operations","PayloadTypeBlockListPreMemo","leftTitle","setLeftTitle","rightTitle","setRightTitle","PayloadTypeBlockList","getPayloadTypesAndCommandsQuery","EditBlockListDialog","dialogTitle","propBlockListName","currentSelected","editable","setSelectedCommands","updatedPayloadTypes","toAdd","toRemove","newBlockListEntry","deleteBlockListMutation","deleteBlockListEntriesMutation","CommandBlockListTable","blockLists","setBlockLists","newBlockList","insert_disabledcommandsprofile","currentBlockLists","newBlockLists","newEntries","newBlockListEntries","deleteBlockList","filteredBlockLists","deleteBlockListEntry","filteredValues","deleted_ids","deleteBlockListEntries","onSubmitEdits","removeEntryIDs","onAcceptDelete","CommandBlockListTableRow","blockedCommandDisplay","setBlockedCommandDisplay","updatedEntries","setUpdatedEntries","newDisplay","commandNames","GET_BlockLists","Operations","setOperations","arrayForm","updatedOperations","getCommandsAndPayloadTypesQuery","EditScriptDialog","setScript","payloadTypeCmdOptions","setPayloadTypeCmdOptions","setAuthor","inputPTRef","inputCMDRef","onSubmitEdit","new","onRevert","BrowserScriptsTableRow","openEdit","setOpenEdit","isApplied","setIsApplied","openDeleteDialog","browserscriptoperations","onDelete","browserscript_id","onToggleActive","user_modified","onSubmitRemoveFromOperation","onSubmitApplyToOperation","container_version","BrowserScriptsTable","openNewScriptDialog","setOpenNewScriptDialog","onSubmitNew","onToggleOperation","BrowserScriptsOperationsTableRow","openViewScript","setOpenViewScript","readOnly","BrowserScriptsOperationsTable","SUB_BrowserScripts","SUB_OperationBrowserScripts","updateBrowserScriptActive","updateBrowserScriptScript","updateBrowserScriptRevert","addBrowserScript","deleteBrowserScriptMutation","BrowserScripts","browserScripts","setBrowserScripts","operationBrowserScripts","setOperationBrowserScripts","toggleActive","updateScript","revertScript","createBrowserScript","deleteBrowserScript","updateDescriptionMutation","getDescriptionQuery","PayloadDescriptionDialog","payload_by_pk","updateDescription","getFilenameQuery","PayloadFilenameDialog","fileId","setFileId","PayloadBuildMessageDialog","payloadData","setPayloadData","viewError","setViewError","build_stdout","PayloadsTableRowC2Status","PayloadsTableRowBuildStatus","checkPayloadConfigurationQuery","PayloadConfigCheckDialog","config_check","generateRedirectRulesMutation","PayloadRedirectRulesDialog","redirect_rules","rebuildPayloadMutation","exportPayloadConfigQuery","openDescription","setOpenDescriptionDialog","openFilename","setOpenFilenameDialog","openBuildMessage","setOpenBuildMessageDialog","openConfigCheckDialog","setOpenConfigCheckDialog","openRedirectRulesDialog","setOpenRedirectRulesDialog","triggerRebuild","export_payload_config","exportConfig","callback_alert","onAlertChanged","deleted","auto_generated","showDeleted","showAutoGenerated","onRestorePayload","onDeletePayload","ImportPayloadConfigDialog","reader","FileReader","onload","contents","readAsBinaryString","PayloadsTable","onUpdateCallbackAlert","setShowDeleted","setShowAutoGenerated","openPayloadImport","setOpenPayloadImport","history","useHistory","payloadFragment","SUB_Payloads","Get_Payloads","payloadsDelete","payloadsCallbackAlert","restorePayloadMutation","Payloads","setPayloads","deleteFile","payload_ids","deletePayload","update_payload_by_pk","restorePayload","callbackAlert","createContextMenu","g","menuItems","svgId","d3","attr","selectAll","enter","on","menuFactory","pageX","pageY","C2PathDialog","dagreRef","reZoom","setReZoom","drawC2PathElements","callbackgraphedges","rankDir","label_components","packet_flow_view","include_disconnected","show_all_nodes","parent","view_config","node_events","svgGroup","disconnected","disconnectedArrow","connected","connectedArrow","nodeColor","nodeLabelStyle","edgeLabelStyle","add_edge_to_mythic","add_node","setEdge","edge_id","labelStyle","arrowheadStyle","setNode","getLabel","shape","isParent","clusterLabelPos","graphGroup","setParent","add_edge_p2p","createEdge","adjusted_direction","dagreD3","graphlib","Graph","compound","multigraph","directed","setGraph","rankdir","setDefaultEdgeLabel","svg","_groups","call","hasEdge","render","getBoundingClientRect","shapes","circle","bbox","shapeSvg","insert","point","square","candidates","longest","outEdges","graphWidth","graph","graphHeight","zoomScale","min","translateX","translateY","translate","scale","SUB_Edges","ExpandedCallbackSideDetails","ExpandedCallbackSideDetailsTable","displayTime","setDisplayTime","activeEgress","setActiveEgress","activeEgressBool","setActiveEgressBool","openC2Dialog","setOpenC2Dialog","setCallbackgraphedges","callbackgraphedgesAll","setCallbackgraphedgesAll","hasEgressRoute","setHasEgressRoute","callbackEdges","setCallbackEdges","curTime","last_checkin","routes","getEdges","activeOnly","myEdges","foundMore","newEdges","myActiveEdges","locked","locked_operator","integrity_level","ip","external_ip","domain","architecture","pid","sleep_info","process_name","extra_info","SUB_Callbacks","ExpandedCallback","callbackId","useParams","setCallbacks","setTabInfo","tabType","CallbacksTabsTasking","avatar","red","QuickStartCard","subheader","styl","Link","underline","GetC2ProfilesAndPayloadTypes","AgentC2Overview","payloadTypeRows","setPayloadTypeRows","wrappers","setWrappers","c2Headers","payloadRows","payloadc2","wrapperRows","w","Tooltip","wr","Home","LoggedInRoute","rowContainer","depth","rowButtonWrapper","textDecoration","rowButton","rowLabel","visuallyHidden","clip","VirtualTreeRow","onSelectNode","onExpandNode","onCollapseNode","ListProps","handleOnClickButton","isOpen","parent_id","is_file","folderColor","filebrowserobjs_aggregate","name_text","FileBrowserVirtualTree","nodes","openNodes","flattenNode","isLeaf","flat","flattenedNodes","CallbacksTabsFileBrowserTree","treeRoot","fetchFolderData","setTableData","setOpenNodes","nodeData","DownloadHistoryDialog","setHistory","hist","chunks_received","total_chunks","TableFilterDialog","selectedColumn","MythicTransferListDialog","getPermissionsDataQuery","getFileDownloadHistory","updateFileComment","CallbacksTabsFileBrowserTable","setSelectedColumn","columnVisibility","setColumnVisibility","openAdjustColumnsDialog","setOpenAdjustColumnsDialog","fillWidth","visible","tempData","filterRow","onTaskRowAction","FileBrowserTableRowSizeCell","FileBrowserTableRowDateCell","modify_time","FileBrowserTableRowStringCell","showDeletedFiles","selectedFolder","filteredData","f","onRowDoubleClick","newFilterOptions","FileBrowserTableRowNameCell","filemeta","dateData","FileBrowserTableRowActionCell","fileCommentDialogOpen","setFileCommentDialogOpen","viewPermissionsDialogOpen","setViewPermissionsDialogOpen","fileHistoryDialogOpen","setFileHistoryDialogOpen","permissionData","setPermissionData","downloadHistory","setDownloadHistory","filebrowserobj_by_pk","getPermissions","getHistory","whichOption","optionsA","optionsB","filebrowserobj_id","full_path_text","path","parent_path_text","uifeature","fileDataFragment","rootFileQuery","folderQuery","fileDataSubscription","getDeltaFilesQuery","CallbacksTabsFileBrowserLabel","CallbacksTabsFileBrowserPanel","fileBrowserRoots","fileBrowserRootsState","setFileBrowserRootsState","setSelectedFolder","selectedFolderDataRef","selectedFolderData","setSelectedFolderData","currentCallbackIDSetInTable","lastFetchedTime","setShowDeletedFiles","roots","filebrowserobj","subscribeToMore","updatingData","obj","foundHost","rootEntry","mergeData","getFileDeltas","newRoots","workingSet","getFolderData","all_objects","onSetTableData","subscribeToMoreCallback","lastTime","onListFilesButton","fullPath","hostname","onUploadFileButton","onChangeCallbackID","toggleShowDeletedFiles","showStatus","initialCallbackID","subscribeToNewFileBrowserObjs","updateQuery","FileBrowserTableTop","setHostname","setFullPath","setCallbackID","setLocalShowDeletedFiles","manuallySetCallbackID","setManuallySetCallbackID","onLocalListFilesButton","process_id","ProcessBrowserVirtualTree","CallbacksTabsProcessBrowserTree","recursiveCall","getDetailedData","getProcessTokenData","CallbacksTabsProcessBrowserTable","parent_process_id","bin_path","process_by_pk","tokens","getTokens","dataFragment","taskFragment","getNextProcessQuery","getPrevProcessQuery","getLatestTaskForHost","CallbacksTabsProcessBrowserLabel","CallbacksTabsProcessBrowserPanel","taskInfo","setTaskInfo","currentOS","setCurrentOS","makeTree","process","dataTree","processes","getNextProcessDataByHostAndTask","getPreviousProcessDataByHostAndTask","process_aggregate","onNextButton","onPreviousButton","onDiffButton","ProcessBrowserTableTop","taskID","setTaskID","CallbacksTabs","openTabs","clickedTabId","clearSelectedTab","callbackTokens","setCallbackTokens","onCloseTabLocal","AppBar","Tabs","newValue","indicatorColor","scrollButtons","tab","HeightsDialog","heights","setHeights","newHeights","hideCallbackMutation","toggleHideCallbackMutations","removeEdgeMutation","addEdgeMutation","unlockCallbackMutation","lockCallbackMutation","updateDescriptionCallbackMutation","updateSleepInfoCallbackMutation","DetailedCallbackTable","commandsWithScriptOnly","callbacksAndFeaturesQuery","CallbacksTabsTaskMultipleDialog","featureOptions","setFeatureOptions","selectedFeature","setSelectedFeature","leftToTask","startTasking","finalTaskedParameters","features","featureList","supported_ui_features","runningSet","feature","allFeatures","issueNextTasking","CallbacksTabsHideMultipleDialog","updatedCallbacksSuccess","updatedCallbacks","updateCallback","hideCallback","CallbacksTableIDCell","onOpenTab","toggleLock","openMetaDialog","setOpenMetaDialog","openTaskMultipleDialog","setOpenTaskMultipleDialog","openHideMultipleDialog","setOpenHideMultipleDialog","localOnOpenTab","CallbacksTableStringCell","CallbacksTableLastCheckinCell","lastCheckin","setLastCheckin","CallbacksTablePayloadTypeCell","CallbacksTableC2Cell","initialCallbackGraphEdges","onOpenC2Dialog","CallbacksTableOSCell","openOSDialog","setOpenOSDialog","getOSIcon","faWindows","displayOSInfo","faLinux","faApple","faChrome","faQuestion","CallbacksTableSleepCell","updateSleepInfo","openSleepDialog","setOpenSleepDialog","sleep","CallbacksTable","lockCallback","unlockCallback","updateSleep","updateDescriptionSubmit","callbacks","getP2PProfilesAndCallbacks","selectEmpty","ManuallyAddEdgeDialog","callbackOptions","setCallbackOptions","profileOptions","setProfileOptions","selectedDestination","setSelectedDestination","selectedProfile","setSelectedProfile","inputRefDestination","filteredProfileOptions","callbackc2profiles","source_profile","cbopts","cb","loadedLinkCommandsQuery","CallbacksGraph","linkCommands","setLinkCommands","openSelectLinkCommandDialog","setOpenSelectLinkCommandDialog","selectedLinkCommand","setSelectedLinkCommand","selectedCallback","setSelectedCallback","manuallyRemoveEdgeDialogOpen","setManuallyRemoveEdgeDialogOpen","manuallyAddEdgeDialogOpen","setManuallyAddEdgeDialogOpen","edgeOptions","setEdgeOptions","addEdgeSource","setAddEdgeSource","getLinkCommands","viewConfig","setViewConfig","manuallyRemoveEdge","manuallyAddEdge","elm","nodeEdges","getNodeEdges","fulledg","view","saveSvgAsPng","allEdges","getConfigString","source_id","destination_id","CallbacksTop","topDisplay","onOpenTabLocal","tabData","topHeight","Callbacks","setTopDisplay","setOpenTabs","setClickedTabId","oldTabs","tabs","lastClickedTab","oldHeights","onSubmitHeights","SpeedDialWrapper","flexBasis","tabSet","tabHeight","SpeedDialWrapperPreMemo","openHeightsDialog","setOpenHeightsDialog","actions","SpeedDial","SpeedDialIcon","onOpen","SpeedDialAction","responseSearch","parameterSearch","commentSearch","SearchTabTasksLabel","SearchTabTasksSearchPanel","searchField","setSearchField","searchFieldOptions","filterTaskStatus","setFilterTaskStatus","submitSearch","querySearch","querySearchField","queryTaskStatus","adjustedSearch","adjustedTaskStatus","onOutputSearch","taskStatus","onParameterSearch","onCommentSearch","URLSearchParams","adjustedSearchField","get","onChangeSearchField","onChangeTaskStatus","FormLabel","SearchTabTasksPanel","setTaskStatus","handleCallbackSearchSuccess","task_aggregate","handleCallbackSearchFailure","getOutputSearch","getParameterSearch","getCommentSearch","new_search","newTaskStatus","field","Pagination","siblingCount","showFirstButton","showLastButton","MythicSnackDownload","downloadLink","downloadBulkQuery","updateFileDeleted","FileMetaDownloadTable","setFiles","onToggleSelection","initialSelected","download_bulk","downloadBulk","file_ids","onEditComment","fileIds","FileMetaDownloadTableRow","setOpenDelete","openDetails","setOpenDetails","editCommentDialogOpen","setEditCommentDialogOpen","update_filemeta_by_pk","full_remote_path_text","FileMetaUploadTable","FileMetaUploadTableRow","FileMetaScreenshotTable","imageRefs","FileMetaScreenshotTableRow","FileBrowserTable","FileBrowserTableRow","update_filebrowserobj_by_pk","fileMetaFragment","fileBrowserFragment","filenameFileMetaUploadSearch","filenameFileMetaDownloadSearch","filenameFileBrowserSearch","hashFileMetaUploadSearch","hashFileMetaDownloadSearch","commentFileMetaUploadSearch","commentFileMetaDownloadSearch","commentFileBrowserSearch","filenameFileMetaScreenshotSearch","hashFileMetaScreenshotSearch","commentFileMetaScreenshotSearch","SearchTabFilesLabel","SearchTabFilesSearchPanel","searchHost","setSearchHost","searchLocation","setSearchLocation","searchLocationOptions","parsedSearch","setParsedSearch","querySearchHost","querySearchLocation","adjustedSearchHost","adjustedSearchLocation","onFilenameSearch","onHashSearch","onChangeSearchLocation","xhr","XMLHttpRequest","fd","setRequestHeader","onreadystatechange","readyState","responseText","send","uploadFile","SearchTabFilesPanel","fileMetaData","setFileMetaData","fileBrowserData","setFileBrowserData","handleFileMetaSearchResults","filemeta_aggregate","handleFileBrowserSearchResults","filebrowserobj_aggregate","getfilenameFileMetaUploadSearch","getfilenameFileMetaDownloadSearch","getfilenameFileBrowserSearch","getfilenameFileMetaScreenshotSearch","gethashFileMetaUploadSearch","gethashFileMetaDownloadSearch","gethashFileMetaScreenshotSearch","getcommentFileMetaUploadSearch","getcommentFileMetaDownloadSearch","getcommentFileBrowserSearch","getcommentFileMetaScreenshotSearch","hash","updateCredentialComment","updateCredentialAccount","updateCredentialRealm","updateCredentialCredential","updateCredentialDeleted","CredentialTable","setCredentials","cred","onEditAccount","onEditRealm","onEditCredential","onEditDeleted","CredentialTableRow","editAccountDialogOpen","setEditAccountDialogOpen","editRealmDialogOpen","setEditRealmDialogOpen","editCredentialDialogOpen","setEditCredentialDialogOpen","displayCred","update_credential_by_pk","updateAccount","updateRealm","updateCredential","credential_id","accountSearch","realmSearch","credentialSearch","SearchTabCredentialsLabel","SearchTabCredentialsSearchPanel","onAccountSearch","onRealmSearch","onCredentialSearch","OnTypeSearch","SearchTabCredentialsPanel","credentialaData","setCredentialData","handleCredentialSearchResults","credential_aggregate","getAccountSearch","getRealmSearch","getCredentialSearch","KeylogsTable","keylogs","setKeylogs","newArrayData","newSecondLevel","key2","value2","newThirdLevel","key3","value3","k0","k1","k1i","k2","k2i","k3","k3i","keystrokes_text","keylogFragment","keylogSearch","userUniqueSearch","userSearch","programSearch","programUniqueSearch","hostSearch","SearchTabKeylogsLabel","SearchTabKeylogsSearchPanel","onKeylogSearch","onUserSearch","onProgramSearch","onHostSearch","SearchTabKeylogsPanel","keylogData","setKeylogData","handleKeylogSearchResults","keylog_aggregate","keylog","getKeylogSearch","getUserSearch","getUserUniqueSearch","getProgramSearch","getProgramUniqueSearch","getHostSearch","program","TokenDescriptionDialog","updateCallbacksOfDeletedToken","TokenTable","setTokens","TokenTableRow","viewTokenDialog","setViewTokenDialog","editDescriptionDialog","setEditDescriptionDialog","updateCallbackTokensDeleted","update_token_by_pk","Groups","LogonId","LogonType","cbt","tokenFragment","userGroupSearch","SIDSearch","logonTypeSearch","SearchTabTokensLabel","SearchTabTokensSearchPanel","onUserGroupSearch","onSIDSearch","onLogonTypeSearch","SearchTabTokensPanel","handleTokenSearchResults","token_aggregate","getUserGroupSearch","getSIDSearch","getLogonTypeSearch","logontype","sid","CallbackSearchTable","CallbackSearchTableRow","init_callback","callbackFragment","domainSearch","descriptionSearch","ipSearch","SearchTabCallbacksLabel","SearchTabCallbacksSearchPanel","onDomainSearch","onDescriptionSearch","onIPSearch","SearchTabCallbacksPanel","setCallbackData","handleCallbackSearchResults","callback_aggregate","getDomainSearch","getDescriptionSearch","getIPSearch","ArtifactTable","artifacts","setArtifacts","ArtifactTableRow","artifact","artifact_instance_text","artifactFragment","artifactSearch","commandSearch","typeSearch","taskSearch","callbackSearch","SearchTabArtifactsLabel","SearchTabArtifactsSearchPanel","onArtifactSearch","onCommandSearch","onTypeSearch","onTaskSearch","onCallbackSearch","SearchTabArtifactsPanel","artifactData","setArtifactData","taskartifact_aggregate","taskartifact","getArtifactSearch","getCommandSearch","getTypeSearch","getTaskSearch","getCallbackSearch","stopSocks","SocksSearchTable","port","SearchTabSocksLabel","faSocks","SearchTabSocksPanel","onSocksSearch","Search","tabTypes","valueString","valueIndex","set","newRelativePathQuery","SUB_Event_Logs","TopAppBarNotifications","operationeventlog_aggregate","EventFeedNotifications","errorData","_image","_extends","assign","arguments","prototype","hasOwnProperty","apply","_objectWithoutProperties","excluded","sourceKeys","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","SvgMythicRedSmall","_ref","svgRef","titleId","xmlns","xmlnsXlink","viewBox","enableBackground","xmlSpace","ForwardRef","drawerWidth","hide","drawer","flexShrink","drawerPaper","drawerHeader","mixins","toolbar","appBar","easing","sharp","leavingScreen","appBarShift","easeOut","enteringScreen","nested","mythicElement","TopAppBar","settingsRef","documentationRef","documentationAnchorEl","setDocumentationAnchorEl","openGlobal","setOpenGlobal","openCreate","setOpenCreate","openOperations","setOpenOperations","openData","setOpenData","handleDrawerClose","handleDocumentationClose","Toolbar","menuButton","faBiohazard","faFlagCheckered","current_operation","nodeRef","MenuListProps","Drawer","anchor","onEscapeKeyDown","mythicVersion","ListSubheader","disablePadding","toggleTheme","mythicUIVersion","TaskArtifactsTable","taskartifacts","TaskMITREATTACKTable","attacks","setAttacks","newAdds","attacktasks","old","attck","attack","t_num","TaskFilesTable","is_screenshot","is_payload","is_download_from_agent","TaskCredentialsTable","MetadataQuery","TaskMetadataTable","setTasks","getMetadata","task_range","taskIDs","IncludeMoreTasksDialog","taskSelected","setTaskSelected","beforeCount","setBeforeCount","afterCount","setAfterCount","searchTerm","setSearchTerm","setOperator","submitFetchTasks","taskInfoFragment","tasksQuery","getTasksAcrossAllCallbacksQuery","getTasksAcrossACallbackQuery","getTasksAcrossAllCallbacksByOperatorQuery","SingleTaskView","taskId","setTaskIDs","removing","setRemoving","openIncludeMoreTasksDialog","setOpenIncludeMoreTasksDialog","allNewParents","parent_task_id","recent_callback","allParents","allTaskIds","subIds","completedData","before","after","getTasksAcrossAllCallbacks","getTasksAcrossACallback","getTasksAcrossAllCallbacksByOperator","getTasks","toggleTaskToRemove","range","numbers","ranges","expand_range","all_nums","rstart","rend","collapse_range","remainingTasks","remainingTaskIDs","setTaskSearchInfo","baseTask","GlobalStyles","createGlobalStyle","generateReportMutation","generatedReportSubscription","ReportingTable","selectedOutputFormat","setSelectedOutputFormat","includeMITREPerTask","setIncludeMITREPerTask","includeMITREOverview","setIncludeMITREOverview","includeOutput","setIncludeOutput","excludedCallbackHost","setExcludedCallbackHost","excludedCallbackUser","setExcludedCallbackUser","excludedCallbackID","setExcludedCallbackID","generateReport","dataUUID","pop","outputFormat","includeMITREOverall","excludedUsers","excludedHosts","excludedIDs","Reporting","MitreMapDisplayDialog","showCountGrouping","groupedCommands","groupedTasks","replace","DetailedCommandMappingTables","DetailedTaskMappingTables","MitreGridRow","buttonColor","setButtonColor","openDisplay","setOpenDisplay","MitreGridColumn","groupCounts","setGroupCounts","techniqueCounts","setTechniqueCounts","updatedTechniqueCountsForCommands","updatedTechniqueCounts","tactic","getPayloadTypes","SelectPayloadTypeDialog","payloadtypeOptions","setPayloadtypeOptions","MitreGrid","onGetCommands","onGetTasks","onGetCommandsFiltered","onGetTasksFiltered","setShowCountGrouping","openLicense","setOpenLicense","openFilterTasks","setOpenFilterTasks","openFilterCommands","setOpenFilterCommands","exportAttackNavigator","baseNavigator","techniques","Get_MITREATTACK","Get_TaskAttacks","Get_TaskAttacksFiltered","Get_CommandAttacks","Get_CommandAttacksFiltered","MitreAttack","mitreAttack","setMitreAttack","attackCommands","attackcommand","updatingMitre","column_total","attack_id","getCommands","getCommandsFiltered","attackTasks","attacktask","getTasksFiltered","mitre","App","setTheme","mountedComponent","setMountedComponent","setMode","localTheme","useDarkMode","themeMode","themeToggler","default","tableHeader","tableBorder","ThemeProvider","CssBaseline","Snackbar","exact","fetchingNewToken","InMemoryCache","typePolicies","Query","fields","retryLink","RetryLink","jitter","attempts","retryIf","_operation","httpLink","HttpLink","uri","reconnect","connectionParams","Authorization","decoded_token","jwt_decode","exp","authLink","setContext","Promise","diff","GetNewToken","errorLink","graphQLErrors","networkError","extensions","websocketClient","SubscriptionClient","protocol","reconnectionAttempts","wsLink","WebSocketLink","splitLink","query","definition","getMainDefinition","kind","apolloClient","ApolloClient","link","close","connect","sendMessage","MessageTypes","GQL_START","ReactDOM","StrictMode","ApolloProvider","client"],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qBACA,iBACA,eACA,eACA,cACA,iBACA,wBACA,eACA,WACA,gBACA,gBACA,iBACA,WACA,QACA,WACA,gBACA,uBACA,oBACA,aACA,SACA,SACA,uBACA,kBACA,qBACA,UACA,iBACA,oBACA,WACA,cACA,gBACA,eACA,YACA,WACA,2BACA,kBACA,aACA,OACA,iBACA,SACA,SACA,aACA,SACA,QACA,kBACA,kBACA,cACA,wBACA,eACA,mBACA,aACA,yBACA,mBACA,aACA,kCACA,yBACA,iBACA,sBACA,gCACA,eACA,OACA,qBACA,qBACA,YACA,SACA,WACA,UACA,YACA,aACA,WACA,OACA,sBACA,wBACA,wBACA,kBACA,WAEEC,EAAmB,CACvB,UACA,WACA,cACA,YACA,YACA,MACA,YACA,cACA,gBACA,MACA,YACA,sBACA,kBACA,6CACA,cACA,cACA,gBACA,qBACA,aACA,cACA,kBACA,oBACA,qBACA,WAEIC,EAA4B,CAChC,OACA,WAiDJ,OA/CE19B,YAASg9B,EAAc,CACnB/8B,UAAW,CAACgV,SAAUtW,EAAMsW,UAC5B5U,YAAa,SAAAC,GACT,GAAwB,OAArBA,EAAKq9B,YAAqB,CACzBR,EAAa78B,EAAKq9B,aAClB,IAAMC,EAAmBJ,EAAUjyB,QAAQ,SAACC,EAAMK,GAChD,YAA6BhL,IAA1BP,EAAKq9B,YAAY9xB,IAAgD,OAA1BvL,EAAKq9B,YAAY9xB,IAA2C,KAA1BvL,EAAKq9B,YAAY9xB,GACrF,GAAN,mBAAWL,GAAX,CAAiB,CAAC,KAAQK,EAAK,MAASvL,EAAKq9B,YAAY9xB,MAGlD,YAAIL,KAEZ,IAEH,GADA2xB,EAAaS,GACwB,OAAlCt9B,EAAKq9B,YAAYE,aAAsB,CACxC,IAAMC,EAA0BL,EAAiBlyB,QAAQ,SAACC,EAAMK,GAC9D,YAA0ChL,IAAvCP,EAAKq9B,YAAYE,aAAahyB,IAA6D,OAAvCvL,EAAKq9B,YAAYE,aAAahyB,IAAwD,KAAvCvL,EAAKq9B,YAAY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WAAW,iBACxBL,aAAaK,WAAW,UAG9BqqF,IAAS1gC,OACP,cAAC,IAAM2gC,WAAP,UACM,cAACC,GAAA,EAAD,CAAgBC,OAAQX,GAAxB,SACI,cAAC,KAAD,UACI,cAACxD,GAAD,GAAS,aAIvB1nF,SAASiS,eAAe,W","file":"static/js/main.14a4d6e6.chunk.js","sourcesContent":["import React, {useEffect} from 'react';\nimport Button from '@material-ui/core/Button';\nimport DialogActions from '@material-ui/core/DialogActions';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport MythicTextField from '../../MythicComponents/MythicTextField';\nimport Switch from '@material-ui/core/Switch';\nimport Select from '@material-ui/core/Select';\nimport Chip from '@material-ui/core/Chip';\nimport Input from '@material-ui/core/Input';\nimport InputLabel from '@material-ui/core/InputLabel';\nimport MenuItem from '@material-ui/core/MenuItem';\nimport FormControl from '@material-ui/core/FormControl';\nimport ListItemText from '@material-ui/core/ListItemText';\nimport { makeStyles } from '@material-ui/core/styles';\nimport Checkbox from '@material-ui/core/Checkbox';\nimport {useQuery, gql } from '@apollo/client';\nimport { meState } from '../../../cache';\nimport {useReactiveVar} from '@apollo/client';\n\nconst ITEM_HEIGHT = 48;\nconst ITEM_PADDING_TOP = 8;\nconst MenuProps = {\n PaperProps: {\n style: {\n maxHeight: ITEM_HEIGHT * 4.5 + ITEM_PADDING_TOP,\n width: 250,\n },\n },\n variant: \"menu\",\n getContentAnchorEl: () => null\n};\nconst useStyles = makeStyles((theme) => ({\n formControl: {\n margin: theme.spacing(1),\n width: \"100%\",\n },\n chips: {\n display: 'flex',\n flexWrap: 'wrap',\n },\n chip: {\n margin: 2,\n },\n noLabel: {\n marginTop: theme.spacing(2),\n },\n}));\nconst operatorQuery = gql`\nquery operatorQuery($operation_id: Int!) {\n operation_by_pk(id: $operation_id) {\n id\n operators {\n username\n id\n }\n }\n}`;\nexport function CallbacksTabsTaskingFilterDialog(props) {\n const me = useReactiveVar(meState);\n const [onlyOperators, setOnlyOperators] = React.useState([]);\n const [operatorUsernames, setOperatorUsernames] = React.useState([]);\n const [onlyHasComments, setOnlyHasComments] = React.useState(false);\n const [onlyCommands, setOnlyCommands] = React.useState([]);\n const [everythingBut, setEverythingBut] = React.useState([]);\n const [onlyParameters, setOnlyParameters] = React.useState(\"\");\n const [commandOptions, setCommandOptions] = React.useState([]);\n const classes = useStyles();\n useQuery(operatorQuery, {variables: {operation_id: me.user.current_operation_id},\n onCompleted: (data) => {\n setOperatorUsernames(data.operation_by_pk.operators.map( (op) => op.username));\n }\n });\n useEffect( () => {\n if(props.filterOptions[\"operatorsList\"] !== undefined){\n setOnlyOperators(props.filterOptions[\"operatorsList\"]);\n }\n if(props.filterOptions[\"commentsFlag\"] !== undefined){\n setOnlyHasComments(props.filterOptions[\"commentsFlag\"]);\n }\n if(props.filterOptions[\"commandsList\"] !== undefined){\n setOnlyCommands(props.filterOptions[\"commandsList\"]);\n }\n if(props.filterOptions[\"parameterString\"] !== undefined){\n setOnlyParameters(props.filterOptions[\"parameterString\"]);\n }\n if(props.filterOptions[\"everythingButList\"] !== undefined){\n setEverythingBut(props.filterOptions[\"everythingButList\"]);\n }\n if(props.filterCommandOptions){\n const commandOptionNames = props.filterCommandOptions.map(c => c.cmd);\n setCommandOptions(commandOptionNames);\n }\n }, [props.filterOptions]);\n const onSubmit = () => {\n props.onSubmit({\n \"operatorsList\": onlyOperators,\n \"commentsFlag\": onlyHasComments,\n \"commandsList\": onlyCommands,\n \"everythingButList\": everythingBut,\n \"parameterString\": onlyParameters\n });\n props.onClose();\n }\n const onChange = (name, value, error) => {\n setOnlyParameters(value);\n }\n const handleCommentsChange = (event) => {\n setOnlyHasComments(event.target.checked);\n }\n const handleOperatorChange = (event) => {\n setOnlyOperators(event.target.value);\n }\n const handleOnlyCommandsChange = (event) => {\n setOnlyCommands(event.target.value);\n if(event.target.value.length > 0){\n setEverythingBut([]);\n }\n }\n const handleEverythingButChange = (event) => {\n setEverythingBut(event.target.value);\n if(event.target.value.length > 0){\n setOnlyCommands([]);\n }\n }\n return (\n \n Filter Which Tasks Are Visible\n \n \n \n Only Show Tasks by the Following Operators\n }\n renderValue={(selected) => (\n
\n {selected.map((value) => (\n \n ))}\n
\n )}\n MenuProps={MenuProps}\n >\n {operatorUsernames.map((name) => (\n \n -1} />\n \n \n ))}\n \n
\n Only Show Tasks with Comments: \n \n Only Show These Commands\n }\n renderValue={(selected) => (\n
\n {selected.map((value) => (\n \n ))}\n
\n )}\n MenuProps={MenuProps}\n >\n {commandOptions.map((name) => (\n \n -1} />\n \n \n ))}\n \n
\n \n Do Not Show These Commands\n }\n renderValue={(selected) => (\n
\n {selected.map((value) => (\n \n ))}\n
\n )}\n MenuProps={MenuProps}\n >\n {commandOptions.map((name) => (\n \n -1} />\n \n \n ))}\n \n
\n \n
\n
\n \n \n \n \n
\n );\n}\n\n","import React, {useRef, useEffect} from 'react';\nimport MenuItem from '@material-ui/core/MenuItem';\nimport FormControl from '@material-ui/core/FormControl';\nimport Select from '@material-ui/core/Select';\nimport InputLabel from '@material-ui/core/InputLabel';\nimport Input from '@material-ui/core/Input';\n\nexport function CallbacksTabsTaskingInputTokenSelect(props) {\n const [options, setOptions] = React.useState([]);\n const [selected, setSelected] = React.useState('');\n const inputRef = useRef(null); \n const handleChange = (event) => {\n setSelected(event.target.value);\n props.changeSelectedToken(event.target.value);\n };\n useEffect( () => {\n const opts = [...props.options];\n setOptions(opts);\n if(opts.length > 0){\n setSelected(\"Default Token\");\n props.changeSelectedToken(\"Default Token\");\n }else{\n setSelected(\"Default Token\");\n props.changeSelectedToken(\"Default Token\");\n }\n }, [props.options]);\n const renderValue = (value) => {\n if(value === \"Default Token\"){\n return \"Default Token\";\n }\n if(value.User === null){\n return value.tokenId;\n }else{\n return value.User;\n }\n }\n return (\n \n Tokens\n }\n >\n Default Token\n {options.map( (opt) => (\n {opt.token.User === null ? opt.token.TokenId + \" - \" + opt.token.description : opt.token.User + \" - \" + opt.token.description}\n ) )}\n \n \n );\n}\n\n","import { IconButton, Typography } from '@material-ui/core';\nimport SendIcon from '@material-ui/icons/Send';\nimport React from 'react';\nimport {TextField} from '@material-ui/core';\nimport TuneIcon from '@material-ui/icons/Tune';\nimport { MythicDialog } from '../../MythicComponents/MythicDialog';\nimport {CallbacksTabsTaskingFilterDialog} from './CallbacksTabsTaskingFilterDialog';\nimport {CallbacksTabsTaskingInputTokenSelect} from './CallbacksTabsTaskingInputTokenSelect';\nimport { gql, useSubscription } from '@apollo/client';\nimport { snackActions } from '../../utilities/Snackbar';\nimport parser from 'yargs-parser';\nimport { meState } from '../../../cache';\nimport {useReactiveVar} from '@apollo/client';\n\nconst GetLoadedCommandsSubscription = gql`\nsubscription GetLoadedCommandsSubscription($callback_id: Int!){\n loadedcommands(where: {callback_id: {_eq: $callback_id}}){\n id\n command {\n cmd\n id\n attributes\n commandparameters {\n id\n parameter_type: type \n required\n name\n ui_position\n parameter_group_name\n cli_name\n display_name\n }\n }\n }\n \n}\n`;\nconst subscriptionCallbackTokens = gql`\nsubscription subscriptionCallbackTokens ($callback_id: Int!){\n callbacktoken(where: {deleted: {_eq: false}, callback_id: {_eq: $callback_id}}) {\n token {\n TokenId\n id\n User\n description\n }\n id\n }\n}\n`;\nconst subscriptionTask = gql`\nsubscription tasksSubscription($callback_id: Int!){\n task(where: {callback_id: {_eq: $callback_id}, parent_task_id: {_is_null: true}}, order_by: {id: desc}){\n id\n original_params\n display_params\n command_name\n comment\n tasking_location\n parameter_group_name\n status\n operator{\n username\n }\n command {\n commandparameters {\n id\n type\n name\n }\n }\n }\n}\n`;\n\nexport function CallbacksTabsTaskingInputPreMemo(props){\n const snackMessageStyles = {anchorOrigin:{vertical: \"bottom\", horizontal: \"left\"}, autoHideDuration: 2000, preventDuplicate: true, maxSnack: 1, style:{marginBottom: \"50px\"}};\n const snackReverseSearchMessageStyles = {anchorOrigin:{vertical: \"bottom\", horizontal: \"left\"}, autoHideDuration: 1000, preventDuplicate: true, maxSnack: 1, style:{marginBottom: \"100px\"}};\n const [message, setMessage] = React.useState(\"\");\n const [loadedOptions, setLoadedOptions] = React.useState([]);\n const [taskOptions, setTaskOptions] = React.useState([]);\n const [taskOptionsIndex, setTaskOptionsIndex] = React.useState(-1);\n const [filteredTaskOptions, setFilteredTaskOptions] = React.useState([]);\n\n const [tabOptions, setTabOptions] = React.useState([]);\n const [tabOptionsIndex, setTabOptionsIndex] = React.useState(-1);\n\n const [openFilterOptionsDialog, setOpenFilterOptionsDialog] = React.useState(false);\n const [tokenOptions, setTokenOptions] = React.useState([]);\n\n const [unmodifiedHistoryValue, setUnmodifiedHistoryValue] = React.useState(\"parsed_cli\");\n const [reverseSearching, setReverseSearching] = React.useState(false);\n const [reverseSearchString, setReverseSearchString] = React.useState('');\n const [reverseSearchOptions, setReverseSearchOptions] = React.useState([]);\n const [reverseSearchIndex, setReverseSearchIndex] = React.useState(-1);\n const mountedRef = React.useRef(true);\n const me = useReactiveVar(meState);\n\n useSubscription(subscriptionCallbackTokens, {\n variables: {callback_id: props.callback_id}, fetchPolicy: \"network-only\",\n shouldResubscribe: true,\n onSubscriptionData: ({subscriptionData}) => {\n if(!mountedRef.current || !props.parentMountedRef.current){\n return;\n }\n setTokenOptions(subscriptionData.data.callbacktoken);\n }\n });\n useSubscription(subscriptionTask, {\n variables: {callback_id: props.callback_id}, fetchPolicy: \"network-only\",\n shouldResubscribe: true,\n onSubscriptionData: ({subscriptionData}) => {\n if(!mountedRef.current || !props.parentMountedRef.current){\n return;\n }\n setTaskOptions(subscriptionData.data.task);\n const filteredOptions = subscriptionData.data.task.filter( c => applyFilteringToTasks(c));\n setFilteredTaskOptions(filteredOptions);\n }\n });\n useSubscription(GetLoadedCommandsSubscription, {\n variables: {callback_id: props.callback_id}, fetchPolicy: \"network-only\",\n shouldResubscribe: true,\n onSubscriptionData: ({subscriptionData}) => {\n if(!mountedRef.current || !props.parentMountedRef.current){\n return;\n }\n const cmds = subscriptionData.data.loadedcommands.map( c => {\n let cmdData = {...c.command};\n cmdData.attributes = JSON.parse(cmdData.attributes);\n return cmdData;\n })\n cmds.push({cmd: \"help\", description: \"Get help for a command or info about loaded commands\", commandparameters: [], attributes: {supported_os: []}});\n cmds.push({cmd: \"clear\", description: \"Clear 'submitted' jobs from being pulled down by an agent\", commandparameters: [], attributes: {supported_os: []}});\n cmds.sort((a,b) => a.cmd > b.cmd ? 1 : -1);\n setLoadedOptions(cmds);\n }\n });\n React.useEffect( () => {\n //console.log(\"filter updated\")\n const filteredOptions = taskOptions.filter( c => applyFilteringToTasks(c));\n setFilteredTaskOptions(filteredOptions);\n }, [props.filterOptions])\n React.useEffect( () => {\n return() => {\n mountedRef.current = false;\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [])\n const applyFilteringToTasks = (task) => {\n if(task.display_params.includes(\"help\") && task.operator.username !== me.user.username){\n return false;\n }\n if(props.filterOptions === undefined){\n return true;\n }\n if(props.filterOptions[\"operatorsList\"].length > 0){\n if(!props.filterOptions[\"operatorsList\"].includes(task.operator.username)){\n return false;\n }\n }\n if(props.filterOptions[\"commentsFlag\"]){\n if(task.comment === \"\"){\n return false;\n }\n }\n if(props.filterOptions[\"commandsList\"].length > 0){\n // only show these commands\n if(!props.filterOptions[\"commandsList\"].includes(task.command_name)){\n return false;\n }\n }\n if(props.filterOptions[\"everythingButList\"].length > 0){\n if(task.command !== null){\n if(props.filterOptions[\"everythingButList\"].includes(task.command_name)){\n return false;\n }\n }\n }\n if(props.filterOptions[\"parameterString\"] !== \"\"){\n let regex = new RegExp(props.filterOptions[\"parameterString\"]);\n if(!regex.test(task.display_params)){\n return false;\n }\n }\n return true;\n }\n const handleInputChange = (event) => {\n setTabOptions([]);\n setTabOptionsIndex(0);\n setMessage(event.target.value);\n if(event.target.value.length === 0){\n setUnmodifiedHistoryValue(\"parsed_cli\");\n }\n }\n const onKeyDown = (event) => {\n if(event.key === \"r\" && event.ctrlKey){\n //this means they typed ctrl+r, so they're wanting to do a reverse search for a command\n setReverseSearching(true);\n setMessage(\"\");\n setReverseSearchString(\"\");\n setUnmodifiedHistoryValue(\"parsed_cli\");\n }\n if(event.key === \"Tab\"){\n // if we're still typing the command, we want this to cycle through possible matching commands\n // if we have a command, this should cycle through parameter names that are required\n event.stopPropagation();\n event.preventDefault();\n setUnmodifiedHistoryValue(\"parsed_cli\");\n if(message.includes(\" \")){\n // this means we're not trying to help with the initial command since there's already a space in what the user typed\n // first find the command in question\n let cmd = loadedOptions.find( l => l.cmd === message.split(\" \")[0]);\n if(cmd.commandparameters.length > 0){\n if(message[message.length -1] === \" \"){\n // somebody hit tab after a parameter name or after a parameter value\n const parsed = parseCommandLine(message, cmd);\n const cmdGroupNames = determineCommandGroupName(cmd, parsed);\n if(cmdGroupNames === undefined){\n snackActions.warning(\"Two or more of the specified parameters can't be used together\", snackMessageStyles);\n return;\n }\n console.log(\"cmdGroupNames in tab\", cmdGroupNames);\n // look for required arguments that aren't present in our parsed dictionary\n for(const [key, value] of Object.entries(parsed)){\n if(key !== \"_\"){\n if(value !== value || value === undefined){\n snackActions.warning(key + \" needs a valid value\",snackMessageStyles);\n return;\n }\n if(value === undefined){\n // this means we parsed something and it's undefined, so we need a value\n if(message.endsWith(\" -\" + key)){\n //this value is undefined and it's the last one in the list, so we can potentially swap it out with another parameter\n for(let i = 0; i < cmd.commandparameters.length; i++){\n if(cmd.commandparameters[i][\"required\"] && \n !(cmd.commandparameters[i][\"cli_name\"] in parsed) && \n (cmdGroupNames.includes(cmd.commandparameters[i][\"parameter_group_name\"]) || cmdGroupNames.length === 0)){\n const newMsg = message.trim().slice(0, -1 * key.length) + cmd.commandparameters[i][\"cli_name\"];\n setMessage(newMsg);\n return;\n }\n }\n for(let i = 0; i < cmd.commandparameters.length; i++){\n if(!cmd.commandparameters[i][\"required\"] && \n !(cmd.commandparameters[i][\"cli_name\"] in parsed) &&\n (cmdGroupNames.includes(cmd.commandparameters[i][\"parameter_group_name\"]) || cmdGroupNames.length === 0)){\n const newMsg = message.trim().slice(0, -1 * key.length) + cmd.commandparameters[i][\"cli_name\"];\n setMessage(newMsg);\n return;\n }\n }\n }\n snackActions.warning(key + \" needs a value\", snackMessageStyles);\n return;\n }\n }\n }\n for(let i = 0; i < cmd.commandparameters.length; i++){\n if(cmd.commandparameters[i][\"required\"] && \n !(cmd.commandparameters[i][\"cli_name\"] in parsed) &&\n (cmdGroupNames.includes(cmd.commandparameters[i][\"parameter_group_name\"]) || cmdGroupNames.length === 0)){\n const newMsg = message.trim() + \" -\" + cmd.commandparameters[i][\"cli_name\"];\n setMessage(newMsg);\n return;\n }\n }\n for(let i = 0; i < cmd.commandparameters.length; i++){\n if(!cmd.commandparameters[i][\"required\"] && \n !(cmd.commandparameters[i][\"cli_name\"] in parsed) &&\n (cmdGroupNames.includes(cmd.commandparameters[i][\"parameter_group_name\"]) || cmdGroupNames.length === 0)){\n const newMsg = message.trim() + \" -\" + cmd.commandparameters[i][\"cli_name\"];\n setMessage(newMsg);\n return;\n }\n }\n }else{\n // somebody hit tab when looking at something like `shell dj` or `shell -command`\n // so, we should check if the last word is a -CommandParameterName and if so, determine other parameters to replace it\n // if we're looking at the first option, do nothing until they hit space\n if(tabOptions.length > 0){\n const newIndex = (tabOptionsIndex + 1) % tabOptions.length;\n setTabOptionsIndex(newIndex);\n let newMessage = message.split(\" \").slice(0, -1).join(\" \") + \" -\" + tabOptions[newIndex];\n setMessage(newMessage);\n return;\n }\n const pieces = message.split(\" \");\n const lastFlag = pieces.slice(-1)[0];\n // determine if this last thing we see is a flag or not\n if(lastFlag.startsWith(\"-\")){\n // the last thing we see starts with - and doesn't have a space at the end, so treat this like a tab-completable command parameter\n // so we need to remove it and see what group we're dealing with so far\n const parsed = parseCommandLine(pieces.slice(0, -1).join(\" \"), cmd);\n const cmdGroupNames = determineCommandGroupName(cmd, parsed);\n if(cmdGroupNames === undefined){\n snackActions.warning(\"Two or more of the specified parameters can't be used together\", snackMessageStyles);\n return;\n }\n // determine if we're looking at a valid flag name in lastFlag or if it's simply the start of a flag\n //console.log(\"swapping parameter name, group options: \", cmdGroupNames);\n let exactMatch = cmd.commandparameters.find(cur => \n cmdGroupNames.includes(cur.parameter_group_name) && \n cur.cli_name === lastFlag.slice(1) &&\n !(cur.cli_name in parsed)\n );\n let paramOptions = [];\n if(exactMatch){\n // what the user typed or what we filled out is an exact match to a parameter name\n // the options should be all parameters in that group except for the ones already supplied in parsed\n paramOptions = cmd.commandparameters.reduce( (prev, cur) => {\n if(cmdGroupNames.includes(cur.parameter_group_name) && \n cur.cli_name !== lastFlag.slice(1) &&\n !(cur.cli_name in parsed)){\n return [...prev, cur.cli_name];\n }else{\n return [...prev];\n }\n }, []);\n paramOptions.push(lastFlag.slice(1));\n }else{\n // what the user typed isn't an exact match, so find things that start with what they're trying to type\n paramOptions = cmd.commandparameters.reduce( (prev, cur) => {\n if(cmdGroupNames.includes(cur.parameter_group_name) && \n cur.cli_name.toLowerCase().startsWith(lastFlag.slice(1).toLocaleLowerCase()) &&\n !(cur.cli_name in parsed)){\n return [...prev, cur.cli_name];\n }else{\n return [...prev];\n }\n }, []);\n }\n if(paramOptions.length > 0){\n if(paramOptions.length === 1){\n setTabOptions([]);\n setTabOptionsIndex(0);\n let newMsg = pieces.slice(0,-1).join(\" \") + \" -\" + paramOptions[0];\n setMessage(newMsg);\n }else{\n setTabOptions(paramOptions);\n setTabOptionsIndex(0);\n let newMsg = pieces.slice(0,-1).join(\" \") + \" -\" + paramOptions[0];\n setMessage(newMsg);\n }\n return;\n }else{\n snackActions.warning(\"Unknown Parameter Name\", snackMessageStyles);\n return;\n }\n }else{\n // the last thing doesn't start with -, so we're just looking at text, do nothing for now\n return;\n }\n \n }\n \n snackActions.info(\"No more arguments for command\", snackMessageStyles);\n }else{\n snackActions.info(\"No arguments for command\", snackMessageStyles);\n }\n \n }else{\n // somebody hit tab with either a blank message or a partial word\n if(tabOptions.length === 0){\n let opts = loadedOptions.filter( l => l.cmd.toLowerCase().startsWith(message.toLocaleLowerCase()) && (l.attributes.supported_os.length === 0 || l.attributes.supported_os.includes(props.callback_os)));\n setTabOptions(opts);\n setTabOptionsIndex(0);\n if(opts.length > 0){\n setMessage(opts[0].cmd);\n }\n }else{\n setTabOptionsIndex( (tabOptionsIndex + 1) % tabOptions.length );\n setMessage(tabOptions[(tabOptionsIndex + 1) % tabOptions.length].cmd)\n }\n }\n }else if(event.key === \"Enter\"){\n if(event.shiftKey){\n onSubmitCommandLine(event, true);\n }else{\n onSubmitCommandLine(event, false);\n }\n \n }else if(event.key === \"ArrowUp\"){\n if(filteredTaskOptions.length === 0){\n snackActions.warning(\"No previous tasks\", snackMessageStyles);\n return;\n }else{\n \n let newIndex = (taskOptionsIndex + 1);\n if(newIndex > filteredTaskOptions.length -1){\n newIndex = filteredTaskOptions.length -1;\n }\n setTaskOptionsIndex(newIndex);\n setMessage(filteredTaskOptions[newIndex].command_name + \" \" + filteredTaskOptions[newIndex].original_params);\n setUnmodifiedHistoryValue(filteredTaskOptions[newIndex].tasking_location);\n //setMessage(taskOptions[newIndex].command_name + \" \" + taskOptions[newIndex].display_params);\n }\n }else if(event.key === \"ArrowDown\"){\n if(filteredTaskOptions.length === 0){\n snackActions.warning(\"No previous tasks\", snackMessageStyles);\n return;\n }else{\n let newIndex = (taskOptionsIndex - 1);\n if(newIndex < 0){\n newIndex = 0;\n }\n setTaskOptionsIndex(newIndex);\n setMessage(filteredTaskOptions[newIndex].command_name + \" \" + filteredTaskOptions[newIndex].original_params);\n setUnmodifiedHistoryValue(filteredTaskOptions[newIndex].tasking_location);\n //setMessage(taskOptions[newIndex].command_name + \" \" + taskOptions[newIndex].display_params);\n }\n }else{\n setTabOptions([]);\n setTabOptionsIndex(0);\n if(taskOptionsIndex !== -1){\n setTaskOptionsIndex(-1);\n }\n }\n }\n const parseToArgv = (str) => {\n const res = [];\n\n if(!str || typeof str !== 'string') return res;\n\n let sQuoted = false;\n let dQuoted = false;\n let backSlash = false;\n let notEmpty = false;\n let buffer = '';\n\n str.split('').forEach((v, i, s) => {\n if(sQuoted && v === `'`){\n sQuoted = false;\n if(buffer.length > 0 ){\n buffer += v;\n }else{\n buffer += v + v;\n }\n return;\n }\n if(dQuoted && v === `\"`){\n dQuoted = false;\n if(buffer.length > 0){\n buffer += v;\n }else{\n buffer += v + v;\n }\n return;\n }\n if(!sQuoted && !dQuoted){\n //console.log(\"not sQuoted and not dQuoted and not backslash\");\n if(v === `'`){\n sQuoted = true;\n if(buffer.length > 0 ){\n buffer += v;\n return;\n }\n \n return;\n }\n if(v === '\"'){\n dQuoted = true;\n //console.log(\"double quoted now, skipping char: \", v);\n if(buffer.length > 0 ){\n buffer += v;\n return;\n }\n \n return;\n }\n if(['\\t', ' '].includes(v)){\n if(buffer.length > 0){\n if([`'`, `\"`].includes(buffer[buffer.length-1])){\n res.push(buffer.slice(0, -1))\n }else{\n res.push(buffer);\n }\n \n //console.log(\"pushed buffer:\", buffer);\n notEmpty = false;\n }\n buffer = '';\n return;\n }\n }\n if(!sQuoted && dQuoted && v === '\"'){\n //console.log(\"not sQuoted, yes dQuoted, not backSlash, found matching \\\", skipping: \", v);\n dQuoted = false;\n if(buffer.length > 0 ){\n buffer += v;\n }\n return;\n }\n\n //console.log(\"adding to buffer: \", v);\n buffer += v;\n });\n\n if(buffer.length > 0 || notEmpty){\n //console.log(\"pushed end buffer: \", buffer);\n if([`'`, `\"`].includes(buffer[buffer.length-1])){\n res.push(buffer.slice(0, -1))\n }else{\n res.push(buffer);\n }\n notEmpty = false;\n }\n if(dQuoted) throw new SyntaxError('unexpected end of string while looking for matching double quote');\n if(sQuoted) throw new SyntaxError('unexpected end of string while looking for matching single quote');\n\n return res;\n }\n const parseCommandLine = (command_line, cmd) => {\n // given a command line and the associated command\n let stringArgs = [];\n let booleanArgs = [];\n let arrayArgs = [];\n let numberArgs = [];\n for(let i = 0; i < cmd.commandparameters.length; i++){\n switch(cmd.commandparameters[i].parameter_type){\n case \"Choice\":\n case \"String\":\n stringArgs.push(cmd.commandparameters[i].cli_name);\n case \"Number\":\n numberArgs.push(cmd.commandparameters[i].cli_name);\n break;\n case \"Boolean\":\n booleanArgs.push(cmd.commandparameters[i].cli_name);\n break;\n case \"Array\":\n case \"ChoiceMultiple\":\n arrayArgs.push(cmd.commandparameters[i].cli_name);\n break;\n default:\n stringArgs.push(cmd.commandparameters[i].cli_name);\n }\n }\n try{\n let new_command_line = command_line;//.replaceAll(\"\\\\\", \"\\\\\\\\\");\n //console.log(\"new_command_line\", new_command_line);\n const argv = parseToArgv(new_command_line);\n //console.log(\"argv\", argv);\n //console.log(\"arrayArgs\", arrayArgs);\n const yargs_parsed = parser(argv, {\n string: stringArgs,\n boolean: booleanArgs,\n number: numberArgs,\n array: arrayArgs,\n configuration: {\n \"short-option-groups\": false,\n \"camel-case-expansion\": false,\n \"dot-notation\": false,\n \"unknown-options-as-args\": false,\n \"greedy-arrays\": true\n }\n });\n //console.log(yargs_parsed, cmd.commandparameters);\n return yargs_parsed;\n }catch(error){\n snackActions.warning(\"Failed to parse command line: \" + error, snackMessageStyles);\n return undefined;\n }\n }\n const determineCommandGroupName = (cmd, parsed) => {\n if(cmd.commandparameters.length === 0){\n return [];\n }\n let cmdGroupOptions = cmd.commandparameters.reduce( (prev, cur) => {\n if(prev.includes(cur.parameter_group_name)){\n return [...prev];\n }\n return [...prev, cur.parameter_group_name];\n }, []);\n for(const key of Object.keys(parsed)){\n // for all of the things we've parsed out so far, determin their parameter groups\n if( key !== \"_\"){\n // we don't care about positional arguments at the moment\n let paramGroups = [];\n for(let i = 0; i < cmd.commandparameters.length; i++){\n if(cmd.commandparameters[i][\"cli_name\"] === key){\n paramGroups.push(cmd.commandparameters[i][\"parameter_group_name\"])\n }\n }\n // now paramGroups has all of the group names associated with `key`\n // we have some set of possible options, so we need to find the intersection with paramGroups and cmdGroupOptions\n let intersection = cmdGroupOptions.reduce( (prev, cur) => {\n if(paramGroups.includes(cur)){\n return [...prev, cur];\n }\n return [...prev];\n }, [])\n if(intersection.length === 0){\n // this is a bad thing, we did an intersection and there's no similar paramter groups, but parameters have been supplied\n return [];\n }\n cmdGroupOptions = [...intersection];\n }\n }\n // now cmdGroupOptions is a list of all the matching parameter_group_names for the commandline arguments we've specified\n return cmdGroupOptions;\n }\n const fillOutPositionalArguments = (cmd, parsed, groupNames) => {\n let parsedCopy = {...parsed};\n parsedCopy[\"_\"].shift(); // get rid of the command name from this list of arguments.\n if(cmd.commandparameters.length === 0){\n return parsedCopy;\n }\n if(groupNames.length === 0){\n return parsedCopy;\n }\n let usedGroupName = groupNames[0];\n if(groupNames.includes(\"Default\")){\n usedGroupName = \"Default\";\n }\n // figure out how to deal with positional parameters\n const groupParameters = cmd.commandparameters.filter(c => c.parameter_group_name === usedGroupName);\n groupParameters.sort((a,b) => a.ui_position < b.ui_position ? -1 : 1);\n // now we have all of the parameters and they're sorted by `ui_position`\n \n let unSatisfiedArguments = [];\n for(let i = 0; i < groupParameters.length; i++){\n if( !(groupParameters[i][\"cli_name\"] in parsedCopy)){\n // this parameter hasn't been supplied yet, track it\n unSatisfiedArguments.push(groupParameters[i]); \n }\n }\n // now iterate over the unsatisfied arguments and add in the positional paramters\n for(let i = 0; i < unSatisfiedArguments.length -1; i++){\n // we cut this short by one so that the last unSatisifedArgument can do a greedy matching for the rest of what was supplied\n // this parameter hasn't been supplied yet, check if we have any positional parameters in parsedCopy[\"_\"]\n if(parsedCopy[\"_\"].length > 0){\n parsedCopy[groupParameters[i][\"cli_name\"]] = parsedCopy[\"_\"].shift();\n }\n }\n \n if(unSatisfiedArguments.length > 0 && parsedCopy[\"_\"].length > 0){\n parsedCopy[\"_\"] = parsedCopy[\"_\"].map( c => c.includes(\" \") ? \"\\\"\" + c + \"\\\"\" : c);\n parsedCopy[unSatisfiedArguments[unSatisfiedArguments.length -1][\"cli_name\"]] = parsedCopy[\"_\"].join(\" \");\n parsedCopy[\"_\"] = [];\n }\n \n return parsedCopy;\n\n }\n const onSubmitCommandLine = (evt, force_parsed_popup) => {\n evt.preventDefault();\n evt.stopPropagation();\n //console.log(\"onSubmitCommandLine\", evt, message);\n let splitMessage = message.split(\" \");\n let cmd = loadedOptions.find( l => l.cmd === splitMessage[0]);\n if(cmd === undefined){\n snackActions.warning(\"Unknown command\", snackMessageStyles);\n return;\n }\n let cmdGroupName = [\"Default\"];\n let parsedWithPositionalParameters = {};\n if(unmodifiedHistoryValue.includes(\"modal\") || unmodifiedHistoryValue.includes(\"browserscript\")){\n // these are the two kinds that'll introduce dictionary values as original_params\n try{\n let params = splitMessage.slice(1).join(\" \");\n parsedWithPositionalParameters = JSON.parse(params);\n cmdGroupName = determineCommandGroupName(cmd, parsedWithPositionalParameters);\n cmdGroupName.sort()\n }catch(error){\n snackActions.warning(\"Failed to parse modified JSON value\", snackMessageStyles);\n return;\n } \n }else{\n let parsed = parseCommandLine(message, cmd);\n if(!parsed){\n return;\n }\n //console.log(message, parsed);\n cmdGroupName = determineCommandGroupName(cmd, parsed);\n cmdGroupName.sort();\n if(cmd.commandparameters.length > 0){\n parsedWithPositionalParameters = fillOutPositionalArguments(cmd, parsed, cmdGroupName);\n console.log(parsedWithPositionalParameters);\n if(parsedWithPositionalParameters[\"_\"].length > 0){\n snackActions.warning(\"Too many positional arguments given. Did you mean to quote some of them?\", snackMessageStyles);\n return;\n }\n }else{\n parsedWithPositionalParameters = parsed;\n }\n }\n if(cmdGroupName === undefined){\n snackActions.warning(\"Two or more of the specified parameters can't be used together\", snackMessageStyles);\n return;\n }else if(cmdGroupName.length > 1){\n if(Boolean(force_parsed_popup)){\n props.onSubmitCommandLine(message, cmd, parsedWithPositionalParameters, Boolean(force_parsed_popup), cmdGroupName, unmodifiedHistoryValue);\n }else{\n if(cmdGroupName.includes(\"Default\")){\n props.onSubmitCommandLine(message, cmd, parsedWithPositionalParameters, Boolean(force_parsed_popup), [\"Default\"], unmodifiedHistoryValue);\n }else{\n snackActions.warning(\"Passed arguments are ambiguous, use shift+enter for modal or provide more parameters\", snackMessageStyles);\n return;\n }\n }\n setMessage(\"\");\n setTaskOptionsIndex(-1);\n setReverseSearchIndex(-1);\n setReverseSearching(false);\n setUnmodifiedHistoryValue(\"parsed_cli\");\n return;\n }\n //console.log(\"positional args added in:\", parsedWithPositionalParameters);\n props.onSubmitCommandLine(message, cmd, parsedWithPositionalParameters, Boolean(force_parsed_popup), cmdGroupName, unmodifiedHistoryValue);\n setMessage(\"\");\n setTaskOptionsIndex(-1);\n setReverseSearchIndex(-1);\n setReverseSearching(false);\n setUnmodifiedHistoryValue(\"parsed_cli\");\n }\n const onClickFilter = () => {\n setOpenFilterOptionsDialog(true);\n }\n const handleReverseSearchInputChange = (event) => {\n setReverseSearchString(event.target.value);\n if(event.target.value.length === 0){\n setMessage(\"\");\n setReverseSearchOptions([]);\n setReverseSearchIndex(0);\n return;\n }\n // need to do a reverse i search through taskOptions\n const lowerCaseTextSearch = event.target.value.toLowerCase();\n const matchingOptions = taskOptions.filter( x => (x.command_name + \" \" + x.original_params).toLowerCase().includes(lowerCaseTextSearch));\n const filteredMatches = matchingOptions.filter( x => applyFilteringToTasks(x))\n setReverseSearchOptions(filteredMatches);\n if(filteredMatches.length > 0){\n setMessage(filteredMatches[0].command_name + \" \" + filteredMatches[0].original_params);\n }\n }\n const onReverseSearchKeyDown = (event) => {\n if(event.key === \"Escape\"){\n setReverseSearching(false);\n setReverseSearchIndex(0);\n setReverseSearchOptions([]);\n }else if(event.key === \"Tab\"){\n setReverseSearching(false);\n setReverseSearchIndex(0);\n setReverseSearchOptions([]);\n }else if(event.key === \"Enter\"){\n setReverseSearching(false);\n setReverseSearchIndex(0);\n setReverseSearchOptions([]);\n onSubmitCommandLine(event);\n }else if(event.key === \"ArrowUp\"){\n // go up through the reverseSearchOptions by incrementing reverseSearchIndex\n // setMessage to teh value\n if(reverseSearchOptions.length === 0){\n snackActions.warning(\"No matching options\", snackReverseSearchMessageStyles);\n return;\n }else{\n const newIndex = (reverseSearchIndex + 1) % reverseSearchOptions.length;\n setReverseSearchIndex(newIndex);\n setMessage(reverseSearchOptions[newIndex].command_name + \" \" + reverseSearchOptions[newIndex].original_params);\n }\n }else if(event.key === \"ArrowDown\"){\n // go down through the reverseSearchOptions by decrementing reverseSearchIndex\n // setMessage to the value\n if(reverseSearchOptions.length === 0){\n snackActions.warning(\"No matching options\", snackReverseSearchMessageStyles);\n return;\n }else{\n let newIndex = (reverseSearchIndex - 1) % reverseSearchOptions.length;\n if(newIndex < 0){\n newIndex = reverseSearchOptions.length - 1;\n }\n setReverseSearchIndex(newIndex);\n setMessage(reverseSearchOptions[newIndex].command_name + \" \" + reverseSearchOptions[newIndex].original_params);\n }\n }\n }\n return (\n \n {reverseSearching &&\n reverse-i-search:\n \n }}\n />\n }\n \n \n \n ,\n startAdornment: \n {tokenOptions.length > 0 ? (\n \n ) : (null)}\n \n \n \n }}\n />\n {openFilterOptionsDialog &&\n {setOpenFilterOptionsDialog(false);}} \n innerDialog={{setOpenFilterOptionsDialog(false);}} />}\n />\n }\n \n )\n}\nexport const CallbacksTabsTaskingInput = React.memo(CallbacksTabsTaskingInputPreMemo);\n","import {MythicTabPanel, MythicTabLabel} from '../../../components/MythicComponents/MythicTabPanel';\nimport React, {useEffect, useRef, useCallback, useLayoutEffect} from 'react';\nimport { gql, useMutation, useLazyQuery, useSubscription } from '@apollo/client';\nimport { TaskDisplay } from './TaskDisplay';\nimport {snackActions} from '../../utilities/Snackbar';\nimport { MythicDialog } from '../../MythicComponents/MythicDialog';\nimport {TaskParametersDialog} from './TaskParametersDialog';\nimport {CallbacksTabsTaskingInput} from './CallbacksTabsTaskingInput';\nimport LinearProgress from '@material-ui/core/LinearProgress';\nimport { IconButton} from '@material-ui/core';\nimport AutorenewIcon from '@material-ui/icons/Autorenew';\nimport {MythicModifyStringDialog} from '../../MythicComponents/MythicDialog';\nimport { MythicStyledTooltip } from '../../MythicComponents/MythicStyledTooltip';\n\n\nexport function CallbacksTabsTaskingLabel(props){\n const [description, setDescription] = React.useState(props.tabInfo.payloadDescription !== props.tabInfo.callbackDescription ? props.tabInfo.callbackDescription : \"Callback: \" + props.tabInfo.callbackID)\n const [openEditDescriptionDialog, setOpenEditDescriptionDialog] = React.useState(false);\n const onContextMenu = (event) => {\n event.stopPropagation();\n event.preventDefault();\n setOpenEditDescriptionDialog(true);\n }\n useEffect( () => {\n if(props.tabInfo.customDescription !== \"\" && props.tabInfo.customDescription !== undefined){\n setDescription(props.tabInfo.customDescription);\n }else if(props.tabInfo.payloadDescription !== props.tabInfo.callbackDescription){\n setDescription(props.tabInfo.callbackDescription);\n }else{\n setDescription(\"Callback: \" + props.tabInfo.callbackID);\n }\n }, [props.tabInfo.payloadDescription, props.tabInfo.customDescription])\n const editDescriptionSubmit = (description) => {\n props.onEditTabDescription(props.tabInfo, description);\n }\n return (\n \n \n {openEditDescriptionDialog &&\n {setOpenEditDescriptionDialog(false);}}\n innerDialog={\n {setOpenEditDescriptionDialog(false);}} value={description} onSubmit={editDescriptionSubmit} />\n }\n />\n }\n \n )\n}\nexport const taskingDataFragment = gql`\n fragment taskData on task {\n comment\n callback_id\n commentOperator{\n username\n }\n completed\n id\n operator{\n username\n }\n original_params\n display_params\n status\n timestamp\n command {\n cmd\n id\n }\n command_name\n responses(limit: 1, order_by: {id: desc}){\n id\n timestamp\n }\n opsec_pre_blocked\n opsec_pre_bypassed\n opsec_post_blocked\n opsec_post_bypassed\n tasks {\n id\n }\n token {\n id\n }\n }\n`;\nexport const createTaskingMutation = gql`\nmutation createTasking($callback_id: Int!, $command: String!, $params: String!, $files: [String], $token_id: Int, $tasking_location: String, $original_params: String, $parameter_group_name: String) {\n createTask(callback_id: $callback_id, command: $command, params: $params, files: $files, token: $token_id, tasking_location: $tasking_location, original_params: $original_params, parameter_group_name: $parameter_group_name) {\n status\n id\n error\n }\n}\n`;\n// this is to listen for the latest taskings\nconst fetchLimit = 10;\nconst getTaskingQuery = gql`\n${taskingDataFragment}\nsubscription getTasking($callback_id: Int!, $fromNow: timestamp!, $limit: Int){\n task(where: {callback_id: {_eq: $callback_id}, parent_task_id: {_is_null: true}, timestamp: {_gt: $fromNow}}, order_by: {id: desc}, limit: $limit) {\n ...taskData\n }\n}\n `;\nconst getNextBatchTaskingQuery = gql`\n${taskingDataFragment}\nquery getBatchTasking($callback_id: Int!, $offset: Int!, $fetchLimit: Int!){\n task(where: {callback_id: {_eq: $callback_id}, parent_task_id: {_is_null: true}}, order_by: {id: desc}, limit: $fetchLimit, offset: $offset) {\n ...taskData\n }\n callback(where: {id: {_eq: $callback_id}}){\n id\n }\n}\n`;\nexport const CallbacksTabsTaskingPanel = ({tabInfo, index, value, onCloseTab, parentMountedRef}) =>{\n const [taskLimit, setTaskLimit] = React.useState(10);\n const [openParametersDialog, setOpenParametersDialog] = React.useState(false);\n const [commandInfo, setCommandInfo] = React.useState({});\n const [taskingData, setTaskingData] = React.useState({task: []});\n const taskingDataRef = React.useRef({task: []});\n const [fromNow, setFromNow] = React.useState((new Date()).toISOString());\n const [selectedToken, setSelectedToken] = React.useState({});\n const [filterOptions, setFilterOptions] = React.useState({\n \"operatorsList\": [],\n \"commentsFlag\": false,\n \"commandsList\": [],\n \"parameterString\": \"\",\n \"everythingButList\": []\n });\n const [canScroll, setCanScroll] = React.useState(true);\n const mountedRef = React.useRef(true);\n useEffect( () => {\n taskingDataRef.current = taskingData;\n }, [taskingData]);\n const [fetched, setFetched] = React.useState(false);\n const [fetchedAllTasks, setFetchedAllTasks] = React.useState(false);\n const messagesEndRef = useRef(null);\n const [createTask] = useMutation(createTaskingMutation, {\n update: (cache, {data}) => {\n if(data.createTask.status === \"error\"){\n snackActions.error(data.createTask.error);\n }else{\n snackActions.success(\"Task created\", {autoHideDuration: 1000});\n }\n },\n onError: data => {\n console.error(data);\n }\n });\n const equalTaskTrees = (oldArray, newArray) => {\n if(oldArray.length !== newArray.length){\n return false;\n }\n for(let i = 0; i < oldArray.length; i++){\n if(oldArray[i].comment !== newArray[i].comment){\n return false;\n }\n if(oldArray[i].commentOperator !== newArray[i].commentOperator){\n return false;\n }\n if(oldArray[i].completed !== newArray[i].completed){\n return false;\n }\n if(oldArray[i].display_params !== newArray[i].display_params){\n return false;\n }\n if(oldArray[i].original_params !== newArray[i].original_params){\n return false;\n }\n if(oldArray[i].status !== newArray[i].status){\n return false;\n }\n if(oldArray[i].timestamp !== newArray[i].timestamp){\n return false;\n }\n if(oldArray[i].opsec_pre_blocked !== newArray[i].opsec_pre_blocked){\n return false;\n }\n if(oldArray[i].opsec_pre_bypassed !== newArray[i].opsec_pre_bypassed){\n return false;\n }\n if(oldArray[i].opsec_post_blocked !== newArray[i].opsec_post_blocked){\n return false;\n }\n if(oldArray[i].opsec_post_bypassed !== newArray[i].opsec_post_bypassed){\n return false;\n }\n if(oldArray[i].tasks.length !== newArray[i].tasks.length){\n return false;\n }\n }\n return true;\n }\n const subscriptionDataCallback = useCallback( ({subscriptionData}) => {\n if(!mountedRef.current || !parentMountedRef.current){\n return null;\n }\n if(!fetched){\n setFetched(true);\n }\n //console.log(subscriptionData);\n const oldLength = taskingDataRef.current.task.length;\n const mergedData = subscriptionData.data.task.reduce( (prev, cur) => {\n const index = prev.findIndex(element => element.id === cur.id);\n if(index > -1){\n // need to update an element\n const updated = prev.map( (element) => {\n if(element.id === cur.id){\n return cur;\n }else{\n return element;\n }\n });\n return updated;\n }else{\n return [...prev, cur];\n }\n }, [...taskingDataRef.current.task]);\n mergedData.sort( (a,b) => a.id < b.id ? -1 : 1);\n if(!equalTaskTrees(taskingDataRef.current.task, mergedData)){\n setTaskingData({task: mergedData});\n }\n if(mergedData.length > oldLength){\n setCanScroll(true);\n } \n if(mergedData.length > taskLimit){\n setTaskLimit(mergedData.length);\n }\n }, [fetched, setFetched, setCanScroll, taskLimit])\n useSubscription(getTaskingQuery, {\n variables: {callback_id: tabInfo.callbackID, fromNow:fromNow, limit: taskLimit},\n onError: data => {\n console.error(data)\n },\n fetchPolicy: \"no-cache\",\n onSubscriptionData: subscriptionDataCallback});\n const scrollToBottom = useCallback( () => {\n if(taskingData && messagesEndRef.current){\n messagesEndRef.current.scrollIntoView({ behavior: \"smooth\" });\n }\n }, [taskingData, messagesEndRef]);\n useLayoutEffect( () => {\n if(canScroll){\n scrollToBottom();\n setCanScroll(false);\n }\n }, [canScroll, scrollToBottom]);\n const [getInfiniteScrollTasking, {loading: loadingMore}] = useLazyQuery(getNextBatchTaskingQuery, {\n onError: data => {\n console.error(data);\n },\n onCompleted: (data) => {\n let foundNew = false;\n if(data.callback.length === 0){\n onCloseTab(tabInfo);\n return;\n }\n const mergedData = data.task.reduce( (prev, cur) => {\n const index = prev.findIndex(element => element.id === cur.id);\n if(index > -1){\n // need to update an element\n const updated = prev.map( (element) => {\n if(element.id === cur.id){\n return cur;\n }else{\n return element;\n }\n });\n return updated;\n }else{\n foundNew = true;\n return [...prev, cur];\n }\n }, [...taskingData.task]);\n mergedData.sort( (a,b) => a.id < b.id ? -1 : 1);\n setTaskingData({task: mergedData}); \n if(!foundNew){\n setFetchedAllTasks(true);\n }else{\n if(data.task.length < fetchLimit){\n setFetchedAllTasks(true);\n }else{\n setFetchedAllTasks(false);\n }\n }\n },\n fetchPolicy: \"no-cache\"\n });\n useEffect( () => {\n getInfiniteScrollTasking({variables: {callback_id: tabInfo.callbackID, offset: taskingData.task.length, fetchLimit}});\n setCanScroll(true);\n return() => {\n mountedRef.current = false;\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [])\n const loadMoreTasks = () => {\n getInfiniteScrollTasking({variables: {callback_id: tabInfo.callbackID, offset: taskingData.task.length, fetchLimit}});\n }\n const onSubmitCommandLine = (message, cmd, parsed, force_parsed_popup, cmdGroupNames, previousTaskingLocation) => {\n //console.log(message, cmd, parsed);\n let params = message.split(\" \");\n delete params[0];\n params = params.join(\" \").trim();\n let newTaskingLocation = \"parsed_cli\";\n if(previousTaskingLocation.includes(\"modal\")){\n newTaskingLocation = \"modal_modified\"\n }else if(previousTaskingLocation.includes(\"browserscript\")){\n newTaskingLocation = \"browserscript_modified\";\n }\n if(cmd.commandparameters.length === 0){\n // if there are no parameters, just send whatever the user types along\n onCreateTask({callback_id: tabInfo.callbackID, command: cmd.cmd, params: params, parameter_group_name: \"Default\"});\n }else{\n // check if there's a \"file\" component that needs to be displayed\n const fileParamExists = cmd.commandparameters.find(param => param.parameter_type === \"File\" && cmdGroupNames.includes(param.parameter_group_name));\n //console.log(\"missing File for group? \", fileParamExists, cmdGroupNames);\n let missingRequiredPrams = false;\n if(cmdGroupNames.length === 1){\n const missingParams = cmd.commandparameters.filter(param => param.required && param.parameter_group_name === cmdGroupNames[0] && !(param.cli_name in parsed));\n if(missingParams.length > 0){\n missingRequiredPrams = true;\n console.log(\"missing required params\", missingParams,parsed);\n }\n }else if(cmdGroupNames > 1 && !force_parsed_popup){\n // need to force a popup because the tasking is ambiguous\n console.log(\"command is ambiguous\");\n force_parsed_popup = true;\n }\n if(fileParamExists || force_parsed_popup || missingRequiredPrams){\n //need to do a popup\n if(cmdGroupNames.length > 0){\n setCommandInfo({...cmd, \"parsedParameters\": parsed, groupName: cmdGroupNames[0]});\n }else{\n setCommandInfo({...cmd, \"parsedParameters\": parsed});\n }\n setOpenParametersDialog(true);\n return;\n }else{\n delete parsed[\"_\"];\n onCreateTask({callback_id: tabInfo.callbackID, \n command: cmd.cmd, \n params: JSON.stringify(parsed), \n tasking_location: newTaskingLocation, \n original_params: params, \n parameter_group_name: cmdGroupNames[0]});\n } \n }\n }\n const submitParametersDialog = (cmd, parameters, files, selectedParameterGroup) => {\n setOpenParametersDialog(false);\n onCreateTask({callback_id: tabInfo.callbackID, command: cmd, params: parameters, files: files, tasking_location: \"modal\", parameter_group_name: selectedParameterGroup});\n }\n const onCreateTask = ({callback_id, command, params, files, tasking_location, original_params, parameter_group_name}) => {\n if(selectedToken.id !== undefined){\n createTask({variables: {callback_id, command, params, files, token_id: selectedToken.TokenId, tasking_location, original_params, parameter_group_name}});\n }else{\n createTask({variables: {callback_id, command, params, files, tasking_location, original_params, parameter_group_name}});\n }\n }\n const onSubmitFilter = (newFilter) => {\n setFilterOptions(newFilter);\n }\n const changeSelectedToken = (token) => {\n if(token === \"Default Token\"){\n setSelectedToken(\"Default Token\");\n return;\n }\n if(token.TokenId !== selectedToken.TokenId){\n setSelectedToken(token);\n }\n }\n return (\n \n {!fetchedAllTasks && \n \n \n }\n {!fetched && }\n {loadingMore && }\n
\n {\n taskingData.task.map( (task) => (\n \n ))\n }\n
\n
\n \n {openParametersDialog && \n {setOpenParametersDialog(false);}} \n innerDialog={{setOpenParametersDialog(false);}} \n />}\n />\n }\n \n \n )\n}","import React, {useEffect} from 'react';\nimport Dialog from '@material-ui/core/Dialog';\nimport Button from '@material-ui/core/Button';\nimport DialogActions from '@material-ui/core/DialogActions';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport MythicTextField from './MythicTextField';\nimport Table from '@material-ui/core/Table';\nimport TableBody from '@material-ui/core/TableBody';\nimport TableCell from '@material-ui/core/TableCell';\nimport TableContainer from '@material-ui/core/TableContainer';\nimport TableHead from '@material-ui/core/TableHead';\nimport TableRow from '@material-ui/core/TableRow';\nimport Paper from '@material-ui/core/Paper';\n\n\nexport function MythicDialog(props) {\n const descriptionElementRef = React.useRef(null);\n React.useEffect(() => {\n if (props.open) {\n const { current: descriptionElement } = descriptionElementRef;\n if (descriptionElement !== null) {\n descriptionElement.focus();\n }\n }\n }, [props.open]);\n\n return (\n \n {props.innerDialog}\n \n );\n}\n\nexport function MythicModifyStringDialog(props) {\n const [comment, setComment] = React.useState(\"\");\n const onCommitSubmit = () => {\n props.onSubmit(comment);\n props.onClose();\n }\n const onChange = (name, value, error) => {\n setComment(value);\n }\n useEffect( () => {\n setComment(props.value);\n }, [props.value]);\n return (\n \n {props.title}\n \n \n \n \n \n \n \n \n );\n}\n\nexport function MythicViewJSONAsTableDialog(props) {\n const [comment, setComment] = React.useState([]);\n const [tableType, setTableType] = React.useState(\"dictionary\");\n const [headers, setHeaders] = React.useState([]);\n useEffect( () => {\n let permissions = [];\n try{\n let permissionDict;\n if(props.value.constructor === Object){\n permissionDict = props.value;\n }else{\n permissionDict = JSON.parse(props.value);\n } \n \n if(permissionDict.constructor === Object){\n for(let key in permissionDict){\n if(permissionDict[key].constructor === Object || Array.isArray(permissionDict[key])){\n permissions.push({\"name\": key, \"value\": JSON.stringify(permissionDict[key], null, 2)});\n }else{\n permissions.push({\"name\": key, \"value\": permissionDict[key]});\n }\n \n setHeaders([props.leftColumn, props.rightColumn]);\n }\n }else{\n setTableType(\"array\");\n if(permissionDict.length > 0){\n setHeaders(Object.keys(permissionDict[0]));\n permissions = permissionDict;\n }else{\n setHeaders([]);\n }\n }\n }catch(error){\n console.log(error);\n }\n setComment(permissions);\n }, [props.value, props.leftColumn, props.rightColumn]);\n return (\n \n {props.title}\n \n \n \n \n \n \n {headers.map( (header, index) => (\n {header}\n ))}\n \n \n \n {tableType === \"dictionary\" ? (\n comment.map( (element, index) => (\n \n {element.name}\n {element.value === true ? (\"True\") : (element.value === false ? (\"False\") : (element.value) ) }\n \n ))\n ) : (\n comment.map( (row, index) => (\n \n {Object.keys(row).map( (key) => (\n {row[key]}\n ))}\n \n ))\n ) }\n \n \n
\n
\n
\n
\n \n \n \n
\n );\n}\n\nexport function MythicViewObjectPropertiesAsTableDialog(props) {\n const [comment, setComment] = React.useState([]);\n useEffect( () => {\n const permissions = props.keys.reduce( (prev, key) => {\n if(props.value[key] !== undefined && props.value[key] !== null && props.value[key] !== \"\"){\n return [...prev, {\"name\": key, \"value\": props.value[key]}]\n }\n else{\n return [...prev];\n }\n }, []);\n\n setComment(permissions);\n }, [props.value, props.keys]);\n return (\n \n {props.title}\n \n \n \n \n \n \n {props.leftColumn}\n {props.rightColumn}\n \n \n \n {comment.map( (element, index) => (\n \n {element.name}\n {element.value === true ? (\"True\") : (element.value === false ? (\"False\") : (element.value) ) }\n \n ))}\n \n
\n
\n
\n
\n \n \n \n
\n );\n}","import React, { useEffect } from 'react';\nimport {gql, useMutation, useQuery } from '@apollo/client';\nimport {snackActions} from '../../utilities/Snackbar';\nimport { MythicDialog } from '../../MythicComponents/MythicDialog';\nimport {MythicSelectFromListDialog} from '../../MythicComponents/MythicSelectFromListDialog';\nimport {createTaskingMutation} from './CallbacksTabsTasking';\nimport {TaskParametersDialog} from './TaskParametersDialog';\nimport { MythicConfirmDialog } from '../../MythicComponents/MythicConfirmDialog';\n\nconst getLoadedCommandsQuery = gql`\nquery GetLoadedCommandsQuery($callback_id: Int!, $ui_feature: String!) {\n callback_by_pk(id: $callback_id){\n operation_id\n active\n payload {\n payloadtype {\n id\n }\n }\n loadedcommands(where: {command: {supported_ui_features: {_ilike: $ui_feature}}}) {\n id\n command {\n cmd\n help_cmd\n description\n id\n needs_admin\n payload_type_id\n attributes\n commandparameters {\n id\n type \n }\n supported_ui_features\n }\n }\n callbacktokens(where: {deleted: {_eq: false}}) {\n token {\n TokenId\n id\n User\n description\n }\n id\n }\n }\n}\n`;\n\nexport const TaskFromUIButton = ({callback_id, ui_feature, parameters, onTasked, tasking_location, getConfirmation, openDialog}) =>{\n const [fileBrowserCommands, setFileBrowserCommands] = React.useState([]);\n const [openSelectCommandDialog, setOpenSelectCommandDialog] = React.useState(false);\n const [openParametersDialog, setOpenParametersDialog] = React.useState(false);\n const [selectedCommand, setSelectedCommand] = React.useState({});\n const [callbackTokenOptions, setCallbackTokenOptions] = React.useState([]);\n const [selectedCallbackToken, setSelectedCallbackToken] = React.useState({});\n const [openCallbackTokenSelectDialog, setOpenCallbackTokenSelectDialog] = React.useState(false);\n const [taskingVariables, setTaskingVariables] = React.useState({});\n const [openConfirmDialog, setOpenConfirmDialog] = React.useState(false);\n const savedFinalVariables = React.useRef({});\n const [createTask] = useMutation(createTaskingMutation, {\n update: (cache, {data}) => {\n if(data.createTask.status === \"error\"){\n snackActions.error(data.createTask.error);\n onTasked({tasked: false});\n }else{\n snackActions.success(\"Issued \\\"\" + selectedCommand[\"cmd\"] + \"\\\" to Callback \" + callback_id);\n onTasked({tasked: true, variables: savedFinalVariables.current});\n }\n },\n onError: data => {\n console.error(data);\n onTasked({tasked: false});\n }\n });\n const {data: callbackData} = useQuery(getLoadedCommandsQuery, {\n variables: {callback_id: callback_id, ui_feature: \"%\" + ui_feature + \"%\"},\n onCompleted: (data) => {\n if(data.callback_by_pk === null){\n snackActions.warning(\"Unknown callback\");\n onTasked({tasked: false});\n return;\n }else if(!data.callback_by_pk.active){\n snackActions.warning(\"Callback isn't active\");\n onTasked({tasked: false});\n return;\n }\n const availableCommands = data.callback_by_pk.loadedcommands.reduce( (prev, cur) => {\n if(typeof(parameters) === \"string\"){\n return [...prev, {...cur.command, \"parsedParameters\": {}}];\n }else{\n console.log(\"adding in parsed parameters\", parameters);\n return [...prev, {...cur.command, \"parsedParameters\": parameters}];\n }\n \n }, []);\n const availableTokens = data.callback_by_pk.callbacktokens.reduce( (prev, cur) => {\n return [...prev, {...cur.token, \"display\": cur.token.User === null ? cur.token.TokenId + \" - \" + cur.token.description : cur.token.User + \" - \" + cur.token.description}]\n }, []);\n setCallbackTokenOptions(availableTokens);\n setFileBrowserCommands(availableCommands);\n if(availableCommands.length === 0){\n snackActions.warning(\"No commands currently loaded that support the \" + ui_feature + \" feature\");\n }else if(availableCommands.length === 1){\n setSelectedCommand({...availableCommands[0]});\n }else{\n setSelectedCommand({});\n setOpenSelectCommandDialog(true);\n }\n },\n fetchPolicy: \"no-cache\"\n });\n const onSubmitSelectedCommand = (cmd) => {\n setSelectedCommand(cmd);\n }\n const onSubmitTasking = ({variables}) => {\n if(getConfirmation){\n setTaskingVariables(variables);\n setOpenConfirmDialog(true);\n return;\n }\n\n if(callbackTokenOptions.length > 0){\n setOpenCallbackTokenSelectDialog(true);\n setTaskingVariables(variables);\n }else {\n createTask({variables})\n }\n }\n const submitParametersDialog = (cmd, parameters, files) => {\n setOpenParametersDialog(false);\n savedFinalVariables.current = parameters;\n onSubmitTasking({variables: {callback_id: callback_id, command: cmd, params: parameters, files, tasking_location: \"modal\"}});\n }\n const onSubmitSelectedToken = (token) => {\n setSelectedCallbackToken(token);\n }\n const onSubmitConfirm = () => {\n if(callbackTokenOptions.length > 0){\n setOpenCallbackTokenSelectDialog(true);\n }else {\n createTask({variables: taskingVariables})\n }\n }\n const onCancelConfirm = () => {\n setOpenConfirmDialog(false);\n onTasked({tasked: false});\n }\n useEffect( () => {\n if(selectedCallbackToken === \"\"){\n // we selected the default token to use\n createTask({variables: taskingVariables});\n }\n if(selectedCallbackToken.TokenId){\n createTask({variables: {...taskingVariables, token_id: selectedCallbackToken.TokenId}});\n }else{\n return;\n }\n \n }, [selectedCallbackToken])\n useEffect( () => {\n if(selectedCommand.commandparameters === undefined){\n return;\n }\n if(openDialog && selectedCommand.commandparameters.length > 0){\n setOpenParametersDialog(true);\n return;\n }\n let taskingLocation = tasking_location ? tasking_location : \"browserscript\";\n if(selectedCommand.commandparameters.length > 0){\n if(parameters === undefined || parameters === null){\n setOpenParametersDialog(true);\n }else{\n savedFinalVariables.current = parameters;\n if(typeof(parameters) === \"string\"){\n onSubmitTasking({variables: {callback_id: callback_id, command: selectedCommand.cmd, params: parameters, tasking_location: taskingLocation}});\n }else{\n onSubmitTasking({variables: {callback_id: callback_id, command: selectedCommand.cmd, params: JSON.stringify(parameters), tasking_location: taskingLocation}});\n }\n \n }\n }else{\n if(parameters === undefined || parameters === null){\n savedFinalVariables.current = \"\";\n onSubmitTasking({variables: {callback_id: callback_id, command: selectedCommand.cmd, params: \"\"}});\n }else{\n savedFinalVariables.current = parameters;\n if(typeof(parameters) === \"string\"){\n onSubmitTasking({variables: {callback_id: callback_id, command: selectedCommand.cmd, params: parameters, tasking_location: taskingLocation}});\n }else{\n onSubmitTasking({variables: {callback_id: callback_id, command: selectedCommand.cmd, params: JSON.stringify(parameters), tasking_location: taskingLocation}});\n }\n }\n \n }\n }, [selectedCommand])\n return (\n
\n {openSelectCommandDialog && \n {setOpenSelectCommandDialog(false);onTasked({tasked: false});}} \n innerDialog={{setOpenSelectCommandDialog(false);}}\n onSubmit={onSubmitSelectedCommand} options={fileBrowserCommands} title={\"Select Command\"} \n action={\"select\"} identifier={\"id\"} display={\"cmd\"}/>}\n />\n }\n {openParametersDialog &&\n {setOpenParametersDialog(false);onTasked({tasked: false});}} \n innerDialog={{setOpenParametersDialog(false);}} />}\n />\n }\n {openCallbackTokenSelectDialog &&\n {setOpenCallbackTokenSelectDialog(false);onTasked({tasked: false});}} \n innerDialog={{setOpenCallbackTokenSelectDialog(false);onTasked({tasked: false});}}\n onSubmit={onSubmitSelectedToken} dontCloseOnSubmit={true} options={callbackTokenOptions} title={\"Select Token\"} \n action={\"select\"} identifier={\"id\"} display={\"display\"}/>}\n />\n }\n {openConfirmDialog && \n \n }\n
\n )\n}\n","export function copyStringToClipboard(str) {\n try {\n // Create new element\n let el = document.createElement('textarea');\n // Set value (string to be copied)\n el.value = str;\n if(el.value === \"\"){\n el.value = \" \";\n }\n // Set non-editable to avoid focus and move outside of view\n el.setAttribute('readonly', '');\n el.style = {position: 'absolute', left: '-9999px'};\n document.body.appendChild(el);\n // Select text inside element\n el.select();\n // Copy text to clipboard\n document.execCommand('copy');\n // Remove temporary element\n document.body.removeChild(el);\n return true;\n } catch (error) {\n console.log(\"warning\", \"Failed to copy to clipboard: \" + error.toString());\n return false;\n }\n}\n","import { makeVar } from '@apollo/client';\n\nexport const meState = makeVar({loggedIn:false, user: null, access_token: null, refresh_token: null});\nexport const menuOpen = makeVar(false);\n\n\nexport const successfulLogin = (data) => {\n localStorage.setItem(\"access_token\", data.access_token);\n localStorage.setItem(\"refresh_token\", data.refresh_token);\n localStorage.setItem(\"user\", JSON.stringify(data.user));\n meState({\n loggedIn: true,\n ...data\n });\n}\nexport const successfulRefresh = (data) => {\n localStorage.setItem(\"access_token\", data.access_token);\n meState({\n loggedIn: true,\n access_token: localStorage.getItem(\"access_token\"),\n ...meState()\n });\n}\nexport const FailedRefresh = () =>{\n console.log(\"failed refresh\");\n localStorage.removeItem(\"access_token\");\n localStorage.removeItem(\"refresh_token\");\n localStorage.removeItem(\"user\");\n meState({\n loggedIn: false,\n access_token: null,\n refresh_token: null,\n user: null\n });\n}\n\n","import { createMuiTheme } from '@material-ui/core/styles';\nexport const lightTheme = {\n body: '#FFF',\n text: '#363537',\n textLighter: '#B8B8B8',\n textDarker: '#B8B8B8',\n toggleBorder: '#FFF',\n background: '#363537',\n tableHeader: '#F5F5F5',\n pageHeader: '#424242',\n pageHeaderColor: 'white',\n callbackTitle: '#BEDCFE',\n callbackTitleColor: '',\n listItemBackground: '#F5F5F5',\n menuItemBackground: \"#FBFBFB\",\n topAppBar: \"\",\n taskAccordian: \"\",\n taskAccordianResponse: \"#FAFAFA\",\n taskAccordianBottom: \"#F5F5F5\",\n secondaryTextColor: \"\",\n tabHeaderBackground: \"\",\n tabHeaderText: \"\",\n tableLineColor:\"\",\n eventMessageBackgroundColor: \"\",\n}\nexport const darkTheme = {\n body: '#212121',\n text: 'white',\n textLighter: '#989898',\n textDarker: '#989898',\n toggleBorder: '#6B8096',\n background: '#999',\n tableHeader: '#484848',\n pageHeader: '#424242',\n pageHeaderColor: 'white',\n callbackTitle: '#023064',\n callbackTitleColor: 'white',\n listItemBackground: '#303030',\n primaryButtonTextOnly: \"#7e75ea\",\n secondaryButtonTextOnly: \"#ea7575\",\n menuItemBackground: \"#363537\",\n topAppBar: \"\",\n taskAccordian: \"#424242\",\n taskAccordianResponse: \"#616161\",\n taskAccordianBottom: \"#424242\",\n secondaryTextColor: \"#E0E0E0\",\n tabHeaderBackground: \"#363537\",\n tabHeaderText: \"white\",\n tableLineColor: \"grey\",\n eventMessageBackgroundColor: \"#303030\",\n}\nexport const muiTheme = createMuiTheme({\n palette: {\n primary: {\n main: \"#1976d2\"\n },\n secondary: {\n main: \"#dc004e\"\n },\n error: {\n main: \"#f44336\"\n },\n warning: {\n main: \"#ff9800\"\n },\n info: {\n main: \"#2196f3\"\n },\n disabled: {\n main: \"rgba(0, 0, 0, 0.38)\"\n },\n },\n \n});\n\n\n","import { useState, useEffect } from 'react';\n\nconst useSingleAndDoubleClick = (onSingleClick, onDoubleClick, delay = 250) => {\n const [click, setClick] = useState(0);\n\n useEffect(() => {\n const timer = setTimeout(() => {\n // simple click\n if (click === 1) onSingleClick();\n setClick(0);\n }, delay);\n\n // the duration between this click and the previous one\n // is less than the value of delay = double-click\n if (click === 2) onDoubleClick();\n\n return () => clearTimeout(timer);\n }, [delay, onSingleClick, onDoubleClick, click]);\n\n return () => setClick((prev) => prev + 1);\n};\n\nexport default useSingleAndDoubleClick;\n","import { makeStyles } from '@material-ui/core';\n\nexport default makeStyles((theme) => ({\n headerCellRow: {\n display: 'flex',\n flexDirection: 'row',\n position: 'sticky',\n top: '0',\n left: '0',\n right: '0',\n zIndex: 1,\n },\n headerCell: {\n display: 'flex',\n alignItems: 'center',\n padding: '0 0.25em',\n boxSizing: 'border-box',\n justifyContent: 'space-between',\n userSelect: 'none',\n backgroundColor: theme.palette.background.paper,\n borderTop: '1px solid ' + theme.tableHover,\n borderRight: '1px solid ' + theme.tableHover,\n borderBottom: '1px solid ' + theme.tableHover,\n '&:first-child': {\n borderLeft: '1px solid ' + theme.tableHover,\n },\n '&:hover': {\n backgroundColor: theme.tableHover,\n cursor: 'pointer',\n },\n },\n hoveredRow: {\n backgroundColor: theme.tableHover,\n },\n cell: {\n display: 'flex',\n alignItems: 'center',\n padding: '0 0.5em',\n boxSizing: 'border-box',\n fontFamily: 'monospace',\n borderBottom: '1px solid ' + theme.tableHover,\n cursor: \"default !important\",\n },\n cellInner: {\n width: '100%',\n whiteSpace: 'nowrap',\n overflowX: 'hidden',\n textOverflow: 'ellipsis',\n },\n draggableHandlesContainer: {\n position: 'absolute',\n top: 0,\n overflowX: 'hidden',\n },\n draggableHandlesClickArea: {\n position: 'absolute',\n top: 0,\n width: '16px',\n cursor: 'col-resize',\n pointerEvents: 'initial',\n },\n draggableHandlesIndicator: {\n position: 'absolute',\n top: 0,\n left: 8,\n width: '1px',\n backgroundImage: 'linear-gradient(#7f93c0, #00000000)',\n },\n}));\n","import { Box, Typography } from '@material-ui/core';\nimport { useCallback } from 'react';\nimport useSingleAndDoubleClick from '../../utilities/useSingleAndDoubleClick';\nimport useStyles from './styles';\nimport React from 'react';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faFilter} from '@fortawesome/free-solid-svg-icons';\nimport Grow from '@material-ui/core/Grow';\nimport Popper from '@material-ui/core/Popper';\nimport MenuItem from '@material-ui/core/MenuItem';\nimport MenuList from '@material-ui/core/MenuList';\nimport ClickAwayListener from '@material-ui/core/ClickAwayListener';\nimport Paper from '@material-ui/core/Paper';\nimport {useTheme} from '@material-ui/core/styles';\n\nconst HeaderCell = ({\n onClick = () => {},\n onDoubleClick = () => {},\n contextMenuOptions = [],\n sortIndicatorIndex,\n sortDirection,\n headerNameKey = \"name\",\n VariableSizeGridProps: { style, rowIndex, columnIndex, data, ...other },\n}) => {\n const classes = useStyles();\n const dropdownAnchorRef = React.useRef(null);\n const theme = useTheme();\n const item = data.items[rowIndex][columnIndex];\n const isFiltered = item?.filtered || false;\n const handleClick = useCallback(\n (e) => {\n onClick(e, columnIndex);\n },\n [onClick, columnIndex]\n );\n\n const handleDoubleClick = useCallback(\n (e) => {\n onDoubleClick(e, columnIndex);\n },\n [onDoubleClick, columnIndex]\n );\n const [openContextMenu, setOpenContextMenu] = React.useState(false);\n const handleContextClick = useCallback(\n (event) => {\n event.preventDefault();\n if(item.disableFilterMenu){\n return;\n }\n if(contextMenuOptions && contextMenuOptions.length > 0){\n \n setOpenContextMenu(true);\n }\n },\n [contextMenuOptions, columnIndex] // eslint-disable-line react-hooks/exhaustive-deps\n );\n const handleMenuItemClick = (event, index) => {\n contextMenuOptions[index].click({event, columnIndex});\n setOpenContextMenu(false);\n };\n const handleClose = (event) => {\n if (dropdownAnchorRef.current && dropdownAnchorRef.current.contains(event.target)) {\n return;\n }\n setOpenContextMenu(false);\n };\n const handleClicks = useSingleAndDoubleClick(handleClick, handleDoubleClick);\n\n \n\n return (\n
\n \n \n {item[headerNameKey].toUpperCase()}\n \n {isFiltered ? (\n \n ) : (null)}\n {sortIndicatorIndex === columnIndex && (sortDirection === 'ASC' ?
:
)}\n \n {({ TransitionProps, placement }) => (\n \n \n \n \n {contextMenuOptions.map((option, index) => (\n handleMenuItemClick(event, index)}\n >\n {option.name}\n \n ))}\n \n \n \n \n )}\n \n
\n
\n );\n};\n\nexport default HeaderCell;\n","import { useCallback } from 'react';\nimport useStyles from './styles';\n\nconst Cell = ({ VariableSizeGridProps: { style, rowIndex, columnIndex, data } }) => {\n const rowClassName = data.gridUUID + \"row\" + rowIndex;\n const classes = useStyles();\n\n const handleDoubleClick = useCallback(\n (e) => {\n data.onDoubleClickRow(e, rowIndex - 1); // minus 1 to account for header row\n },\n [data, rowIndex]\n );\n\n const item = data.items[rowIndex][columnIndex];\n const cellStyle = item?.props?.cellData?.cellStyle || {};\n const rowStyle = data.items[rowIndex][columnIndex]?.props?.rowData?.rowStyle || {};\n const onMouseEnter = () => {\n const cells = document.getElementsByClassName(rowClassName);\n if(cells.length > 0){\n for(const cell of cells){\n cell.classList.add(classes.hoveredRow);\n }\n }\n }\n const onMouseLeave = () => {\n const cells = document.getElementsByClassName(rowClassName);\n if(cells.length > 0){\n for(const cell of cells){\n cell.classList.remove(classes.hoveredRow);\n }\n }\n }\n return (\n
\n
{item}
\n
\n );\n};\n\nexport default Cell;\n","import React, { useState } from 'react';\nimport useStyles from './styles';\nimport Draggable from 'react-draggable';\n\nconst DraggableHandles = React.forwardRef(({ height, rowHeight, width, minColumnWidth, columnWidths, onStop }, ref) => {\n const classes = useStyles();\n const [isDragging, setIsDragging] = useState(false);\n return (\n \n {columnWidths.map((_, i) => {\n const leftOffset = columnWidths.slice(0, i).reduce((a, b) => a + b, 0);\n return (\n {\n setIsDragging(i);\n }}\n onStop={(e, data) => {\n setIsDragging(false);\n onStop(data.x, i);\n }}>\n \n \n
\n \n );\n })}\n \n );\n});\n\nexport default DraggableHandles;\n","import React, { useCallback, useEffect, useRef, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport AutoSizer from 'react-virtualized-auto-sizer';\nimport useScrollbarSize from 'react-scrollbar-size';\nimport { VariableSizeGrid } from 'react-window';\nimport HeaderCell from './HeaderCell';\nimport Cell from './Cell';\nimport DraggableHandles from './DraggableHandles';\nimport useStyles from './styles';\n\nconst MIN_COLUMN_WIDTH = 100;\n\nconst CellRenderer = (VariableSizeGridProps) => {\n return VariableSizeGridProps.rowIndex === 0 ? null : ;\n};\n\nconst ResizableGridWrapper = ({\n columns,\n sortIndicatorIndex,\n sortDirection,\n items,\n headerNameKey,\n onClickHeader,\n onDoubleClickRow,\n contextMenuOptions,\n rowHeight,\n widthMeasureKey,\n ...AutoSizerProps\n}) => {\n /* Hooks */\n const { width: scrollbarWidth } = useScrollbarSize();\n\n const [columnWidths, setColumnWidths] = useState(columns.map((column) => column.width || MIN_COLUMN_WIDTH));\n\n const gridRef = useRef(null);\n\n const dragHandlesRef = useRef(null);\n\n const getColumnWidth = useCallback(\n (index) => {\n return columnWidths[index] || MIN_COLUMN_WIDTH;\n },\n [columnWidths]\n );\n const getShortRandomString = () => {\n return (Math.random() + 1).toString(36).substring(2);\n }\n const gridUUID = React.useMemo( () => getShortRandomString(), []);\n const getRowHeight = useCallback(\n (index) => {\n return rowHeight;\n },\n [rowHeight]\n );\n\n useEffect(() => {\n const totalWidth = AutoSizerProps.width - scrollbarWidth;\n const updatedColumnWidths = columns.map((column) => column.width || MIN_COLUMN_WIDTH);\n const totalWidthDiff = totalWidth - updatedColumnWidths.reduce((a, b) => a + b, 0);\n if (totalWidthDiff > 0) {\n let updatedWidthIndexs = [];\n for(let i = 0; i < columns.length; i++){\n // check if any of the columns have the `fillWidth` property to true\n if(columns[i][\"fillWidth\"]){\n updatedWidthIndexs.push(i);\n }\n }\n if(updatedWidthIndexs.length === 0){\n updatedWidthIndexs.push(columns.length - 1);\n }\n for(let i = 0; i < updatedWidthIndexs.length; i++){\n updatedColumnWidths[updatedWidthIndexs[i]] += totalWidthDiff / updatedWidthIndexs.length;\n }\n //updatedColumnWidths[updatedWidthIndex] += totalWidthDiff;\n }\n setColumnWidths(updatedColumnWidths);\n }, [scrollbarWidth, columns]); // eslint-disable-line react-hooks/exhaustive-deps\n\n useEffect(() => {\n gridRef.current.resetAfterColumnIndex(0, true);\n }, [columnWidths]);\n\n /* Event Handlers */\n\n const resizeColumn = (x, columnIndex) => {\n const updatedWidths = columnWidths.map((columnWidth, index) => {\n if (columnIndex === index) {\n return Math.floor(Math.max(columnWidth + x, MIN_COLUMN_WIDTH));\n }\n return Math.floor(columnWidth);\n });\n setColumnWidths(updatedWidths);\n };\n\n const autosizeColumn = (columnIndex) => {\n const longestElementInColumn = Math.max(...items.map((itemRow) => {\n if(typeof(itemRow[columnIndex]) === \"string\"){\n return itemRow[columnIndex].length;\n }else if(widthMeasureKey){\n return String(itemRow[columnIndex]?.props?.cellData?.[widthMeasureKey]).length || -1;\n }else{\n return itemRow[columnIndex]?.props?.cellData?.length || -1;\n }\n \n }));\n const updatedWidths = columnWidths.map((columnWidth, index) => {\n if (columnIndex === index) {\n return Math.floor(Math.max(longestElementInColumn * 8 + 32, MIN_COLUMN_WIDTH));\n }\n return Math.floor(columnWidth);\n });\n setColumnWidths(updatedWidths);\n };\n\n const itemsWithHeader = [columns, ...items];\n\n const innerElementType = React.forwardRef(({ children, ...rest }, ref) => {\n const classes = useStyles();\n return (\n
\n {/* always render header cells */}\n \n {columns.map((column, i) => {\n const leftOffset = columnWidths.slice(0, i).reduce((a, b) => a + b, 0);\n return (\n {\n if (column.disableAutosize) return;\n autosizeColumn(columnIndex);\n }}\n contextMenuOptions={contextMenuOptions}\n sortIndicatorIndex={sortIndicatorIndex}\n sortDirection={sortDirection}\n VariableSizeGridProps={{\n style: {\n position: 'absolute',\n top: 0,\n left: leftOffset,\n height: getRowHeight(0),\n width: getColumnWidth(i),\n },\n rowIndex: 0,\n columnIndex: i,\n data: { items: itemsWithHeader },\n }}\n />\n );\n })}\n
\n {/* render other cells as usual */}\n {children}\n \n );\n });\n\n return (\n <>\n {\n if (dragHandlesRef.current) {\n dragHandlesRef.current.scrollTo({ left: scrollLeft });\n }\n }}\n ref={gridRef}>\n {CellRenderer}\n \n \n \n );\n};\n\nconst MythicResizableGrid = ({\n columns,\n sortIndicatorIndex,\n sortDirection,\n items,\n onClickHeader,\n headerNameKey,\n onDoubleClickRow,\n contextMenuOptions,\n widthMeasureKey,\n rowHeight = 32,\n}) => {\n return (\n \n {(AutoSizerProps) => (\n \n )}\n \n );\n};\n\nMythicResizableGrid.propTypes = {\n columns: PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string,\n width: PropTypes.number,\n disableAutosize: PropTypes.bool,\n disableSort: PropTypes.bool\n })\n ).isRequired,\n sortIndicatorIndex: PropTypes.number,\n sortDirection: PropTypes.oneOf(['ASC', 'DESC']),\n items: PropTypes.arrayOf(PropTypes.array).isRequired,\n onClickHeader: PropTypes.func,\n onDoubleClickRow: PropTypes.func,\n contextMenuOptions: PropTypes.array,\n rowHeight: PropTypes.number,\n headerNameKey: PropTypes.string,\n widthMeasureKey: PropTypes.string\n};\n\nexport default MythicResizableGrid;\n","import MythicResizableGrid from './MythicResizableGrid';\n\nexport default MythicResizableGrid;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport {TextField} from '@material-ui/core';\nimport { withStyles } from '@material-ui/core/styles';\nconst ValidationTextField = withStyles({\n root: {\n '& input:valid + fieldset': {\n borderColor: 'grey',\n borderWidth: 1,\n },\n '& input:invalid + fieldset': {\n borderColor: 'red',\n borderWidth: 2,\n },\n '& input:valid:focus + fieldset': {\n borderLeftWidth: 6,\n padding: '4px !important', // override inline-style\n },\n },\n })(TextField);\n\nclass MythicTextField extends React.Component {\n \n static propTypes = {\n placeholder: PropTypes.string,\n name: PropTypes.string,\n validate: PropTypes.func,\n width: PropTypes.number,\n onChange: PropTypes.func.isRequired,\n requiredValue: PropTypes.bool,\n type: PropTypes.string,\n onEnter: PropTypes.func,\n autoFocus: PropTypes.bool\n }\n onChange = evt => {\n const name = this.props.name;\n const value = evt.target.value;\n const error = this.props.validate ? this.props.validate(value) : false;\n this.props.onChange(name, value, error);\n }\n checkError = () => {\n return this.props.validate ? this.props.validate(this.props.value) : false\n }\n onKeyPress = (event) => {\n if(event.key === \"Enter\"){\n if(this.props.onEnter !== undefined){\n this.props.onEnter();\n }\n }else{\n this.onChange(event);\n }\n }\n render(){\n return (\n
\n \n
\n )\n }\n}\nexport default MythicTextField;\n","import React from 'react';\nimport Button from '@material-ui/core/Button';\nimport DialogActions from '@material-ui/core/DialogActions';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport MythicTextField from '../../MythicComponents/MythicTextField';\nimport Select from '@material-ui/core/Select';\nimport Input from '@material-ui/core/Input';\nimport InputLabel from '@material-ui/core/InputLabel';\nimport MenuItem from '@material-ui/core/MenuItem';\nimport FormControl from '@material-ui/core/FormControl';\nimport ListItemText from '@material-ui/core/ListItemText';\nimport { makeStyles } from '@material-ui/core/styles';\n\nconst ITEM_HEIGHT = 48;\nconst ITEM_PADDING_TOP = 8;\nconst MenuProps = {\n PaperProps: {\n style: {\n maxHeight: ITEM_HEIGHT * 4.5 + ITEM_PADDING_TOP,\n width: 250,\n },\n },\n variant: \"menu\",\n getContentAnchorEl: () => null\n};\nconst useStyles = makeStyles((theme) => ({\n formControl: {\n margin: theme.spacing(1),\n width: \"100%\",\n },\n chips: {\n display: 'flex',\n flexWrap: 'wrap',\n },\n chip: {\n margin: 2,\n },\n noLabel: {\n marginTop: theme.spacing(2),\n },\n}));\n\nexport function CredentialTableNewCredentialDialog(props) {\n const [credentialType, setCredentialType] = React.useState(\"plaintext\");\n const credentialOptions = [\n \"plaintext\", \"ticket\", \"hash\", \"certificate\", \"key\", \"hex\"\n ];\n const [account, setAccount] = React.useState(\"\");\n const [realm, setRealm] = React.useState(\"\");\n const [credential, setCredential] = React.useState(\"\");\n const [comment, setComment] = React.useState(\"\");\n const classes = useStyles();\n\n const onSubmit = () => {\n props.onSubmit({\n realm,\n account,\n comment,\n credential,\n \"type\": credentialType\n });\n props.onClose();\n }\n const onAccountChange = (name, value, error) => {\n setAccount(value);\n }\n const onCommentChange = (name, value, error) => {\n setComment(value);\n }\n const onRealmChange = (name, value, error) => {\n setRealm(value);\n }\n const onCredentialChange = (name, value, error) => {\n setCredential(value);\n }\n const handleCredentialTypeChange = (event) => {\n setCredentialType(event.target.value);\n }\n return (\n \n Register New Credential\n \n \n \n Which Type of Credential\n }\n MenuProps={MenuProps}\n >\n {credentialOptions.map((name) => (\n \n \n \n ))}\n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n}\n\n","import React from 'react';\nimport Button from '@material-ui/core/Button';\nimport DialogActions from '@material-ui/core/DialogActions';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport {MythicDialog} from './MythicDialog';\nimport MythicTextField from './MythicTextField';\n\nexport function MythicDisplayTextDialog(props) {\n return (\n {props.onClose()}} innerDialog={\n \n {props.title}\n \n {}} />\n \n \n \n \n \n } />\n );\n}\n","import React from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport { Tooltip } from '@material-ui/core';\n\nconst useStyles = makeStyles((theme) => ({\n tooltip: {\n backgroundColor: theme.palette.background.contrast,\n color: theme.palette.text.contrast,\n boxShadow: theme.shadows[1],\n fontSize: 13\n },\n arrow: {\n color: theme.palette.background.contrast,\n }\n }));\n\nexport function MythicStyledTooltip(props){\n const { children, title, ...other} = props;\n const classes = useStyles();\n return (\n \n {{children}}\n \n );\n}\n","import React, {useEffect, useLayoutEffect, useRef} from 'react';\nimport {IconButton} from '@material-ui/core';\nimport Paper from '@material-ui/core/Paper';\nimport Typography from '@material-ui/core/Typography';\nimport { toLocalTime } from '../../utilities/Time';\nimport { meState } from '../../../cache';\nimport {useReactiveVar} from '@apollo/client';\nimport { makeStyles, fade, withStyles } from '@material-ui/core/styles';\nimport Accordion from '@material-ui/core/Accordion';\nimport AccordionDetails from '@material-ui/core/AccordionDetails';\nimport AccordionSummary from '@material-ui/core/AccordionSummary';\nimport ExpandMoreIcon from '@material-ui/icons/ExpandMore';\nimport ChatOutlinedIcon from '@material-ui/icons/ChatOutlined';\nimport Badge from '@material-ui/core/Badge';\nimport {useTheme} from '@material-ui/core/styles';\nimport TreeView from '@material-ui/lab/TreeView';\nimport TreeItem from '@material-ui/lab/TreeItem';\nimport SvgIcon from '@material-ui/core/SvgIcon';\nimport {gql, useLazyQuery } from '@apollo/client';\nimport {TaskDisplayContainer} from './TaskDisplayContainer';\n\nconst taskDataFragment = gql`\n fragment taskData on task {\n comment\n callback_id\n commentOperator{\n username\n }\n completed\n id\n operator{\n username\n }\n original_params\n display_params\n status\n timestamp\n command {\n cmd\n id\n }\n command_name\n responses(limit: 1, order_by: {id: desc}){\n id\n timestamp\n }\n opsec_pre_blocked\n opsec_pre_bypassed\n opsec_post_blocked\n opsec_post_bypassed\n tasks {\n id\n }\n token {\n id\n }\n }\n`;\n\nconst getSubTaskingQuery = gql`\n${taskDataFragment}\nquery getSubTasking($task_id: Int!){\n task(where: {parent_task_id: {_eq: $task_id}}, order_by: {id: asc}) {\n ...taskData\n }\n}\n `;\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n marginTop: \"3px\",\n marginLeft: \"3px\",\n marginRight: \"0px\",\n height: \"auto\",\n width: \"99%\",\n \n },\n heading: {\n fontSize: theme.typography.pxToRem(15),\n display: \"inline\",\n cursor: \"default\"\n },\n secondaryHeading: {\n fontSize: theme.typography.pxToRem(15),\n //color: theme.palette.text.secondary,\n overflow: \"auto\", \n display: \"block\", \n textOverflow: \"ellipsis\", \n wordBreak: \"break-all\",\n maxWidth: \"100%\", \n },\n taskAndTimeDisplay: {\n fontSize: theme.typography.pxToRem(12),\n color: theme.palette.text.secondary,\n overflow: \"hidden\", \n textOverflow: \"ellipsis\", \n maxWidth: \"100%\", \n width: \"100%\",\n whiteSpace: \"nowrap\",\n display: \"inline-block\"\n },\n secondaryHeadingExpanded: {\n fontSize: theme.typography.pxToRem(15),\n //color: theme.palette.text.secondary,\n display: \"block\", \n overflow: \"auto\",\n maxWidth: \"100%\", \n whiteSpace: \"break-all\",\n wordBreak: \"break-all\",\n },\n icon: {\n verticalAlign: 'middle',\n height: 20,\n width: 20,\n },\n details: {\n alignItems: 'center',\n marginRight: 0\n },\n column: {\n padding: \"0 5px 0 0\",\n display: \"inline-block\",\n margin: 0,\n height: \"auto\"\n },\n}));\nconst accordionUseStyles = makeStyles((theme) => ({\n root: {\n margin: 0,\n padding: 0,\n height: \"auto\",\n width: \"100%\",\n whiteSpace: \"break-all\",\n wordBreak: \"break-all\",\n },\n content: {\n margin: 0,\n height: \"100%\",\n padding: 0,\n },\n expandIcon: {\n margin: 0,\n },\n expanded: {\n marginRight: 0\n }\n}));\nfunction MinusSquare(props) {\n return (\n \n {/* tslint:disable-next-line: max-line-length */}\n \n \n );\n}\nfunction PlusSquare(props) {\n return (\n \n {/* tslint:disable-next-line: max-line-length */}\n \n \n );\n}\n\nconst StyledTreeItem = withStyles((theme) => ({\n root: {\n marginRight: 0,\n paddingRight: 0,\n width: \"100%\",\n '&:hover': {\n backgroundColor: \"none\"\n }\n },\n iconContainer: {\n '& .close': {\n opacity: 0.3,\n },\n },\n group: {\n marginLeft: 7,\n paddingLeft: 18,\n borderLeft: `1px dashed ${fade(theme.palette.text.primary, 0.4)}`,\n },\n}))((props) => ); \n\nfunction TaskDisplayPreMemo({task, filterOptions}){\n \n const classes = useStyles();\n const [nodesSelected, setNodesSelected] = React.useState([]);\n\n const toggleTaskTree = React.useCallback((task_id, selected) => {\n \tif(selected){\n \t\t// we want to add our treenode to the list if it's not there already\n \t\tif(nodesSelected.includes(\"treenode:\" + task_id)){\n \t\t\treturn;\n \t\t}\n \t\tsetNodesSelected([...nodesSelected, \"treenode:\" + task_id]);\n \t}else{\n \t\t// we want to remove our treenode from the list if it's there\n \t\tconst newSelection = nodesSelected.reduce( (prev, cur) => {\n\t\t\t\tif(cur === \"treenode:\" + task_id){\n\t\t\t\t\treturn [...prev];\n\t\t\t\t}\n\t\t\t\treturn [...prev, cur];\n \t\t}, [])\n \t\tsetNodesSelected(newSelection);\n \t}\n }, [nodesSelected]);\n return (\n \t\n \n \n );\n};\nexport const TaskDisplay = React.memo(TaskDisplayPreMemo);\n\nconst TaskStatusDisplay = ({task, theme}) => {\n if(task.status.toLowerCase().includes(\"error\")){\n return ({task.status.toLowerCase()})\n }else if(task.status === \"cleared\"){\n return (cleared)\n }else if(task.status === \"completed\"){\n return (null)//return (completed)\n }else if(task.status === \"submitted\"){\n return ({task.status.toLowerCase()})\n }else if(task.status === \"processing\"){\n return ({task.status.toLowerCase()})\n }else if(task.opsec_pre_blocked && !task.opsec_pre_bypassed){\n return (OPSEC BLOCKED (PRE))\n }else if(task.opsec_post_blocked && !task.opsec_post_bypassed){\n return (OPSEC BLOCKED (POST))\n }else{\n return ({task.status.toLowerCase()})\n }\n}\nconst ColoredTaskDisplay = ({task, theme, children}) => {\n const [themeColor, setThemeColor] = React.useState(theme.palette.info.main);\n useEffect( () => {\n if(task.status.toLowerCase().includes(\"error\")){\n setThemeColor(theme.palette.error.main);\n }else if(task.status.toLowerCase() === \"cleared\"){\n setThemeColor(theme.palette.warning.main);\n }else if(task.status === \"submitted\"){\n setThemeColor(theme.palette.info.main);\n }else if(task.opsec_pre_blocked && !task.opsec_pre_bypassed){\n setThemeColor(theme.palette.warning.main);\n }else if(task.opsec_post_blocked && !task.opsec_post_bypassed){\n setThemeColor(theme.palette.warning.main);\n }else if(task.status.toLowerCase() === \"processing\"){\n setThemeColor(theme.palette.warning.main);\n }else if(task.status === \"completed\"){\n setThemeColor(theme.palette.success.main);\n }else{\n setThemeColor(theme.palette.info.main);\n }\n }, [task.status, task.completed])\n return(\n \n {children}\n \n )\n}\nconst TaskRow = ({task, filterOptions, nodesSelected, toggleSelection}) => {\n\t const [dropdownOpen, setDropdownOpen] = React.useState(false);\n const [taskingData, setTaskingData] = React.useState({task: []});\n const [isFetchingSubtasks, setIsFetchingSubtasks] = React.useState(false);\n const [shouldDisplay, setShouldDisplay] = React.useState(true);\n const me = useReactiveVar(meState);\n const [getSubTasking, { startPolling, stopPolling }] = useLazyQuery(getSubTaskingQuery, {\n onError: data => {\n console.error(data)\n },\n fetchPolicy: \"network-only\",\n notifyOnNetworkStatusChange: true,\n onCompleted: (data) => {\n \tif(nodesSelected.includes(\"treenode:\" + task.id)){\n \t\tstartPolling(2000);\n \t}else{\n \t\tstopPolling();\n \t\tsetIsFetchingSubtasks(false);\n \t\treturn;\n \t}\n \tsetTaskingData(data);\n }\n });\n const getSubTasks = React.useCallback( (event) => {\n \tif(!isFetchingSubtasks){\n \ttoggleSelection(task.id, true);\n \tsetIsFetchingSubtasks(true);\n \t\tgetSubTasking({variables: {task_id: task.id} });\n \t\treturn;\n }\n //// we're already fetching subtasks, but just clicked the minus sign, so stop\n toggleSelection(task.id, false);\n }, [isFetchingSubtasks]);\n useEffect( () => {\n /*props.onSubmit({\n \"operatorsList\": onlyOperators,\n \"commentsFlag\": onlyHasComments,\n \"commandsList\": onlyCommands,\n \"everythingButList\": everythingBut,\n \"parameterString\": onlyParameters\n }); */\n if(task.display_params.includes(\"help\") && task.operator.username !== me.user.username){\n setShouldDisplay(false);\n return;\n }\n if(filterOptions === undefined){\n if(!shouldDisplay){\n setShouldDisplay(true);\n }\n return;\n }\n if(filterOptions[\"operatorsList\"].length > 0){\n if(!filterOptions[\"operatorsList\"].includes(task.operator.username)){\n if(shouldDisplay){\n setShouldDisplay(false);\n }\n return;\n }\n }\n if(filterOptions[\"commentsFlag\"]){\n if(task.comment === \"\"){\n if(shouldDisplay){\n setShouldDisplay(false);\n }\n return;\n }\n }\n if(filterOptions[\"commandsList\"].length > 0){\n // only show these commands\n if(!filterOptions[\"commandsList\"].includes(task.command_name)){\n if(shouldDisplay){\n setShouldDisplay(false);\n }\n return;\n }\n }\n if(filterOptions[\"everythingButList\"].length > 0){\n if(filterOptions[\"everythingButList\"].includes(task.command_name)){\n if(shouldDisplay){\n setShouldDisplay(false);\n }\n return;\n }\n }\n if(filterOptions[\"parameterString\"] !== \"\"){\n let regex = new RegExp(filterOptions[\"parameterString\"]);\n if(!regex.test(task.display_params)){\n if(shouldDisplay){\n setShouldDisplay(false);\n }\n return;\n }\n }\n if(!shouldDisplay){\n setShouldDisplay(true);\n }\n }, [filterOptions, task.comment, task.command, task.display_params, task.operator.username]);\n const toggleTaskDropdown = React.useCallback( (event, expanded) => {\n setDropdownOpen(!dropdownOpen);\n }, [dropdownOpen]);\n \n useEffect( () => {\n if(!isFetchingSubtasks && task.tasks.length > 0){\n getSubTasks();\n }\n }, [task.tasks])\n return (\n shouldDisplay ? (\n ) : (task.tasks.length > 0 ? () : (null) )\n }\n label={\n \n }>\n {\n taskingData.task.map( (tsk) => (\n \n ))\n }\n \n ) : (null)\n )\n}\nconst TaskLabel = ({task, dropdownOpen, toggleTaskDropdown}) => {\n const [fromNow, setFromNow] = React.useState( (new Date()) );\n const me = useReactiveVar(meState);\n const theme = useTheme();\n const [displayComment, setDisplayComment] = React.useState(false);\n const [alertBadges, setAlertBadges] = React.useState(0);\n const classes = useStyles();\n const accordionClasses = accordionUseStyles();\n const toggleDisplayComment = (evt) => {\n evt.stopPropagation();\n setDisplayComment(!displayComment);\n }\n const prevResponseMaxId = useRef(0);\n useLayoutEffect( () => {\n scrollContent();\n }, [])\n useEffect( () => {\n //console.log(\"in use effect\", prevResponseCount.current, props.task.responses);\n let currentData = task?.responses?.length > 0 ? task.responses[0] : {id: 0, timestamp: 0};\n if(!dropdownOpen){\n if((new Date(currentData.timestamp + \"Z\")) > fromNow){\n if(prevResponseMaxId.current === 0){\n toggleTaskDropdown();\n }else if(currentData.id > prevResponseMaxId.current){\n setAlertBadges(1);\n }\n }\n \n }else{\n prevResponseMaxId.current = currentData.id;\n setAlertBadges(0);\n }\n }, [task.responses, dropdownOpen]);\n const scrollContent = (node, isAppearing) => {\n document.getElementById(`scrolltotask${task.id}`).scrollIntoView({\n behavior: \"smooth\",\n block: \"start\",\n inline: \"start\"\n })\n }\n\n return(\n \n \n }\n aria-controls={`panel1c-content-task-${task.id}`}\n id={`panel1c-header-${task.id}`}\n classes={accordionClasses}\n > \n \n
\n {displayComment ? (\n \n {task.commentOperator.username}\n {task.comment}\n \n ) : (null)}\n [{toLocalTime(task.timestamp, me.user.view_utc_time)}] / {task.id} / {task.operator.username}\n \n \n
\n {task.comment !== \"\" ? (\n
\n \n
\n ) : (null)}\n
\n \n {e.stopPropagation();}} >\n {task.command_name + \" \" + task.display_params}\n \n \n
\n
\n
\n
\n \n \n \n \n
\n
\n )\n}","import React, {useEffect} from 'react';\nimport Table from '@material-ui/core/Table';\nimport TableContainer from '@material-ui/core/TableContainer';\nimport TableBody from '@material-ui/core/TableBody';\nimport TableCell from '@material-ui/core/TableCell';\nimport TableRow from '@material-ui/core/TableRow';\nimport FormControl from '@material-ui/core/FormControl';\nimport Select from '@material-ui/core/Select';\nimport Switch from '@material-ui/core/Switch';\nimport Input from '@material-ui/core/Input';\nimport {Button} from '@material-ui/core';\nimport MythicTextField from '../../MythicComponents/MythicTextField';\nimport Paper from '@material-ui/core/Paper';\nimport TableHead from '@material-ui/core/TableHead';\nimport AddCircleIcon from '@material-ui/icons/AddCircle';\nimport DeleteIcon from '@material-ui/icons/Delete';\nimport {useTheme} from '@material-ui/core/styles';\nimport CancelIcon from '@material-ui/icons/Cancel';\nimport {Typography} from '@material-ui/core';\nimport {useMutation, gql } from '@apollo/client';\nimport { snackActions } from '../../utilities/Snackbar';\nimport {CredentialTableNewCredentialDialog} from '../Search/CredentialTableNewCredentialDialog';\nimport { MythicDialog } from '../../MythicComponents/MythicDialog';\nimport { MythicStyledTooltip } from '../../MythicComponents/MythicStyledTooltip';\nimport { Backdrop } from '@material-ui/core';\nimport {CircularProgress} from '@material-ui/core';\n\nconst getDynamicQueryParams = gql`\nmutation getDynamicParamsMutation($callback: Int!, $command: String!, $payload_type: String!, $parameter_name: String!){\n dynamic_query_function(callback: $callback, command: $command, payload_type: $payload_type, parameter_name: $parameter_name){\n status\n error\n choices\n }\n}\n`;\nconst credentialFragment = gql`\nfragment credentialData on credential{\n account\n comment\n credential_text\n id\n realm\n type\n task_id\n timestamp\n deleted\n operator {\n username\n }\n}\n`;\nconst createCredentialMutation = gql`\n${credentialFragment}\nmutation createCredential($comment: String!, $account: String!, $realm: String!, $type: String!, $credential: bytea!) {\n insert_credential_one(object: {account: $account, credential_raw: $credential, comment: $comment, realm: $realm, type: $type}) {\n ...credentialData\n }\n }\n`;\n\nexport function TaskParametersDialogRow(props){\n const [value, setValue] = React.useState('');\n const theme = useTheme();\n const [ChoiceOptions, setChoiceOptions] = React.useState([]);\n const [boolValue, setBoolValue] = React.useState(false);\n const [arrayValue, setArrayValue] = React.useState([\"\"]);\n const [choiceMultipleValue, setChoiceMultipleValue] = React.useState([]);\n const [agentConnectNewHost, setAgentConnectNewHost] = React.useState(\"\");\n const [agentConnectHostOptions, setAgentConnectHostOptions] = React.useState([]);\n const [agentConnectNewPayload, setAgentConnectNewPayload] = React.useState(0);\n const [agentConnectHost, setAgentConnectHost] = React.useState(0);\n const [agentConnectPayloadOptions, setAgentConnectPayloadOptions] = React.useState([]);\n const [agentConnectPayload, setAgentConnectPayload] = React.useState(0);\n const [agentConnectC2ProfileOptions, setAgentConnectC2ProfileOptions] = React.useState([]);\n const [agentConnectC2Profile, setAgentConnectC2Profile] = React.useState(0);\n const [openAdditionalPayloadOnHostMenu, setOpenAdditionalPayloadOnHostmenu] = React.useState(false);\n const [createCredentialDialogOpen, setCreateCredentialDialogOpen] = React.useState(false);\n const [fileValue, setFileValue] = React.useState({name: \"\"});\n const [backdropOpen, setBackdropOpen] = React.useState(false);\n const usingDynamicParamChoices = React.useRef(false);\n const [getDynamicParams] = useMutation(getDynamicQueryParams, {\n onCompleted: (data) => {\n //console.log(data);\n if(data.dynamic_query_function.status === \"success\"){\n try{\n setChoiceOptions([...data.dynamic_query_function.choices]);\n usingDynamicParamChoices.current = true;\n if(props.type === \"Choice\"){\n if(data.dynamic_query_function.choices.length > 0){\n setValue(data.dynamic_query_function.choices[0]);\n props.onChange(props.name, data.dynamic_query_function.choices[0], false);\n }\n }\n }catch(error){\n setBackdropOpen(false);\n snackActions.warning(\"Failed to parse dynamic parameter results\");\n setChoiceOptions([]);\n }\n \n }else{\n snackActions.warning(data.dynamic_query_function.error);\n }\n setBackdropOpen(false);\n },\n onError: (data) => {\n snackActions.warning(\"Failed to perform dynamic parameter query\");\n console.log(data);\n }\n })\n const [createCredential] = useMutation(createCredentialMutation, {\n fetchPolicy: \"no-cache\",\n onCompleted: (data) => {\n snackActions.success(\"Successfully created new credential\");\n props.addedCredential();\n let newLength = ChoiceOptions.length;\n setChoiceOptions([...ChoiceOptions, {...data.insert_credential_one}]);\n switch(props.type){\n case \"Credential-JSON\":\n setValue(newLength);\n props.onChange(props.name, {...data.insert_credential_one}, false);\n break;\n case \"Credential-Account\":\n setValue(data.insert_credential_one.account);\n props.onChange(props.name, data.insert_credential_one.account, false);\n break;\n case \"Credential-Realm\":\n setValue(data.insert_credential_one.realm);\n props.onChange(props.name, data.insert_credential_one.realm, false);\n break;\n case \"Credential-Type\":\n setValue(data.insert_credential_one.type);\n props.onChange(props.name, data.insert_credential_one.type, false);\n break;\n case \"Credential-Credential\":\n setValue(data.insert_credential_one.credential_text);\n props.onChange(props.name, data.insert_credential_one.credential_text, false);\n break;\n default:\n break;\n }\n },\n onError: (data) => {\n snackActions.error(\"Failed to create credential\");\n console.log(data);\n }\n })\n useEffect( () => {\n if(props.dynamic_query_function !== null){\n if(ChoiceOptions.length === 0){\n setBackdropOpen(true);\n getDynamicParams({variables:{\n callback: props.callback_id,\n parameter_name: props.name,\n command: props.commandInfo.cmd,\n payload_type: props.commandInfo.payloadtype.ptype\n }})\n }\n }\n if(props.type === \"Boolean\"){\n if(value === \"\"){\n setBoolValue(props.value);\n setValue(props.value);\n }\n }else if(props.type === \"Array\"){\n if(arrayValue.length === 0 && props.value.length > 0){\n setArrayValue(props.value);\n }\n }else if(props.type === \"ChoiceMultiple\" && props.dynamic_query_function === null){\n if(value === \"\"){\n //console.log(props.value);\n setChoiceMultipleValue(props.value);\n setValue(props.value);\n setChoiceOptions(props.choices);\n }\n }\n else if(props.type === \"AgentConnect\"){\n if(props.choices.length > 0){\n //setAgentConnectHost(0);\n let hostNum = 0;\n if(agentConnectHost < props.choices.length){\n hostNum = agentConnectHost;\n }else{\n setAgentConnectHost(0);\n }\n setAgentConnectHostOptions(props.choices);\n let payloadNum = 0;\n if(agentConnectPayload < props.choices[hostNum][\"payloads\"].length){\n payloadNum = agentConnectPayload;\n }else{\n setAgentConnectPayload(0);\n }\n setAgentConnectPayloadOptions(props.choices[hostNum][\"payloads\"]);\n if(props.choices[hostNum][\"payloads\"].length > 0){\n //setAgentConnectPayload(0); \n if(props.choices[hostNum][\"payloads\"][payloadNum][\"c2info\"].length > 0){\n setAgentConnectC2ProfileOptions(props.choices[hostNum][\"payloads\"][payloadNum][\"c2info\"]);\n //setAgentConnectC2Profile(0);\n }\n }else{\n snackActions.warning(\"Mythic knows of no host with a P2P payload. Please add one.\");\n }\n }else{\n setAgentConnectHostOptions([]);\n setAgentConnectC2ProfileOptions([]);\n snackActions.warning(\"Mythic knows of no host with a P2P payload. Please add one.\")\n }\n }else{\n if(value === \"\"){\n if(props.type === \"Number\"){\n if(props.value === \"\"){\n setValue(0);\n }else{\n setValue(parseInt(props.value));\n }\n }else{\n setValue(props.value);\n }\n }\n if(props.dynamic_query_function === null && value===\"\"){\n setChoiceOptions([...props.choices]);\n setValue(props.value);\n }else if(props.choices.length != ChoiceOptions.length){\n if(!usingDynamicParamChoices.current){\n setChoiceOptions([...props.choices]);\n } \n \n }\n \n }\n \n }, [props.choices, props.default_value, props.type, props.value, setBoolValue, value]);\n const onChangeAgentConnect = (host_index, payload_index, c2_index) => {\n const c2profileparameters = props.choices[host_index][\"payloads\"][payload_index][\"c2info\"][c2_index].parameters.reduce( (prev, opt) => {\n return {...prev, [opt.name]: opt.value}\n }, {});\n let agentConnectValue = {host: props.choices[host_index][\"host\"], agent_uuid: props.choices[host_index][\"payloads\"][payload_index].uuid,\n c2_profile: {name: props.choices[host_index][\"payloads\"][payload_index][\"c2info\"][c2_index].name, parameters: c2profileparameters}};\n if(props.choices[host_index][\"payloads\"][payload_index].type === \"callback\"){\n agentConnectValue[\"callback_uuid\"] = props.choices[host_index][\"payloads\"][payload_index][\"agent_callback_id\"];\n }else{\n agentConnectValue[\"callback_uuid\"] = \"\";\n }\n props.onChange(props.name, agentConnectValue, false);\n }\n const onChangeLinkInfo = (index) => {\n let choice;\n if(props.choices[index][\"source\"][\"id\"] === props.callback_id){\n choice = props.choices[index][\"destination\"];\n }else{\n choice = props.choices[index][\"source\"];\n }\n const c2profileparameters = choice[\"c2profileparametersinstances\"].reduce( (prev, opt) => {\n if(opt.c2_profile_id === props.choices[index][\"c2profile\"][\"id\"]){\n return {...prev, [opt.c2profileparameter.name]: !opt.c2profileparameter.crypto_type ? opt.value : {crypto_type: opt.c2profileparameter.crypto_type, enc_key: opt.enc_key, dec_key: opt.dec_key} }\n }else{\n return {...prev};\n }\n }, {});\n let agentConnectValue = {host: choice.host, agent_uuid: choice.payload.uuid, callback_uuid: choice.agent_callback_id, c2_profile: {name: props.choices[index][\"c2profile\"][\"name\"], parameters: c2profileparameters} };\n props.onChange(props.name, agentConnectValue, false);\n setValue(index);\n }\n const onChangeValue = (evt) => {\n setValue(evt.target.value);\n props.onChange(props.name, evt.target.value, false);\n }\n const onChangeCredentialJSONValue = (evt) => {\n setValue(evt.target.value);\n props.onChange(props.name, ChoiceOptions[evt.target.value], false);\n }\n const onChangeChoiceMultiple = (event) => {\n const { options } = event.target;\n const value = [];\n for (let i = 0, l = options.length; i < l; i += 1) {\n if (options[i].selected) {\n value.push(options[i].value);\n }\n }\n setChoiceMultipleValue(value);\n setValue(value);\n props.onChange(props.name, value, false);\n }\n const onChangeText = (name, value, error) => {\n setValue(value);\n props.onChange(props.name, value, error);\n }\n const onChangeNumber = (name, value, error) => {\n setValue(parseInt(value));\n props.onChange(props.name, parseInt(value), error);\n }\n const onSwitchChange = (event) => {\n setBoolValue(event.target.checked);\n setValue(event.target.checked);\n props.onChange(props.name, event.target.checked);\n }\n const onFileChange = (evt) => {\n setFileValue({name: evt.target.files[0].name});\n props.onChange(props.name, evt.target.files[0]);\n \n }\n const onChangeAgentConnectHost = (event) => {\n setAgentConnectHost(event.target.value); \n setAgentConnectPayloadOptions(props.choices[event.target.value][\"payloads\"]);\n if(props.choices[event.target.value][\"payloads\"].length > 0){\n setAgentConnectPayload(0); \n if(props.choices[event.target.value][\"payloads\"][0][\"c2info\"].length > 0){\n setAgentConnectC2ProfileOptions(props.choices[0][\"payloads\"][0][\"c2info\"]);\n setAgentConnectC2Profile(0);\n onChangeAgentConnect(event.target.value, 0, 0);\n }else{\n setAgentConnectC2ProfileOptions([]);\n setAgentConnectC2Profile(null);\n }\n }else{\n setAgentConnectPayloadOptions([]);\n setAgentConnectPayload(null);\n setAgentConnectC2ProfileOptions([]);\n setAgentConnectC2Profile(null);\n }\n }\n const onChangeAgentConnectPayload = (event) => {\n setAgentConnectPayload(event.target.value);\n setAgentConnectC2ProfileOptions(props.choices[agentConnectHost][\"payloads\"][event.target.value][\"c2info\"]);\n if(props.choices[agentConnectHost][\"payloads\"][event.target.value][\"c2info\"].length > 0){\n setAgentConnectC2Profile(0);\n onChangeAgentConnect(agentConnectHost, event.target.value, 0);\n }else{\n setAgentConnectC2Profile(null);\n }\n }\n const onChangeAgentConnectC2Profile = (event) => {\n setAgentConnectC2Profile(event.target.value);\n onChangeAgentConnect(agentConnectHost, agentConnectPayload, event.target.value);\n }\n const onChangeAgentConnectNewHost = (name, value, error) => {\n setAgentConnectNewHost(value);\n }\n const onChangeAgentConnectNewPayload = (event) => {\n setAgentConnectNewPayload(event.target.value);\n }\n const onAgentConnectAddNewPayloadOnHost = () => {\n if(agentConnectNewHost === \"\"){\n snackActions.error(\"Must set a hostname\");\n return;\n }\n props.onAgentConnectAddNewPayloadOnHost(agentConnectNewHost.toUpperCase(), props.payload_choices[agentConnectNewPayload].id);\n setOpenAdditionalPayloadOnHostmenu(false);\n }\n const onAgentConnectRemovePayloadOnHost = () => {\n if(props.choices[agentConnectHost][\"payloads\"][agentConnectPayload].payloadOnHostID){\n props.onAgentConnectRemovePayloadOnHost(props.choices[agentConnectHost][\"payloads\"][agentConnectPayload].payloadOnHostID);\n }else{\n snackActions.warning(\"Can't remove a callback\");\n }\n \n }\n const testParameterValues = (curVal) => {\n if( props.required && props.verifier_regex !== \"\"){\n return !RegExp(props.verifier_regex).test(curVal);\n }else if(props.verifier_regex !== \"\" && curVal !== \"\"){\n return !RegExp(props.verifier_regex).test(curVal);\n }else{\n return false;\n }\n }\n const addNewArrayValue = () => {\n const newArray = [...arrayValue, \"\"];\n setArrayValue(newArray);\n props.onChange(props.name, newArray, false);\n }\n const removeArrayValue = (index) => {\n let removed = [...arrayValue];\n removed.splice(index, 1);\n setArrayValue(removed);\n props.onChange(props.name, removed, false);\n }\n const onChangeArrayText = (value, error, index) => {\n let values = [...arrayValue];\n values[index] = value;\n setArrayValue(values);\n props.onChange(props.name, values, false);\n }\n const onCreateCredential = ({type, account, realm, comment, credential}) => {\n createCredential({variables: {type, account, realm, comment, credential}})\n }\n const getParameterObject = () => {\n switch(props.type){\n case \"Choice\":\n case \"ChoiceMultiple\":\n return (\n \n \n \n \n \n }\n >\n {\n ChoiceOptions.map((opt, i) => (\n \n ))\n }\n \n \n \n \n )\n case \"Array\":\n return (\n \n \n \n {arrayValue.map( (a, i) => (\n \n \n \n \n \n onChangeArrayText(v, e, i)} display=\"inline-block\" onEnter={addNewArrayValue}\n validate={testParameterValues} errorText={\"Must match: \" + props.verifier_regex}\n />\n \n \n ))}\n \n \n \n \n \n \n \n
\n
\n )\n case \"String\":\n return (\n \n )\n case \"Number\":\n return (\n \n )\n case \"Boolean\":\n return (\n \n )\n case \"File\":\n return (\n \n )\n case \"LinkInfo\":\n return (\n \n {onChangeLinkInfo(evt.target.value)}}\n input={}\n >\n {\n props.choices.map((opt, i) => (\n \n ))\n }\n \n \n )\n case \"PayloadList\":\n return (\n \n }\n >\n {\n props.choices.map((opt, i) => (\n \n ))\n }\n \n \n )\n case \"AgentConnect\":\n return (\n \n \n \n {openAdditionalPayloadOnHostMenu ? (\n \n \n Hostname\n \n \n \n \n \n Payload on that host\n \n \n }\n >\n {props.payload_choices ? (\n props.payload_choices.map((opt, i) => (\n \n ))\n ) : ( )}\n \n \n \n \n \n \n \n \n \n \n \n \n \n ) : (null) }\n \n \n Host \n \n \n \n }\n >\n {\n agentConnectHostOptions.map((opt, i) => (\n \n ))\n }\n \n \n \n \n \n Payload\n \n \n }\n >\n {\n agentConnectPayloadOptions.map((opt, i) => (\n \n ))\n }\n \n \n \n \n \n {!openAdditionalPayloadOnHostMenu &&\n \n \n \n \n \n \n \n \n }\n \n C2 Profile\n \n \n }\n >\n {\n agentConnectC2ProfileOptions.map((opt, i) => (\n \n ))\n }\n \n \n \n \n \n
\n {agentConnectC2ProfileOptions.length > 0 ? (\n \n \n \n Parameter\n Value\n \n \n \n \n {agentConnectC2ProfileOptions[agentConnectC2Profile][\"parameters\"].map( (opt, i) => (\n \n {opt.name}\n
{JSON.stringify(opt.value, null, 2)}
\n
\n ) ) }\n
\n
\n ): (null)}\n
\n )\n case \"Credential-JSON\":\n return (\n \n {setCreateCredentialDialogOpen(false);}} \n innerDialog={{setCreateCredentialDialogOpen(false);}} />}\n />\n \n }\n >\n {\n ChoiceOptions.map((opt, i) => (\n \n ))\n }\n \n \n \n \n \n )\n case \"Credential-Account\":\n return (\n \n {setCreateCredentialDialogOpen(false);}} \n innerDialog={{setCreateCredentialDialogOpen(false);}} />}\n />\n \n }\n >\n {\n ChoiceOptions.map((opt, i) => (\n \n ))\n }\n \n \n \n \n )\n case \"Credential-Realm\":\n return (\n \n {setCreateCredentialDialogOpen(false);}} \n innerDialog={{setCreateCredentialDialogOpen(false);}} />}\n />\n \n }\n >\n {\n ChoiceOptions.map((opt, i) => (\n \n ))\n }\n \n \n \n \n )\n case \"Credential-Type\":\n return (\n \n {setCreateCredentialDialogOpen(false);}} \n innerDialog={{setCreateCredentialDialogOpen(false);}} />}\n />\n \n }\n >\n {\n ChoiceOptions.map((opt, i) => (\n \n ))\n }\n \n \n \n \n )\n case \"Credential-Credential\":\n return (\n \n {setCreateCredentialDialogOpen(false);}} \n innerDialog={{setCreateCredentialDialogOpen(false);}} />}\n />\n \n }\n >\n {\n ChoiceOptions.map((opt, i) => (\n \n ))\n }\n \n \n \n \n )\n default:\n return null\n }\n }\n return (\n \n \n 0 ? props.description : \"No Description\"}>\n {props.display_name}\n \n {props.required ? (\n Required\n ) : (null) }\n \n \n {getParameterObject()}\n \n \n )\n}\n\n","import { snackActions } from '../utilities/Snackbar';\n\nexport const UploadTaskFile = async (file) => {\n let formData = new FormData();\n formData.append(\"file\", file);\n snackActions.info(\"Uploading \" + file.name + \" to Mythic...\", {autoHideDuration: 2000});\n const upload_response = await fetch('/api/v1.4/task_upload_file_webhook', {\n method: 'POST',\n body: formData,\n headers: {\n \"Authorization\": `Bearer ${localStorage.getItem(\"acess_token\")}`\n }\n })\n const upload_result = upload_response.json().then(data => {\n console.log(data);\n return data?.agent_file_id || data?.error || null;\n }).catch(error => {\n console.log(upload_response);\n snackActions.warning(\"Error: \" + upload_response.statusText + \"\\nError Code: \" + upload_response.status);\n console.log(\"Error trying to get json response\", error.toString());\n return null;\n });\n \n return upload_result;\n}","import React, {useState, useEffect} from 'react';\nimport Button from '@material-ui/core/Button';\nimport DialogActions from '@material-ui/core/DialogActions';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport Typography from '@material-ui/core/Typography';\nimport Table from '@material-ui/core/Table';\nimport TableBody from '@material-ui/core/TableBody';\nimport TableCell from '@material-ui/core/TableCell';\nimport TableContainer from '@material-ui/core/TableContainer';\nimport TableHead from '@material-ui/core/TableHead';\nimport TableRow from '@material-ui/core/TableRow';\nimport Paper from '@material-ui/core/Paper';\nimport {TaskParametersDialogRow} from './TaskParametersDialogRow';\nimport {useQuery, gql, useLazyQuery, useMutation } from '@apollo/client';\nimport FormControl from '@material-ui/core/FormControl';\nimport TextField from '@material-ui/core/TextField';\nimport MenuItem from '@material-ui/core/MenuItem';\nimport Input from '@material-ui/core/Input';\nimport {UploadTaskFile} from '../../MythicComponents/MythicFileUpload';\nimport { Backdrop } from '@material-ui/core';\nimport {CircularProgress} from '@material-ui/core';\nimport Divider from '@material-ui/core/Divider';\nimport {useTheme} from '@material-ui/core/styles';\nimport { MythicStyledTooltip } from '../../MythicComponents/MythicStyledTooltip';\n\n//if we need to get all the loaded commands for the callback and filter, use this\nconst GetLoadedCommandsQuery = gql`\nquery GetLoadedCommandsQuery($callback_id: Int!) {\n loadedcommands(where: {callback_id: {_eq: $callback_id}}) {\n id\n command {\n cmd\n attributes\n id\n }\n }\n}\n`;\n//if we need to get all the possible commands for a payload type and filter, use this\nconst getAllCommandsQuery = gql`\nquery getAllCommandsQuery($payload_type_id: Int!){\n command(where: {payload_type_id: {_eq: $payload_type_id}, deleted: {_eq: false}}) {\n attributes\n cmd\n id\n }\n}\n`;\n//if we need to get all the possible edges for the callback, use this\nconst getAllEdgesQuery = gql`\nquery getAllEdgesQuery($callback_id: Int!){\n callbackgraphedge(where: {_or: [{source_id:{_eq: $callback_id}}, {destination_id: {_eq: $callback_id}}]}) {\n id\n c2profile {\n id\n name\n }\n direction\n destination{\n agent_callback_id\n host\n id\n payload {\n id\n uuid\n }\n c2profileparametersinstances {\n enc_key_base64\n dec_key_base64\n value\n id\n c2_profile_id\n c2profileparameter {\n crypto_type\n name\n id\n }\n }\n }\n source{\n agent_callback_id\n host\n id\n payload {\n uuid\n id\n }\n c2profileparametersinstances {\n enc_key_base64\n dec_key_base64\n c2_profile_id\n value\n id\n c2profileparameter {\n crypto_type\n name\n id\n }\n }\n }\n end_timestamp\n }\n }\n`;\n// get all payloads query\nconst getAllPayloadsQuery = gql`\nquery getAllPayloadsQuery($operation_id: Int!){\n payload(where: {deleted: {_eq: false}, build_phase: {_eq: \"success\"}, operation_id: {_eq: $operation_id}}) {\n id\n tag\n uuid\n payloadc2profiles {\n id\n c2profile {\n name\n id\n is_p2p\n }\n }\n payloadtype{\n id\n ptype\n }\n filemetum {\n id\n filename_text\n }\n buildparameterinstances {\n parameter\n id\n buildparameter {\n name\n id\n }\n }\n }\n}\n`;\n// get all payloads on hosts\nconst getAllPayloadsOnHostsQuery = gql`\nquery getAllPayloadsOnHostsQuery($operation_id: Int!){\n payloadonhost(where: {deleted: {_eq: false}, operation_id: {_eq: $operation_id}, payload: {c2profileparametersinstances: {c2profile: {is_p2p: {_eq: true}}}}}) {\n host\n id\n payload {\n auto_generated\n id\n tag\n filemetum {\n filename_text\n id\n }\n uuid\n c2profileparametersinstances(where: {c2profile: {is_p2p: {_eq: true}}}) {\n c2profile {\n name\n id\n }\n c2profileparameter {\n crypto_type\n name\n id\n }\n value\n enc_key_base64\n dec_key_base64\n id\n }\n }\n }\n callback(where: {active: {_eq: true}, operation_id: {_eq: $operation_id}, c2profileparametersinstances: {c2profile: {is_p2p: {_eq: true}}}}){\n agent_callback_id\n host\n id\n description\n crypto_type\n payload {\n auto_generated\n id\n tag\n filemetum {\n filename_text\n id\n }\n uuid\n }\n c2profileparametersinstances(where: {c2profile: {is_p2p: {_eq: true}}}) {\n c2profile {\n name\n id\n }\n c2profileparameter {\n crypto_type\n name\n id\n }\n value\n enc_key_base64\n dec_key_base64\n id\n }\n }\n}\n`;\n// use this to add a payload on a host\nconst addPayloadOnHostMutation = gql`\n mutation addPayloadOnHostMutation($host: String!, $payload_id: Int!){\n insert_payloadonhost(objects: {host: $host, payload_id: $payload_id}) {\n affected_rows\n }\n }\n`;\n// use this to remove a payload on a host\nconst removePayloadOnHostMutation = gql`\n mutation removePayloadOnHostMutation($payloadOnHostID: Int!){\n delete_payloadonhost_by_pk(id: $payloadOnHostID) {\n id\n }\n }\n`;\n// use this to get all of the parameters and information for the command we're trying to execute\nconst getCommandQuery = gql`\nquery getCommandQuery($id: Int!){\n command_by_pk(id: $id) {\n attributes\n author\n cmd\n description\n help_cmd\n id\n needs_admin\n version\n payloadtype{\n ptype\n }\n commandparameters {\n choice_filter_by_command_attributes\n choices\n choices_are_all_commands\n choices_are_loaded_commands\n default_value\n description\n id\n name\n required\n supported_agent_build_parameters\n supported_agents\n type\n dynamic_query_function\n ui_position\n parameter_group_name\n display_name\n cli_name\n }\n commandopsec {\n authentication\n id\n injection_method\n process_creation\n }\n }\n}\n`;\n// use this to get all of the credentials for the command we're trying to execute\nconst getCredentialsQuery = gql`\nquery getCredentialsQuery($operation_id: Int!){\n credential(where: {deleted: {_eq: false}, operation_id: {_eq: $operation_id}}){\n account\n comment\n credential_text\n id\n realm\n type\n }\n}\n`;\nexport function TaskParametersDialog(props) {\n const theme = useTheme();\n const [backdropOpen, setBackdropOpen] = React.useState(false);\n const [commandInfo, setCommandInfo] = useState({});\n const [parameterGroups, setParameterGroups] = useState([]);\n const [selectedParameterGroup, setSelectedParameterGroup] = useState('Default');\n const [parameters, setParameters] = useState([]);\n const [rawParameters, setRawParameters] = useState(false);\n const [requiredPieces, setRequiredPieces] = useState({all: false, loaded: false, edges: false, credentials: false});\n //get all the data about our command that we can\n const [getAllCommands, { data: allCommandsLoading}] = useLazyQuery(getAllCommandsQuery, {\n fetchPolicy: \"no-cache\"\n });\n const [getLoadedCommands, { data: loadedCommandsLoading}] = useLazyQuery(GetLoadedCommandsQuery, {\n fetchPolicy: \"no-cache\"\n });\n const [getAllEdges, { data: loadedAllEdgesLoading}] = useLazyQuery(getAllEdgesQuery, {\n fetchPolicy: \"no-cache\"\n });\n const [getAllPayloads, { data: loadedAllPayloadsLoading}] = useLazyQuery(getAllPayloadsQuery, {\n fetchPolicy: \"no-cache\"\n });\n const [getAllPayloadsOnHosts, { data: loadedAllPayloadsOnHostsLoading}] = useLazyQuery(getAllPayloadsOnHostsQuery, {\n fetchPolicy: \"no-cache\"\n });\n const [getAllCredentials, { data: loadedCredentialsLoading}] = useLazyQuery(getCredentialsQuery, {\n fetchPolicy: \"no-cache\"\n });\n const [addPayloadOnHost] = useMutation(addPayloadOnHostMutation, {\n onCompleted: data => {\n getAllPayloadsOnHosts({variables: {operation_id: props.operation_id}})\n }\n });\n const [RemovePayloadOnHost] = useMutation(removePayloadOnHostMutation, {\n onCompleted: data => {\n getAllPayloadsOnHosts({variables: {operation_id: props.operation_id}})\n }\n })\n useQuery(getCommandQuery, {\n variables: {id: props.command.id},\n fetchPolicy: \"no-cache\",\n onCompleted: data => {\n // do an initial pass to see what other quries we need to make\n let requiredPiecesInitial = {all: false, loaded: false, edges: false, credentials: false};\n let groupNames = [];\n data.command_by_pk.commandparameters.forEach( (cmd) => {\n if(!groupNames.includes(cmd.parameter_group_name)){\n groupNames.push(cmd.parameter_group_name);\n }\n if(cmd.type === \"LinkInfo\"){\n requiredPiecesInitial[\"edges\"] = true;\n }else if(cmd.choices_are_all_commands){\n requiredPiecesInitial[\"all\"] = true;\n }else if(cmd.choices_are_loaded_commands){\n requiredPiecesInitial[\"loaded\"] = true;\n }else if(cmd.type === \"AgentConnect\"){\n requiredPiecesInitial[\"connect\"] = true;\n //need payloads as well in case the user wants to add a payload to a host\n requiredPiecesInitial[\"payloads\"] = true;\n }else if(cmd.type === \"PayloadList\"){\n requiredPiecesInitial[\"payloads\"] = true;\n }else if(cmd.type.includes(\"Credential\")){\n requiredPiecesInitial[\"credentials\"] = true;\n }\n });\n groupNames.sort();\n setParameterGroups(groupNames);\n if(props.command.groupName && groupNames.includes(props.command.groupName)){\n setSelectedParameterGroup(props.command.groupName);\n } else if(!groupNames.includes(\"Default\")){\n setSelectedParameterGroup(groupNames[0]);\n }\n setCommandInfo({...data.command_by_pk});\n if(requiredPiecesInitial[\"edges\"]){getAllEdges({variables: {callback_id: props.callback_id} });}\n if(requiredPiecesInitial[\"all\"]){getAllCommands({variables: {payload_type_id: props.payloadtype_id}});}\n if(requiredPiecesInitial[\"loaded\"]){getLoadedCommands({variables: {callback_id: props.callback_id} });}\n if(requiredPiecesInitial[\"payloads\"]){getAllPayloads({variables: {operation_id: props.operation_id} });}\n if(requiredPiecesInitial[\"connect\"]){getAllPayloadsOnHosts({variables: {operation_id: props.operation_id} });}\n if(requiredPiecesInitial[\"credentials\"]){getAllCredentials({variables: {operation_id: props.operation_id}});}\n setRequiredPieces(requiredPiecesInitial);\n setRawParameters({...data});\n }\n });\n const addedCredential = () => {\n getAllCredentials({variables: {operation_id: props.operation_id}});\n }\n const intersect = (a, b) => {\n let setB = new Set(b);\n return [...new Set(a)].filter(x => setB.has(x));\n }\n \n useEffect( () => {\n const getLinkInfoFromAgentConnect = (choices) => {\n if(choices.length > 0){\n const c2profileparameters = choices[0][\"payloads\"][0][\"c2info\"][0].parameters.reduce( (prev, opt) => {\n return {...prev, [opt.name]: opt.value}\n }, {});\n let agentConnectValue = {host: choices[0][\"host\"], agent_uuid: choices[0][\"payloads\"][0].uuid,\n c2_profile: {name: choices[0][\"payloads\"][0][\"c2info\"][0].name, parameters: c2profileparameters}};\n if(choices[0][\"payloads\"][0].type === \"callback\"){\n agentConnectValue[\"callback_uuid\"] = props.choices[0][\"payloads\"][0][\"agent_callback_id\"];\n }\n return agentConnectValue;\n }else{\n return {};\n }\n };\n const getLinkInfoValue = (choices) => {\n let choice;\n if(choices.length > 0){\n if(choices[0][\"source\"][\"id\"] === props.callback_id){\n choice = choices[0][\"destination\"];\n }else{\n choice = choices[0][\"source\"];\n }\n const c2profileparameters = choice[\"c2profileparametersinstances\"].reduce( (prev, opt) => {\n if(opt.c2_profile_id === choices[0][\"c2profile\"][\"id\"]){\n return {...prev, [opt.c2profileparameter.name]: !opt.c2profileparameter.crypto_type ? opt.value : {crypto_type: opt.c2profileparameter.crypto_type, enc_key: opt.enc_key_base64, dec_key: opt.dec_key_base64} }\n }else{\n return {...prev};\n }\n }, {});\n let agentConnectValue = {host: choice.host, agent_uuid: choice.payload.uuid, callback_uuid: choice.agent_callback_id, c2_profile: {name: choices[0][\"c2profile\"][\"name\"], parameters: c2profileparameters} };\n return agentConnectValue;\n }else{\n return {};\n }\n }\n if(rawParameters && (!requiredPieces[\"loaded\"] || loadedCommandsLoading) &&\n (!requiredPieces[\"all\"] || allCommandsLoading) &&\n (!requiredPieces[\"edges\"] || loadedAllEdgesLoading) &&\n (!requiredPieces[\"payloads\"] || loadedAllPayloadsLoading) && \n (!requiredPieces[\"connect\"] || loadedAllPayloadsOnHostsLoading) &&\n (!requiredPieces[\"credentials\"] || loadedCredentialsLoading) ){\n //only process the parameter once we have fetched all of the required pieces\n const params = rawParameters.command_by_pk.commandparameters.reduce( (prev, cmd) => {\n if(cmd.parameter_group_name !== selectedParameterGroup){\n return [...prev];\n }\n switch(cmd.type){\n case \"Boolean\":\n if(cmd.name in props.command.parsedParameters){\n return [...prev, {...cmd, value: props.command.parsedParameters[cmd.name]}];\n }\n else if(cmd.default_value){\n return [...prev, {...cmd, value: cmd.default_value.toLowerCase() === \"true\"}];\n }else{\n return [...prev, {...cmd, value: false}];\n }\n case \"String\":\n if(cmd.name in props.command.parsedParameters){\n return [...prev, {...cmd, value: props.command.parsedParameters[cmd.name]}];\n }else{\n return [...prev, {...cmd, value: cmd.default_value}];\n } \n case \"Number\":\n if(cmd.name in props.command.parsedParameters){\n return [...prev, {...cmd, value: props.command.parsedParameters[cmd.name]}];\n }else{\n return [...prev, {...cmd, value: cmd.default_value === \"\" ? 0 : parseInt(cmd.default_value)}];\n }\n case \"Array\":\n if(cmd.name in props.command.parsedParameters){\n return [...prev, {...cmd, value: props.command.parsedParameters[cmd.name]}];\n }else if(cmd.default_value.length > 0){\n return [...prev, {...cmd, value: JSON.parse(cmd.default_value)}];\n }else{\n return [...prev, {...cmd, value: []}];\n }\n case \"Choice\":\n case \"ChoiceMultiple\":\n let choices = cmd.choices.split(\"\\n\");\n let defaultV = cmd.default_value;\n if(cmd.type === \"ChoiceMultiple\"){\n if(cmd.default_value !== \"\"){\n defaultV = JSON.parse(cmd.default_value);\n }else{\n defaultV = [];\n }\n }else{\n if(choices.length > 0){\n defaultV = cmd.default_value === \"\" ? choices[0] : cmd.default_value;\n }\n }\n let filter = JSON.parse(cmd.choice_filter_by_command_attributes);\n if(cmd.choices_are_all_commands){\n //get all of the latest commands\n choices = [...allCommandsLoading.command];\n choices = choices.reduce( (prevn, c) => {\n let match = true;\n let cmd_attributes = JSON.parse(c.attributes);\n for(const [key, value] of Object.entries(filter)){\n if(key === \"spawn_and_injectable\"){\n if(value !== cmd_attributes[key]){\n match = false;\n }\n }else if(key === \"supported_os\" && value.length > 0){\n if(intersect(value, cmd_attributes[key]).length === 0){\n match = false;\n }\n }\n }\n if(match){\n return [...prevn, c.cmd];\n }else{\n return [...prevn];\n }\n }, []);\n choices.sort();\n if(choices.length > 0){\n if(cmd.type === \"ChoiceMultiple\"){defaultV = []}\n else{defaultV = choices[0];}\n }\n }else if(cmd.choices_are_loaded_commands){\n //get all of the loaded commands\n choices = [...loadedCommandsLoading.loadedcommands];\n choices = choices.reduce( (prevn, c) => {\n let match = true;\n let cmd_attributes = JSON.parse(c.command.attributes);\n for(const [key, value] of Object.entries(filter)){\n if(key === \"spawn_and_injectable\"){\n if(value !== cmd_attributes[key]){\n match = false;\n }\n }else if(key === \"supported_os\" && value.length > 0){\n if(intersect(value, cmd_attributes[key]).length === 0){\n match = false;\n }\n }\n }\n if(match){\n return [...prevn, c.command.cmd];\n }else{\n return [...prevn];\n }\n }, []);\n if(choices.length > 0){\n if(cmd.type === \"ChoiceMultiple\"){defaultV = []}\n else{defaultV = choices[0];}\n }\n }\n if(cmd.name in props.command.parsedParameters){\n return [...prev, {...cmd, choices: choices, value: props.command.parsedParameters[cmd.name]}];\n }else{\n return [...prev, {...cmd, choices: choices, default_value: defaultV, value: defaultV}];\n }\n case \"File\":\n return [...prev, {...cmd, value: {} }]; \n case \"Credential-JSON\":\n if (loadedCredentialsLoading.credential.length > 0){\n return [...prev, {...cmd, value: loadedCredentialsLoading.credential[0], choices: loadedCredentialsLoading.credential}];\n }else{\n return [...prev, {...cmd, value: {}, choices: []}];\n }\n case \"Credential-Account\":\n if (loadedCredentialsLoading.credential.length > 0){\n return [...prev, {...cmd, value: loadedCredentialsLoading.credential[0][\"account\"], choices: loadedCredentialsLoading.credential}];\n }else{\n return [...prev, {...cmd, value: \"\", choices: []}];\n }\n case \"Credential-Realm\":\n if (loadedCredentialsLoading.credential.length > 0){\n return [...prev, {...cmd, value: loadedCredentialsLoading.credential[0][\"realm\"], choices: loadedCredentialsLoading.credential}];\n }else{\n return [...prev, {...cmd, value: \"\", choices: []}];\n }\n case \"Credential-Type\":\n if (loadedCredentialsLoading.credential.length > 0){\n return [...prev, {...cmd, value: loadedCredentialsLoading.credential[0][\"type\"], choices: loadedCredentialsLoading.credential}];\n }else{\n return [...prev, {...cmd, value: \"\", choices: []}];\n }\n case \"Credential-Credential\":\n if (loadedCredentialsLoading.credential.length > 0){\n return [...prev, {...cmd, value: loadedCredentialsLoading.credential[0][\"credential_text\"], choices: loadedCredentialsLoading.credential}];\n }else{\n return [...prev, {...cmd, value: \"\", choices: []}];\n }\n case \"AgentConnect\":\n const agentConnectNewPayloads = loadedAllPayloadsLoading.payload.reduce( (prevn, payload) => {\n let foundP2P = false;\n const profiles = payload.payloadc2profiles.reduce( (prevn, profile) => {\n if(profile.c2profile.is_p2p){foundP2P = true;}\n return [...prevn, profile.c2profile.name];\n }, []).join(\",\");\n if(foundP2P){\n return [...prevn, {...payload, display: payload.filemetum.filename_text + \" - \" + profiles + \" - \" + payload.tag}];\n }else{\n return [...prevn];\n }\n \n }, []);\n const callbacksOrganized = loadedAllPayloadsOnHostsLoading.callback.reduce( (prevn, entry) => {\n let found = false;\n const updates = prevn.map( (host) => {\n if(host.host === entry.host){\n found = true;\n const c2info = entry.c2profileparametersinstances.reduce( (prevn, cur) => {\n const val = !cur.c2profileparameter.crypto_type ? cur.value : {crypto_type: cur.value, enc_key: cur.enc_key_base64, dec_key: cur.dec_key_base64};\n if(cur.c2profile.name in prevn){\n //we just want to add a new entry to the c2profile.name list\n \n return {...prevn, [cur.c2profile.name]: [...prevn[cur.c2profile.name], { name: cur.c2profileparameter.name, value: val } ] }\n }else{\n return {...prevn, [cur.c2profile.name]: [ { name: cur.c2profileparameter.name, value: val } ] }\n }\n }, {});\n let c2array = [];\n for( const [key, value] of Object.entries(c2info)){\n c2array.push({name: key, parameters: value});\n }\n const payloadInfo = {...entry.registered_payload, c2info: c2array, display: \"Callback \" + entry.id + \" - \" + entry.description, ...entry, type: \"callback\", payloadOnHostID:null};\n return {...host, payloads: [...host.payloads, payloadInfo]}\n }else{\n return host;\n }\n });\n if(!found){\n const c2info = entry.c2profileparametersinstances.reduce( (prevn, cur) => {\n const val = !cur.c2profileparameter.crypto_type ? cur.value : {crypto_type: cur.value, enc_key: cur.enc_key_base64, dec_key: cur.dec_key_base64};\n if(cur.c2profile.name in prevn){\n //we just want to add a new entry to the c2profile.name list\n \n return {...prevn, [cur.c2profile.name]: [...prevn[cur.c2profile.name], { name: cur.c2profileparameter.name, value: val } ] }\n }else{\n return {...prevn, [cur.c2profile.name]: [ { name: cur.c2profileparameter.name, value: val } ] }\n }\n }, {});\n let c2array = [];\n for( const [key, value] of Object.entries(c2info)){\n c2array.push({name: key, parameters: value});\n }\n const payloadInfo = {...entry.registered_payload, c2info: c2array, display: \"Callback \" + entry.id + \" - \" + entry.description, ...entry, type: \"callback\", payloadOnHostID:null};\n return [...prevn, {host: entry.host, payloads: [payloadInfo] } ]\n }else{\n return updates;\n }\n }, []);\n const organized = loadedAllPayloadsOnHostsLoading.payloadonhost.reduce( (prevn, entry) => {\n let found = false;\n const updates = prevn.map( (host) => {\n if(host.host === entry.host){\n found = true;\n //now we need to merge this entry with our current payloads/callbacks for the host\n let duplicated_payload = false;\n host.payloads.forEach( (p) => {\n if(p.id === entry.payload.id){duplicated_payload = true}\n });\n if(duplicated_payload){return host}\n const c2info = entry.payload.c2profileparametersinstances.reduce( (prevn, cur) => {\n const val = !cur.c2profileparameter.crypto_type ? cur.value : {crypto_type: cur.value, enc_key: cur.enc_key_base64, dec_key: cur.dec_key_base64};\n if(cur.c2profile.name in prevn){\n //we just want to add a new entry to the c2profile.name list\n \n return {...prevn, [cur.c2profile.name]: [...prevn[cur.c2profile.name], { name: cur.c2profileparameter.name, value: val } ] }\n }else{\n return {...prevn, [cur.c2profile.name]: [ { name: cur.c2profileparameter.name, value: val } ] }\n }\n }, {});\n let c2array = [];\n for( const [key, value] of Object.entries(c2info)){\n c2array.push({name: key, parameters: value});\n }\n const payloadInfo = {...entry.payload, c2info: c2array, display: entry.payload.filemetum.filename_text + \" - \" + entry.payload.tag, type: \"payload\", payloadOnHostID:entry.id};\n return {...host, payloads: [...host.payloads, payloadInfo]}\n }else{\n //this doesn't match our host, so don't modify\n return host; \n }\n });\n if(!found){\n const c2info = entry.payload.c2profileparametersinstances.reduce( (prevn, cur) => {\n const val = !cur.c2profileparameter.crypto_type ? cur.value : {crypto_type: cur.value, enc_key: cur.enc_key_base64, dec_key: cur.dec_key_base64};\n if(cur.c2profile.name in prevn){\n //we just want to add a new entry to the c2profile.name list\n \n return {...prevn, [cur.c2profile.name]: [...prevn[cur.c2profile.name], { name: cur.c2profileparameter.name, value: val } ] }\n }else{\n return {...prevn, [cur.c2profile.name]: [ { name: cur.c2profileparameter.name, value: val } ] }\n }\n }, {});\n let c2array = [];\n for( const [key, value] of Object.entries(c2info)){\n c2array.push({name: key, parameters: value});\n }\n const payloadInfo = {...entry.payload, c2info: c2array, display: entry.payload.filemetum.filename_text + \" - \" + entry.payload.tag, type: \"payload\", payloadOnHostID:entry.id};\n return [...prevn, {host: entry.host, payloads: [payloadInfo] } ]\n }else{\n return updates;\n }\n }, []);\n // callbacksOrganized has all the information for active callbacks to link to\n // organized has all of the information for payloads on hosts to link to\n // need to merge the two\n const allOrganized = callbacksOrganized.reduce( (prevn, cur) => {\n let hostIndex = prevn.findIndex(o => o.host === cur.host);\n if(hostIndex > -1){\n // need to add cur.payloads to the prev[hostIndex].payloads list\n prevn[hostIndex].payloads = [...prevn[hostIndex].payloads, ...cur.payloads];\n return [...prevn];\n }else{\n return [...prevn, {...cur}];\n }\n }, [...organized]);\n console.log(\"updating choices and payload choices\", allOrganized, agentConnectNewPayloads)\n return [...prev, {...cmd, choices: allOrganized, payload_choices: agentConnectNewPayloads, value: getLinkInfoFromAgentConnect(organized)}];\n case \"PayloadList\":\n let supported_agents = cmd.supported_agents.split(\",\");\n if(supported_agents.indexOf(\"\") !== -1){supported_agents.splice(supported_agents.indexOf(\"\"))}\n const build_requirements = JSON.parse(cmd.supported_agent_build_parameters);\n const payloads = loadedAllPayloadsLoading.payload.reduce( (prevn, payload) => {\n const profiles = payload.payloadc2profiles.reduce( (prevn, profile) => {\n return [...prevn, profile.c2profile.name];\n }, []).join(\",\");\n if(supported_agents.length > 0 && !supported_agents.includes(payload.payloadtype.ptype)){return prevn};\n let matched = true;\n if(payload.payloadtype.ptype in build_requirements){\n //this means we have a filtering condition on our payload\n for(const [key, value] of Object.entries(build_requirements[payload.payloadtype.ptype])){\n payload.buildparameterinstances.forEach( (build_param) => {\n if(build_param.buildparameter.name === key){\n if(build_param.parameter !== value){matched = false}\n }\n });\n }\n }\n if(matched){\n return [...prevn, {...payload, display: payload.filemetum.filename_text + \" - \" + profiles + \" - \" + payload.tag}]\n }else{\n return prevn;\n }\n \n }, []);\n //now filter the payloads based on supported_agents and supported_agent_build_parameters\n if(payloads.length > 0){\n return [...prev, {...cmd, choices: payloads, default_value: payloads[0].uuid, value: payloads[0].uuid}];\n }else{\n return [...prev, {...cmd, choices: payloads, value: null}];\n }\n case \"LinkInfo\":\n const edge_choices = loadedAllEdgesLoading.callbackgraphedge.reduce( (prevn, edge) => {\n if(edge.source.id === edge.destination.id) {return prevn}\n if(edge.direction === 1){\n return [...prevn, {...edge, display: \"Callback \" + edge.source.id + \" --\" + edge.c2profile.name + \"--> Callback \" + edge.destination.id + (edge.end_timestamp === null? \"(Active)\" : \"(Dead at \" + edge.end_timestamp + \")\")}];\n }else if(edge.direction === 2){\n return [...prevn, {...edge, display: \"Callback \" + edge.destination.id + \"-> \" + edge.c2profile.name + \"--> Callback \" + edge.source.id + (edge.end_timestamp === null? \"(Active)\" : \"(Dead at \" + edge.end_timestamp + \")\")}];\n } else{\n return prevn;\n }\n }, []);\n if(edge_choices.length > 0){\n return [...prev, {...cmd, choices: edge_choices, value: getLinkInfoValue(edge_choices)}];\n }else{\n return [...prev, {...cmd, choices: edge_choices, value: {}}];\n }\n default:\n return [...prev, {...cmd}];\n }\n }, [] );\n const sorted = params.sort((a, b) => (a.ui_position > b.ui_position) ? 1 : -1)\n if(sorted.length > 0){\n sorted[0][\"autoFocus\"] = true;\n }\n setParameters(sorted);\n }\n }, [selectedParameterGroup, rawParameters, loadedCommandsLoading, allCommandsLoading, loadedAllEdgesLoading, requiredPieces, loadedAllPayloadsLoading, loadedCredentialsLoading, loadedAllPayloadsOnHostsLoading, props.callback_id, props.choices]);\n const onSubmit = async () => {\n let newFileUUIDs = [];\n let collapsedParameters = {};\n for(const param of parameters){\n switch(param.type){\n case \"String\":\n case \"Boolean\":\n case \"Number\":\n case \"Choice\":\n case \"ChoiceMultiple\":\n case \"Credential-Account\":\n case \"Credential-Realm\":\n case \"Credential-Type\":\n case \"Credential-Credential\":\n case \"AgentConnect\":\n case \"PayloadList\":\n case \"Array\":\n case \"LinkInfo\":\n collapsedParameters[param.name] = param.value;\n break;\n case \"File\":\n setBackdropOpen(true);\n const newUUID = await UploadTaskFile(param.value);\n if(newUUID){\n newFileUUIDs.push(newUUID);\n collapsedParameters[param.name] = newUUID;\n }else{\n setBackdropOpen(false);\n return;\n }\n break;\n case \"Credential-JSON\":\n collapsedParameters[param.name] = {\n account: param.value[\"account\"],\n comment: param.value[\"comment\"],\n credential: param.value[\"credential_text\"],\n realm: param.value[\"realm\"],\n type: param.value[\"type\"]\n };\n break;\n default:\n console.log(\"Unknown parameter type\");\n }\n }\n setBackdropOpen(false);\n props.onSubmit(props.command.cmd, JSON.stringify(collapsedParameters), newFileUUIDs, selectedParameterGroup);\n \n }\n const onAgentConnectAddNewPayloadOnHost = (host, payload) => {\n addPayloadOnHost({variables: {host: host, payload_id: payload} })\n }\n const onAgentConnectRemovePayloadOnHost = (payloadOnHostID) => {\n RemovePayloadOnHost({variables: {payloadOnHostID: payloadOnHostID}})\n }\n const onChange = (name, value, error) => {\n const params = parameters.map( (param) => {\n if(param.name === name){\n return {...param, value: value};\n }else{\n return {...param};\n }\n });\n setParameters(params);\n }\n const onChangeParameterGroup = (event) => {\n setSelectedParameterGroup(event.target.value);\n }\n \n return (\n \n {commandInfo.cmd}'s Parameters\n \n \n \n \n \n Description
{commandInfo.description}

\n \n Requires Admin?
{commandInfo.needs_admin ? \"True\": \"False\"}

\n \n {parameterGroups.length > 1 &&\n \n }\n >\n {\n parameterGroups.map((opt, i) => (\n {opt}\n ))\n }\n \n \n \n }\n
\n \n \n \n \n Parameter\n Value\n \n \n \n {parameters.map( (op) => (\n \n ))}\n \n
\n
\n
\n \n \n \n \n
\n );\n}\n\n","import React, {useRef, useEffect} from 'react';\nimport Button from '@material-ui/core/Button';\nimport DialogActions from '@material-ui/core/DialogActions';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport MenuItem from '@material-ui/core/MenuItem';\nimport FormControl from '@material-ui/core/FormControl';\nimport Select from '@material-ui/core/Select';\nimport InputLabel from '@material-ui/core/InputLabel';\nimport Input from '@material-ui/core/Input';\nimport {useTheme} from '@material-ui/core/styles';\n\nexport function MythicSelectFromListDialog(props) {\n const [options, setOptions] = React.useState([]);\n const [selected, setSelected] = React.useState('');\n const inputRef = useRef(null); \n const theme = useTheme();\n const handleChange = (event) => {\n setSelected(event.target.value);\n };\n const handleSubmit = () => {\n props.onSubmit(selected);\n if(props.dontCloseOnSubmit){\n return;\n }\n props.onClose();\n }\n useEffect( () => {\n //expects options to be an array of dictionaries with a \"display\" field for what gets presented to the user\n const opts = [...props.options];\n setOptions(opts);\n if(opts.length > 0){\n setSelected(opts[0]);\n }else{\n setSelected(\"\");\n }\n }, [props.options]);\n return (\n \n {props.title}\n \n \n \n Options\n }\n >\n \n None\n \n {options.map( (opt) => (\n {opt[props.display]}\n ) )}\n \n \n \n \n \n \n \n \n \n );\n}\n\n","import React from 'react';\nimport Button from '@material-ui/core/Button';\nimport DialogActions from '@material-ui/core/DialogActions';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport { MobileStepper } from '@material-ui/core';\nimport KeyboardArrowRight from '@material-ui/icons/KeyboardArrowRight';\nimport KeyboardArrowLeft from '@material-ui/icons/KeyboardArrowLeft';\nimport {useTheme} from '@material-ui/core/styles';\n\nexport function ResponseDisplayScreenshotModal({onClose, images, startIndex}) {\n const [zoom, setZoom] = React.useState(false);\n const theme = useTheme();\n const [activeStep, setActiveStep] = React.useState(startIndex ? startIndex : 0);\n const maxSteps = images?.length || 1;\n const toggleZoom = () => {\n setZoom(!zoom);\n }\n const handleNext = () => {\n setActiveStep((prevActiveStep) => prevActiveStep + 1);\n };\n \n const handleBack = () => {\n setActiveStep((prevActiveStep) => prevActiveStep - 1);\n };\n return (\n \n \n
\n \n
\n
\n \n Next\n {}\n \n }\n backButton={\n \n }\n />\n \n \n \n
\n );\n}\n\n","import React, {useState} from 'react';\nimport {useQuery, gql} from '@apollo/client';\nimport {snackActions} from '../../utilities/Snackbar';\nimport Button from '@material-ui/core/Button';\nimport DialogActions from '@material-ui/core/DialogActions';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport Table from '@material-ui/core/Table';\nimport TableBody from '@material-ui/core/TableBody';\nimport TableCell from '@material-ui/core/TableCell';\nimport TableContainer from '@material-ui/core/TableContainer';\nimport TableHead from '@material-ui/core/TableHead';\nimport TableRow from '@material-ui/core/TableRow';\nimport Paper from '@material-ui/core/Paper';\nimport { Typography } from '@material-ui/core';\nimport {useTheme} from '@material-ui/core/styles';\n\nexport const allTokenDataFragment = gql`\nfragment allTokenData on token {\n id\n Address\n AppContainer\n AppContainerNumber\n AppContainerSid\n AppId\n AppModelPolicies\n AppModelPolicyDictionary\n AttributesFlags\n AuditPolicy\n AuthenticationId_id\n BnoIsolationPrefix\n CanSynchronize\n Capabilities\n CreationTime\n DefaultDacl\n DenyOnlyGroups\n DeviceClaimAttributes\n DeviceGroups\n Elevated\n ElevationType\n EnabledGroups\n ExpirationTime\n Filtered\n Flags\n FullPath\n GrantedAccess\n GrantedAccessGeneric\n GrantedAccessMask\n GroupCount\n Groups\n Handle\n HandleReferenceCount\n HasRestrictions\n ImpersonationLevel\n Inherit\n IntegrityLevel\n IntegrityLevelSid\n IsClosed\n IsContainer\n IsPseudoToken\n IsRestricted\n IsSandbox\n LogonSid\n LowPrivilegeAppContainer\n MandatoryPolicy\n ModifiedId\n Name\n NoChildProcess\n NotLow\n NtType\n NtTypeName\n Origin\n Owner\n PackageFullName\n PackageIdentity\n PackageName\n PointerReferenceCount\n PrimaryGroup\n PrivateNamespace\n Privileges\n ProcessUniqueAttribute\n ProtectFromClose\n Restricted\n RestrictedDeviceClaimAttributes\n RestrictedDeviceGroups\n RestrictedSids\n RestrictedSidsCount\n RestrictedUserClaimAttributes\n SandboxInert\n Sddl\n SecurityAttributes\n SecurityDescriptor\n SessionId\n Source\n ThreadID\n TokenId\n TokenType\n TrustLevel\n UIAccess\n User\n UserClaimAttributes\n VirtualizationAllowed\n VirtualizationEnabled\n WriteRestricted\n task_id\n logonsession {\n id\n LogonId\n UserName\n LogonDomain\n LogonType\n SessionId\n Sid\n LogonTime\n LogonServer\n DnsDomainName\n Upn\n UserFlags\n LastSuccessfulLogon\n LastFailedLogon\n FailedAttemptCountSinceLastSuccessfulLogon\n LogonScript\n ProfilePath\n HomeDirectory\n HomeDirectoryDrive\n LogoffTime\n KickOffTime\n PasswordLastSet\n PasswordCanChange\n PasswordMustChange\n task_id\n authenticationpackages {\n id\n Name\n task_id\n }\n }\n}\n`;\nconst getTokenInfo = gql`\n${allTokenDataFragment}\nquery getTokenInfo ($token_id: Int!) {\n token_by_pk(id: $token_id) {\n ...allTokenData\n }\n}\n`;\n\nexport function TaskTokenDialog(props) {\n const theme = useTheme();\n const [tokenData, setTokenData] = useState([]);\n const [logonsessionData, setLogonSessionData] = useState([]);\n const [authenticationData, setAuthenticationData] = useState([]);\n const tokenKeys = [\n \"Address\",\n \"AppContainer\",\n \"AppContainerNumber\",\n \"AppContainerSid\",\n \"AppId\",\n \"AppModelPolicies\",\n \"AppModelPolicyDictionary\",\n \"AttributesFlags\",\n \"AuditPolicy\",\n \"AuthenticationId_id\",\n \"BnoIsolationPrefix\",\n \"CanSynchronize\",\n \"Capabilities\",\n \"CreationTime\",\n \"DefaultDacl\",\n \"DenyOnlyGroups\",\n \"DeviceClaimAttributes\",\n \"DeviceGroups\",\n \"Elevated\",\n \"ElevationType\",\n \"EnabledGroups\",\n \"ExpirationTime\",\n \"Filtered\",\n \"Flags\",\n \"FullPath\",\n \"GrantedAccess\",\n \"GrantedAccessGeneric\",\n \"GrantedAccessMask\",\n \"GroupCount\",\n \"Groups\",\n \"Handle\",\n \"HandleReferenceCount\",\n \"HasRestrictions\",\n \"ImpersonationLevel\",\n \"Inherit\",\n \"IntegrityLevel\",\n \"IntegrityLevelSid\",\n \"IsClosed\",\n \"IsContainer\",\n \"IsPseudoToken\",\n \"IsRestricted\",\n \"IsSandbox\",\n \"LogonSid\",\n \"LowPrivilegeAppContainer\",\n \"MandatoryPolicy\",\n \"ModifiedId\",\n \"Name\",\n \"NoChildProcess\",\n \"NotLow\",\n \"NtType\",\n \"NtTypeName\",\n \"Origin\",\n \"Owner\",\n \"PackageFullName\",\n \"PackageIdentity\",\n \"PackageName\",\n \"PointerReferenceCount\",\n \"PrimaryGroup\",\n \"PrivateNamespace\",\n \"Privileges\",\n \"ProcessUniqueAttribute\",\n \"ProtectFromClose\",\n \"Restricted\",\n \"RestrictedDeviceClaimAttributes\",\n \"RestrictedDeviceGroups\",\n \"RestrictedSids\",\n \"RestrictedSidsCount\",\n \"RestrictedUserClaimAttributes\",\n \"SandboxInert\",\n \"Sddl\",\n \"SecurityAttributes\",\n \"SecurityDescriptor\",\n \"SessionId\",\n \"Source\",\n \"ThreadID\",\n \"TokenId\",\n \"TokenType\",\n \"TrustLevel\",\n \"UIAccess\",\n \"User\",\n \"UserClaimAttributes\",\n \"VirtualizationAllowed\",\n \"VirtualizationEnabled\",\n \"WriteRestricted\",\n \"task_id\"\n ]\n const logonsessionKeys = [\n \"LogonId\",\n \"UserName\",\n \"LogonDomain\",\n \"LogonType\",\n \"SessionId\",\n \"Sid\",\n \"LogonTime\",\n \"LogonServer\",\n \"DnsDomainName\",\n \"Upn\",\n \"UserFlags\",\n \"LastSuccessfulLogon\",\n \"LastFailedLogon\",\n \"FailedAttemptCountSinceLastSuccessfulLogon\",\n \"LogonScript\",\n \"ProfilePath\",\n \"HomeDirectory\",\n \"HomeDirectoryDrive\",\n \"LogoffTime\",\n \"KickOffTime\",\n \"PasswordLastSet\",\n \"PasswordCanChange\",\n \"PasswordMustChange\",\n \"task_id\"\n ]\n const authenticationpackageKeys = [\n \"Name\",\n \"task_id\"\n ]\n useQuery(getTokenInfo, {\n variables: {token_id: props.token_id},\n onCompleted: data => {\n if(data.token_by_pk !== null){\n setTokenData(data.token_by_pk);\n const reducedTokenData = tokenKeys.reduce( (prev, key) => {\n if(data.token_by_pk[key] !== undefined && data.token_by_pk[key] !== null && data.token_by_pk[key] !== \"\"){\n return [...prev, {\"name\": key, \"value\": data.token_by_pk[key]}]\n }\n else{\n return [...prev];\n }\n }, []);\n setTokenData(reducedTokenData);\n if(data.token_by_pk.logonsession !== null){\n const reducedLogonSessionData = logonsessionKeys.reduce( (prev, key) => {\n if(data.token_by_pk.logonsession[key] !== undefined && data.token_by_pk.logonsession[key] !== null && data.token_by_pk.logonsession[key] !== \"\"){\n return [...prev, {\"name\": key, \"value\": data.token_by_pk.logonsession[key]}]\n }\n else{\n return [...prev];\n }\n }, []);\n setLogonSessionData(reducedLogonSessionData);\n if (data.token_by_pk.logonsession.authenticationpackages.length > 0){\n const reducedAuthenticationData = data.token_by_pk.logonsession.authenticationpackages.map( (pkg) => {\n const packageData = authenticationpackageKeys.reduce( (prev, key) => {\n if(pkg[key] !== undefined && pkg[key] !== null && pkg[key] !== \"\"){\n return [...prev, {\"name\": key, \"value\": pkg[key]}];\n }else{\n return [...prev];\n }\n }, []);\n return packageData;\n })\n \n setAuthenticationData(reducedAuthenticationData);\n }\n }\n \n }\n },\n onError: data => {\n snackActions.error(data)\n },\n fetchPolicy: \"network-only\"\n });\n return (\n \n Token Information\n \n \n \n Token Data\n \n \n \n \n \n \n \n Token Property\n Token Value\n \n \n \n {tokenData.map( (element, index) => (\n \n {element.name}\n {element.value === true ? (\"True\") : (element.value === false ? (\"False\") : (element.value) ) }\n \n ))}\n \n
\n
\n
\n \n {logonsessionData.length > 0 &&\n \n \n \n Associated Logon Session Data\n \n \n \n \n \n \n \n \n Logon Session Property\n Logon Session Value\n \n \n \n {logonsessionData.map( (element, index) => (\n \n {element.name}\n {element.value === true ? (\"True\") : (element.value === false ? (\"False\") : (element.value) ) }\n \n ))}\n \n
\n
\n
\n
\n }\n {authenticationData.map( authpkg => (\n \n \n \n Associated Authentication Package\n \n \n \n \n \n \n \n \n Authentication Package Property\n Authentication Package Value\n \n \n \n {authpkg.map( (element, index) => (\n \n {element.name}\n {element.value === true ? (\"True\") : (element.value === false ? (\"False\") : (element.value) ) }\n \n ))}\n \n
\n
\n
\n
\n ))\n }\n
\n \n \n \n
\n );\n}\n\n","import React, { useEffect } from 'react';\nimport AceEditor from 'react-ace';\nimport 'ace-builds/src-noconflict/mode-json';\nimport 'ace-builds/src-noconflict/theme-monokai';\nimport 'ace-builds/src-noconflict/theme-xcode';\nimport {useTheme} from '@material-ui/core/styles';\n\nexport const ResponseDisplayPlaintext = (props) =>{\n const theme = useTheme();\n const [plaintextView, setPlaintextView] = React.useState(String(props.plaintext));\n useEffect( () => {\n try{\n const newPlaintext = JSON.stringify(JSON.parse(String(props.plaintext)), null, 4);\n setPlaintextView(newPlaintext);\n }catch(error){\n //console.log(\"trying to JSONify plaintext error\", error);\n setPlaintextView(String(props.plaintext));\n }\n }, [props.plaintext])\n return (\n \n )\n \n}","import { useSnackbar } from 'notistack'\n\nlet useSnackbarRef = null;\n\nexport const SnackbarUtilsConfigurator = () => {\n useSnackbarRef = useSnackbar();\n\n return null;\n};\n\nexport const snackActions = {\n success(msg, options) {\n this.toast(msg, 'success', options)\n },\n warning(msg, options) {\n this.toast(msg, 'warning', options)\n },\n info(msg, options) {\n this.toast(msg, 'info', options)\n },\n error(msg, options) {\n this.toast(msg, 'error', options)\n },\n dismiss(){\n useSnackbarRef.closeSnackbar();\n },\n toast(msg, variant = 'default', options) {\n useSnackbarRef.enqueueSnackbar(msg, { variant, ...options })\n }\n}\n","import React, {useEffect} from 'react';\nimport { copyStringToClipboard } from '../../utilities/Clipboard';\nimport GetAppIcon from '@material-ui/icons/GetApp';\nimport FileCopyOutlinedIcon from '@material-ui/icons/FileCopyOutlined';\nimport {ResponseDisplay} from './ResponseDisplay';\nimport RateReviewOutlinedIcon from '@material-ui/icons/RateReviewOutlined';\nimport { MythicDialog } from '../../MythicComponents/MythicDialog';\nimport {TaskCommentDialog} from './TaskCommentDialog';\nimport {TaskTagDialog} from './TaskTagDialog';\nimport {useTheme} from '@material-ui/core/styles';\nimport LockIcon from '@material-ui/icons/Lock';\nimport LockOpenIcon from '@material-ui/icons/LockOpen';\nimport {TaskOpsecDialog} from './TaskOpsecDialog';\nimport {TaskViewParametersDialog} from './TaskViewParametersDialog';\nimport {TaskViewStdoutStderrDialog} from './TaskViewStdoutStderrDialog';\nimport {snackActions} from '../../utilities/Snackbar';\nimport LocalOfferOutlinedIcon from '@material-ui/icons/LocalOfferOutlined';\nimport CodeIcon from '@material-ui/icons/Code';\nimport KeyboardIcon from '@material-ui/icons/Keyboard';\nimport ConfirmationNumberIcon from '@material-ui/icons/ConfirmationNumber';\nimport {TaskTokenDialog} from './TaskTokenDialog';\nimport Grid from '@material-ui/core/Grid';\nimport ReplayIcon from '@material-ui/icons/Replay';\nimport {gql, useMutation, useLazyQuery } from '@apollo/client';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faBook} from '@fortawesome/free-solid-svg-icons';\nimport { faExternalLinkAlt, faExpandArrowsAlt } from '@fortawesome/free-solid-svg-icons';\nimport SearchIcon from '@material-ui/icons/Search';\nimport SpeedDial from '@material-ui/lab/SpeedDial';\nimport SpeedDialIcon from '@material-ui/lab/SpeedDialIcon';\nimport SpeedDialAction from '@material-ui/lab/SpeedDialAction';\nimport { makeStyles } from '@material-ui/core/styles';\nimport { Backdrop } from '@material-ui/core';\n\nconst ReissueTaskMutationGQL = gql`\nmutation reissueTaskMutation($task_id: Int!){\n reissue_task(task_id: $task_id){\n status\n error\n }\n}\n`;\nconst ReissueTaskHandlerMutationGQL = gql`\nmutation reissueTaskHandlerMutation($task_id: Int!){\n reissue_task_handler(task_id: $task_id){\n status\n error\n }\n}\n`;\nconst getAllResponsesLazyQuery = gql`\nquery subResponsesQuery($task_id: Int!) {\n response(where: {task_id: {_eq: $task_id}}, order_by: {id: asc}) {\n id\n response: response_text\n }\n}`;\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n transform: 'translateZ(0px)',\n flexGrow: 1,\n },\n speedDial: {\n position: 'absolute',\n '&.MuiSpeedDial-directionUp, &.MuiSpeedDial-directionLeft': {\n top: theme.spacing(2),\n right: theme.spacing(2),\n },\n '&.MuiSpeedDial-directionDown, &.MuiSpeedDial-directionRight': {\n bottom: theme.spacing(1),\n left: theme.spacing(2),\n },\n zIndex: 3\n },\n tooltip: {\n backgroundColor: theme.palette.background.contrast,\n color: theme.palette.text.contrast,\n boxShadow: theme.shadows[1],\n fontSize: 13\n },\n arrow: {\n color: theme.palette.background.contrast,\n }\n}));\n\nexport const TaskDisplayContainer = ({task}) => {\n const [viewBrowserScript, setViewBrowserScript] = React.useState(true);\n const [commandID, setCommandID] = React.useState(0);\n const [searchOutput, setSearchOutput] = React.useState(false);\n const [selectAllOutput, setSelectAllOutput] = React.useState(false);\n useEffect( () => {\n setCommandID(task.command === null ? 0 : task.command.id);\n }, [task.command]);\n const toggleViewBrowserScript = React.useCallback( () => {\n setViewBrowserScript(!viewBrowserScript);\n }, [viewBrowserScript]);\n const toggleSelectAllOutput = React.useCallback( () => {\n setSelectAllOutput(!selectAllOutput);\n }, [selectAllOutput]);\n const toggleOpenSearch = React.useCallback( () => {\n setSearchOutput(!searchOutput);\n }, [searchOutput]);\n \n return (\n \n \n \n \n \n \n \n \n\t\t\t\t \n )\n}\n\n\n\nconst SpeedDialDisplay = ({toggleViewBrowserScript, toggleSelectAllOutput, toggleOpenSearch, taskData, viewAllOutput}) => {\n const tooltipPlacement = \"top\";\n const theme = useTheme();\n const classes = useStyles();\n const [task, setTask] = React.useState(taskData || {});\n const [openSpeedDial, setOpenSpeedDial] = React.useState(false);\n const [openTaskTagDialog, setOpenTaskTagDialog] = React.useState(false);\n const [openCommentDialog, setOpenCommentDialog] = React.useState(false);\n const [openParametersDialog, setOpenParametersDialog] = React.useState(false);\n const [openTokenDialog, setOpenTokenDialog] = React.useState(false);\n const [openStdoutStderrDialog, setOpenStdoutStderrDialog] = React.useState(false);\n const [openOpsecDialog, setOpenOpsecDialog] = React.useState(false);\n const [downloadResponses] = useLazyQuery(getAllResponsesLazyQuery, {\n fetchPolicy: \"network-only\",\n onCompleted: (data) => {\n const output = data.response.reduce( (prev, cur) => {\n return prev + Buffer.from(cur.response, \"base64\");\n }, \"\");\n const dataBlob = new Blob([output], {type: 'application/octet-stream'});\n const ele = document.getElementById(\"download_config\");\n if(ele !== null){\n ele.href = URL.createObjectURL(dataBlob);\n ele.download = \"task_\" + task.id + \".txt\";\n ele.click();\n }else{\n const element = document.createElement(\"a\");\n element.id = \"download_config\";\n element.href = URL.createObjectURL(dataBlob);\n element.download = \"task_\" + task.id + \".txt\";\n document.body.appendChild(element);\n element.click();\n }\n },\n onError: (data) => {\n\n }\n });\n React.useEffect( () => {\n setTask(taskData);\n }, [taskData.id, taskData.token, taskData.original_params, taskData.opsec_pre_blocked, taskData.opsec_pre_bypassed, taskData.opsec_post_blocked, taskData.opsec_post_bypassed])\n const onDownloadResponses = () => {\n downloadResponses({variables: {task_id: task.id}});\n setOpenSpeedDial(false);\n };\n const copyToClipboard = () => {\n let result = copyStringToClipboard(task.original_params);\n if(result){\n snackActions.success(\"Copied text!\");\n }else{\n snackActions.error(\"Failed to copy text\");\n }\n setOpenSpeedDial(false);\n };\n const [reissueTask] = useMutation(ReissueTaskMutationGQL, {\n onCompleted: data => {\n if(data.reissue_task.status === \"success\"){\n snackActions.success(\"Successfully re-issued task to Mythic\");\n }else{\n snackActions.error(\"Failed to re-issue task to Mythic: \" + data.reissue_task.error);\n }\n }, \n onError: data => {\n console.log(data);\n snackActions.error(\"Failed to re-issue task: \" + data);\n }\n });\n const [reissueTaskHandler] = useMutation(ReissueTaskHandlerMutationGQL, {\n onCompleted: data => {\n if(data.reissue_task_handler.status === \"success\"){\n snackActions.success(\"Successfully resubmitted task for handling\");\n }else{\n snackActions.warning(\"Failed to resubmit task for handling: \" + data.reissue_task_handler.error);\n }\n \n },\n onError: data => {\n console.log(data);\n snackActions.error(\"Error resubmitting task for handling: \" + data);\n }\n });\n \n const onReissueTask = () => {\n reissueTask({variables: {task_id: task.id}});\n }\n const onReissueTaskHandler = () => {\n reissueTaskHandler({variables: {task_id: task.id}});\n }\n return (\n \n {setOpenSpeedDial(false);}} style={{zIndex: 2, position: \"absolute\"}}/>\n {openTaskTagDialog ?\n ({setOpenTaskTagDialog(false);}} \n innerDialog={{setOpenTaskTagDialog(false);}} />}\n />) : (null)}\n {openCommentDialog ?\n ({setOpenCommentDialog(false);}} \n innerDialog={{setOpenCommentDialog(false);}} />}\n />) : (null)\n }\n {openParametersDialog ? \n ({setOpenParametersDialog(false);}} \n innerDialog={{setOpenParametersDialog(false);}} />}\n />) : (null)\n }\n {openTokenDialog ? \n ({setOpenTokenDialog(false);}} \n innerDialog={{setOpenTokenDialog(false);}} />}\n />) : (null)\n }\n {openOpsecDialog ?\n ({setOpenOpsecDialog(false);}} \n innerDialog={{setOpenOpsecDialog(false);}} />}\n />) : (null)\n }\n \n {openStdoutStderrDialog ? \n ({setOpenStdoutStderrDialog(false);}} \n innerDialog={{setOpenStdoutStderrDialog(false);}} />}\n />) : (null)\n }\n }\n onClick={()=>{setOpenSpeedDial(!openSpeedDial)}}\n FabProps={{ color: \"primary\", size: \"small\" }}\n open={openSpeedDial}\n direction=\"right\"\n >\n }\n arrow\n TooltipClasses={{tooltip: classes.tooltip, arrow: classes.arrow}}\n tooltipPlacement={tooltipPlacement}\n tooltipTitle={\"Toggle BrowserScript\"}\n onClick={() => {toggleViewBrowserScript();setOpenSpeedDial(false);}}\n />\n }\n arrow\n TooltipClasses={{tooltip: classes.tooltip, arrow: classes.arrow}}\n tooltipPlacement={tooltipPlacement}\n tooltipTitle={viewAllOutput ? \"View Paginated Output\" : \"View All Output\"}\n onClick={() => {toggleSelectAllOutput();setOpenSpeedDial(false);}}\n />\n }\n arrow\n TooltipClasses={{tooltip: classes.tooltip, arrow: classes.arrow}}\n tooltipPlacement={tooltipPlacement}\n tooltipTitle={\"Search Output\"}\n onClick={() => {toggleOpenSearch();setOpenSpeedDial(false);}}\n />\n }\n arrow\n TooltipClasses={{tooltip: classes.tooltip, arrow: classes.arrow}}\n tooltipPlacement={tooltipPlacement}\n tooltipTitle={\"Download output\"}\n onClick={onDownloadResponses}\n />\n }\n arrow\n TooltipClasses={{tooltip: classes.tooltip, arrow: classes.arrow}}\n tooltipPlacement={tooltipPlacement}\n tooltipTitle={\"Edit Tags\"}\n onClick={()=>{setOpenTaskTagDialog(true);setOpenSpeedDial(false);}}\n />\n }\n arrow\n TooltipClasses={{tooltip: classes.tooltip, arrow: classes.arrow}}\n tooltipPlacement={tooltipPlacement}\n tooltipTitle={\"Open Task in New Window\"}\n onClick={()=> {window.open('/new/task/' + task.id, \"_blank\")}}\n />\n }\n arrow\n TooltipClasses={{tooltip: classes.tooltip, arrow: classes.arrow}}\n tooltipPlacement={tooltipPlacement}\n tooltipTitle={\"Copy original params to clipboard\"}\n onClick={copyToClipboard}\n />\n }\n arrow\n TooltipClasses={{tooltip: classes.tooltip, arrow: classes.arrow}}\n tooltipPlacement={tooltipPlacement}\n tooltipTitle={\"Edit Comment\"}\n onClick={()=>{setOpenCommentDialog(true);setOpenSpeedDial(false);}}\n />\n }\n arrow\n TooltipClasses={{tooltip: classes.tooltip, arrow: classes.arrow}}\n tooltipPlacement={tooltipPlacement}\n tooltipTitle={\"View All Parameters\"}\n onClick={()=>{setOpenParametersDialog(true);setOpenSpeedDial(false);}}\n />\n }\n arrow\n TooltipClasses={{tooltip: classes.tooltip, arrow: classes.arrow}}\n tooltipPlacement={tooltipPlacement}\n tooltipTitle={\"View Stdout/Stderr of Task\"}\n onClick={()=>{setOpenStdoutStderrDialog(true);setOpenSpeedDial(false);}}\n />\n {task.opsec_pre_blocked === null ? (\n null\n ) : ( task.opsec_pre_bypassed === false ? (\n }\n arrow\n TooltipClasses={{tooltip: classes.tooltip, arrow: classes.arrow}}\n tooltipPlacement={tooltipPlacement}\n tooltipTitle={\"Submit OPSEC PreCheck Bypass Request\"}\n onClick={()=>{setOpenOpsecDialog(true);setOpenSpeedDial(false);}}\n />\n ): (\n }\n arrow\n TooltipClasses={{tooltip: classes.tooltip, arrow: classes.arrow}}\n tooltipPlacement={tooltipPlacement}\n tooltipTitle={\"View OPSEC PreCheck Data\"}\n onClick={()=>{setOpenOpsecDialog(true);setOpenSpeedDial(false);}}\n />\n ) \n ) \n }\n {task.opsec_post_blocked === null ? (\n null\n ) : ( task.opsec_post_bypassed === false ? (\n }\n arrow\n TooltipClasses={{tooltip: classes.tooltip, arrow: classes.arrow}}\n tooltipPlacement={tooltipPlacement}\n tooltipTitle={\"Submit OPSEC PostCheck Bypass Request\"}\n onClick={()=>{setOpenOpsecDialog(true);setOpenSpeedDial(false);}}\n />\n ): (\n }\n arrow\n TooltipClasses={{tooltip: classes.tooltip, arrow: classes.arrow}}\n tooltipPlacement={tooltipPlacement}\n tooltipTitle={\"View OPSEC PostCheck Data\"}\n onClick={()=>{setOpenOpsecDialog(true);setOpenSpeedDial(false);}}\n />\n ) \n ) \n }\n {task.token === null ? (\n null\n ) : (\n }\n arrow\n TooltipClasses={{tooltip: classes.tooltip, arrow: classes.arrow}}\n tooltipPlacement={tooltipPlacement}\n tooltipTitle={\"View Token Information\"}\n onClick={()=>{setOpenTokenDialog(true);setOpenSpeedDial(false);}}\n />\n )}\n {task.status.toLowerCase().includes(\"error: container\") ? (\n }\n arrow\n TooltipClasses={{tooltip: classes.tooltip, arrow: classes.arrow}}\n tooltipPlacement={tooltipPlacement}\n tooltipTitle={\"Resubmit Tasking\"}\n onClick={onReissueTask}\n />\n ) : (null)}\n {task.status.toLowerCase().includes(\"error: task\") ? (\n }\n arrow\n TooltipClasses={{tooltip: classes.tooltip, arrow: classes.arrow}}\n tooltipPlacement={tooltipPlacement}\n tooltipTitle={\"Resubmit Task Handler\"}\n onClick={onReissueTaskHandler}\n />\n ):(null)}\n \n \n \n \n )\n}","import React, {useEffect} from 'react';\nimport {useSubscription, gql, useLazyQuery } from '@apollo/client';\nimport { useReactiveVar } from '@apollo/client';\nimport { meState } from '../../../cache';\nimport { snackActions } from '../../utilities/Snackbar';\nimport {ResponseDisplayScreenshot} from './ResponseDisplayScreenshot';\nimport {ResponseDisplayPlaintext} from './ResponseDisplayPlaintext';\nimport {ResponseDisplayTable} from './ResponseDisplayTable';\nimport {ResponseDisplayDownload} from './ResponseDisplayDownload';\nimport {ResponseDisplaySearch} from './ResponseDisplaySearch';\nimport MythicTextField from '../../MythicComponents/MythicTextField';\nimport SearchIcon from '@material-ui/icons/Search';\nimport {useTheme} from '@material-ui/core/styles';\nimport { IconButton } from '@material-ui/core';\nimport { MythicStyledTooltip } from '../../MythicComponents/MythicStyledTooltip';\nimport Pagination from '@material-ui/lab/Pagination';\nimport { Typography } from '@material-ui/core';\nimport { Backdrop } from '@material-ui/core';\nimport { CircularProgress } from '@material-ui/core';\n\n\nconst subResponsesQuery = gql`\nsubscription subResponsesQuery($task_id: Int!, $fetchLimit: Int!) {\n response(where: {task_id: {_eq: $task_id}}, limit: $fetchLimit, order_by: {id: asc}) {\n id\n response: response_text\n }\n}`;\nconst getResponsesLazyQuery = gql`\nquery subResponsesQuery($task_id: Int!, $fetchLimit: Int!, $offset: Int!, $search: String!) {\n response(where: {task_id: {_eq: $task_id}, response_escape: {_ilike: $search}}, limit: $fetchLimit, offset: $offset, order_by: {id: asc}) {\n id\n response: response_text\n }\n response_aggregate(where: {task_id: {_eq: $task_id}, response_escape: {_ilike: $search}}){\n aggregate{\n count\n }\n }\n}`;\nconst getMaxCountQuery = gql`\nsubscription responseTotalCountSubscription($task_id: Int!){\n response_aggregate(where: {task_id: {_eq: $task_id}}){\n aggregate{\n count\n }\n }\n}\n`;\nconst getAllResponsesLazyQuery = gql`\nquery subResponsesQuery($task_id: Int!, $search: String!) {\n response(where: {task_id: {_eq: $task_id}, response_escape: {_ilike: $search}}, order_by: {id: asc}) {\n id\n response: response_text\n }\n response_aggregate(where: {task_id: {_eq: $task_id}, response_escape: {_ilike: $search}}){\n aggregate{\n count\n }\n }\n}`;\nconst taskScript = gql`\nquery getBrowserScriptsQuery($command_id: Int!, $operator_id: Int!, $operation_id: Int!){\n browserscript(where: {active: {_eq: true}, command_id: {_eq: $command_id}, for_new_ui: {_eq: true}, operator_id: {_eq: $operator_id}}) {\n script\n id\n }\n browserscriptoperation(where: {operation_id: {_eq: $operation_id}, browserscript: {active: {_eq: true}, command_id: {_eq: $command_id}, for_new_ui: {_eq: true}}}) {\n browserscript {\n script\n id\n }\n }\n}\n\n`;\nconst fetchLimit = 10;\n\nexport const ResponseDisplay = (props) =>{\n const [output, setOutput] = React.useState(\"\");\n const [rawResponses, setRawResponses] = React.useState([]);\n const highestFetched = React.useRef(0);\n const [search, setSearch] = React.useState(\"\");\n const [totalCount, setTotalCount] = React.useState(0);\n const oldSelectAllOutput = React.useRef(props.selectAllOutput);\n const [openBackdrop, setOpenBackdrop] = React.useState(true);\n const mountedRef = React.useRef(true);\n const [fetchMoreResponses] = useLazyQuery(getResponsesLazyQuery, {\n fetchPolicy: \"network-only\",\n onCompleted: (data) => {\n const responses = data.response.reduce( (prev, cur) => {\n return prev + Buffer.from(cur.response, \"base64\");\n }, \"\");\n const maxID = data.response.reduce( (prev, cur) => {\n if(cur.id > prev){\n return cur.id;\n }\n return prev;\n }, highestFetched.current);\n highestFetched.current = maxID;\n setOutput(responses);\n const responseArray = data.response.map( r => String(Buffer.from(r.response, \"base64\")));\n setRawResponses(responseArray);\n if(!props.selectAllOutput){\n setTotalCount(data.response_aggregate.aggregate.count);\n }\n setOpenBackdrop(false);\n },\n onError: (data) => {\n snackActions.error(\"Failed to fetch more responses: \" + data)\n }\n });\n const [fetchAllResponses] = useLazyQuery(getAllResponsesLazyQuery, {\n fetchPolicy: \"network-only\",\n onCompleted: (data) => {\n const responses = data.response.reduce( (prev, cur) => {\n return prev + Buffer.from(cur.response, \"base64\");\n }, \"\");\n const maxID = data.response.reduce( (prev, cur) => {\n if(cur.id > prev){\n return cur.id;\n }\n return prev;\n }, highestFetched.current);\n highestFetched.current = maxID;\n setOutput(responses);\n const responseArray = data.response.map( r => String(Buffer.from(r.response, \"base64\")));\n setRawResponses(responseArray);\n setTotalCount(1);\n setOpenBackdrop(false);\n },\n onError: (data) => {\n\n }\n });\n React.useEffect( () => {\n return() => {\n mountedRef.current = false;\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [])\n React.useEffect( () => {\n if(props.selectAllOutput !== oldSelectAllOutput.current){\n if(props.selectAllOutput){\n setOpenBackdrop(true);\n if(search === \"\"){\n fetchAllResponses({variables: {task_id: props.task.id, search: \"%%\"}})\n }else{\n fetchAllResponses({variables: {task_id: props.task.id, search: \"%\" + search + \"%\"}})\n }\n }\n }\n }, [props.selectAllOutput, oldSelectAllOutput])\n const subscriptionDataCallback = React.useCallback( ({subscriptionData}) => {\n console.log(\"fetchLimit\", fetchLimit, \"totalCount\", totalCount);\n if(!mountedRef.current){\n return null; // we're unmounted, so just exit\n }\n if(totalCount >= fetchLimit){\n // we won't display it \n console.log(\"got more than we can see currently\", totalCount);\n return;\n }\n // we still have some room to view more, but only room for fetchLimit - totalFetched.current\n setOpenBackdrop(false);\n if(subscriptionData.data.response.length > 0){\n const newResponses = subscriptionData.data.response.filter( r => r.id > highestFetched.current);\n const newerResponses = newResponses.map( (r) => { return {...r, response: String(Buffer.from(r.response,\"base64\"))}});\n newerResponses.sort( (a,b) => a.id > b.id ? 1 : -1);\n let outputResponses = output;\n let rawResponseArray = [...rawResponses];\n let highestFetchedId = highestFetched.current;\n let totalFetchedSoFar = totalCount;\n for(let i = 0; i < newerResponses.length; i++){\n if(totalFetchedSoFar < fetchLimit){\n outputResponses += newerResponses[i][\"response\"];\n rawResponseArray.push(newerResponses[i][\"response\"]);\n highestFetchedId = newerResponses[i][\"id\"];\n totalFetchedSoFar += 1;\n }else{\n break;\n }\n }\n setOutput(outputResponses);\n setRawResponses(rawResponseArray);\n highestFetched.current = highestFetchedId;\n } \n }, [setOutput, output, setRawResponses, highestFetched.current, rawResponses, totalCount]);\n \n useSubscription(subResponsesQuery, {variables: {task_id: props.task.id, fetchLimit: fetchLimit}, fetchPolicy: \"network_only\",\n onSubscriptionData: subscriptionDataCallback\n });\n \n const onSubmitPageChange = (currentPage) => {\n if(!props.selectAllOutput){\n setOpenBackdrop(true);\n if(search === undefined || search === \"\"){\n fetchMoreResponses({variables: {task_id: props.task.id, \n fetchLimit: fetchLimit, \n offset: fetchLimit * (currentPage - 1),\n search: \"%_%\"\n }})\n }else{ \n fetchMoreResponses({variables: {task_id: props.task.id, \n fetchLimit: fetchLimit, \n offset: fetchLimit * (currentPage - 1),\n search: \"%\" + search + \"%\"\n }})\n } \n }\n \n }\n const onSubmitSearch = React.useCallback( (newSearch) => {\n setSearch(newSearch);\n setOpenBackdrop(true);\n if(newSearch === undefined || newSearch === \"\"){\n if(props.selectAllOutput){\n fetchAllResponses({variables: {task_id: props.task.id, search: \"%%\"}})\n }else{\n fetchMoreResponses({variables: {task_id: props.task.id, \n fetchLimit: fetchLimit, \n offset: 0,\n search: \"%_%\"\n }})\n }\n \n }else{ \n if(props.selectAllOutput){\n fetchAllResponses({variables: {task_id: props.task.id, search: \"%\" + newSearch + \"%\"}})\n }else{\n fetchMoreResponses({variables: {task_id: props.task.id, \n fetchLimit: fetchLimit, \n offset: 0,\n search: \"%\" + newSearch + \"%\"\n }})\n }\n \n }\n }, []);\n \n return (\n \n {setOpenBackdrop(false);}} style={{zIndex: 2, position: \"absolute\"}}>\n \n \n {props.searchOutput &&\n \n }\n
\n \n
\n \n
\n )\n \n}\n\nconst PaginationBar = ({selectAllOutput, totalCount, onSubmitPageChange, task, search, parentMountedRef}) => {\n const [localTotalCount, setTotalcount] = React.useState(0);\n const [maxCount, setMaxCount] = React.useState(0);\n const [currentPage, setCurrentPage] = React.useState(1);\n const mountedRef = React.useRef(true);\n const subscriptionMaxCountCallback = React.useCallback( ({subscriptionData}) => {\n if(!mountedRef.current || !parentMountedRef.current){\n return;\n }\n setMaxCount(subscriptionData.data.response_aggregate.aggregate.count);\n }, [maxCount]);\n useSubscription(getMaxCountQuery, {variables: {task_id: task.id},\n onSubscriptionData: subscriptionMaxCountCallback\n })\n const onChangePage = (event, value) => {\n if(!mountedRef.current){\n return;\n }\n setCurrentPage(value);\n onSubmitPageChange(value);\n };\n React.useEffect( () => {\n return() => {\n mountedRef.current = false;\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n },[])\n React.useEffect( () => {\n if(!mountedRef.current || !parentMountedRef.current){\n return;\n }\n if(selectAllOutput){\n setTotalcount(1);\n setCurrentPage(1);\n }else if(search === \"\"){\n setTotalcount(maxCount);\n }else{\n setTotalcount(totalCount);\n }\n }, [totalCount, maxCount, search, selectAllOutput]);\n \n return (\n
\n \n Total Results: {localTotalCount}\n
\n )\n}\n\nconst SearchBar = ({onSubmitSearch}) => {\n const theme = useTheme();\n const [search, setSearch] = React.useState(\"\");\n const onSubmitLocalSearch = () => {\n onSubmitSearch(search);\n }\n return (\n
\n setSearch(v)} placeholder=\"Search Output of This Task\" name=\"Search...\"\n InputProps={{\n endAdornment: \n \n \n \n \n ,\n style: {padding: 0}\n }}\n >\n
\n \n )\n}\n\nconst ResponseDisplayComponent = ({rawResponses, viewBrowserScript, output, command_id, task, search}) => {\n const [localViewBrowserScript, setViewBrowserScript] = React.useState(true);\n const [browserScriptData, setBrowserScriptData] = React.useState({});\n const script = React.useRef();\n const me = useReactiveVar(meState);\n useEffect( () => {\n if(script.current !== undefined){\n try{\n let res = script.current(task, rawResponses);\n setBrowserScriptData(filterOutput(res));\n }catch(error){\n setViewBrowserScript(false);\n console.log(error);\n }\n \n }\n }, [rawResponses]);\n const filterOutput = (scriptData) => {\n let copied = {...scriptData};\n if(search === \"\"){\n return scriptData;\n }\n if(scriptData[\"plaintext\"] !== undefined){\n if(!scriptData[\"plaintext\"].includes(search)){\n copied[\"plaintext\"] = \"\";\n }\n }\n if(scriptData[\"table\"] !== undefined){\n if(scriptData[\"table\"].length > 0){\n const tableUpdates = scriptData.table.map( t => {\n const filteredRows = t.rows.filter( r => {\n let foundMatch = false;\n for (const entry of Object.values(r)) {\n if(entry[\"plaintext\"] !== undefined){\n if(String(entry[\"plaintext\"]).includes(search)){foundMatch = true;}\n }\n if(entry[\"button\"] !== undefined && entry[\"button\"][\"value\"] !== undefined){\n if(JSON.stringify(entry[\"button\"][\"value\"]).includes(search)){foundMatch = true;}\n }\n }\n return foundMatch;\n });\n return {...t, rows: filteredRows};\n });\n copied[\"table\"] = tableUpdates;\n }\n }\n return copied;\n }\n useEffect( () => {\n if(script.current === undefined){\n setViewBrowserScript(false);\n }else{\n setViewBrowserScript(viewBrowserScript);\n if(viewBrowserScript && script.current !== undefined){\n try{\n let res = script.current(task, rawResponses);\n setBrowserScriptData(filterOutput(res));\n }catch(error){\n setViewBrowserScript(false);\n }\n \n }\n }\n }, [viewBrowserScript]);\n const [fetchScripts] = useLazyQuery(taskScript, {\n fetchPolicy: \"network-only\",\n onCompleted: (data) => {\n if(data.browserscriptoperation.length > 0){\n try{\n let unb64script = Buffer.from(data.browserscriptoperation[0][\"script\"], \"base64\");\n let fun = Function('\"use strict\";return(' + unb64script + ')')();\n script.current = fun;\n setViewBrowserScript(true);\n let res = script.current(task, rawResponses);\n setBrowserScriptData(filterOutput(res));\n }catch(error){\n snackActions.error(error.toString());\n console.log(error);\n setViewBrowserScript(false);\n }\n \n }else if(data.browserscript.length > 0){\n try{\n let unb64script = Buffer.from(data.browserscript[0][\"script\"], \"base64\");\n let fun = Function('\"use strict\";return(' + unb64script + ')')();\n script.current = fun;\n setViewBrowserScript(true);\n //console.log(rawResponses);\n let res = script.current(task, rawResponses);\n setBrowserScriptData(filterOutput(res));\n }catch(error){\n snackActions.error(error.toString());\n console.log(error);\n setViewBrowserScript(false);\n }\n }else{\n setViewBrowserScript(false);\n }\n },\n onError: (data) => {\n console.log(data);\n }\n });\n useEffect( () => {\n if(command_id !== undefined){\n fetchScripts({variables: {command_id: command_id, operator_id: me.user.user_id, operation_id: me.user.current_operation_id}});\n }\n }, [command_id]);\n return (\n localViewBrowserScript && browserScriptData ? (\n \n {browserScriptData?.screenshot?.map( (scr, index) => (\n \n )) || null\n }\n {browserScriptData?.plaintext &&\n \n }\n {browserScriptData?.table?.map( (table, index) => (\n \n )) || null\n }\n {browserScriptData?.download?.map( (dl, index) => (\n \n )) || null\n }\n {browserScriptData?.search?.map( (s, index) => (\n \n )) || null\n }\n \n ) : (\n \n )\n )\n}","import React from 'react';\nimport {Button} from '@material-ui/core';\nimport {ResponseDisplayScreenshotModal} from './ResponseDisplayScreenshotModal';\nimport { MythicDialog } from '../../MythicComponents/MythicDialog';\nimport Tooltip from '@material-ui/core/Tooltip';\nimport { makeStyles } from '@material-ui/core/styles';\n\nconst useStyles = makeStyles((theme) => ({\n tooltip: {\n backgroundColor: theme.palette.background.contrast,\n color: theme.palette.text.contrast,\n boxShadow: theme.shadows[1],\n fontSize: 13\n },\n arrow: {\n color: theme.palette.background.contrast,\n }\n}));\n\nexport const ResponseDisplayScreenshot = (props) =>{\n const [openScreenshot, setOpenScreenshot] = React.useState(false);\n const classes = useStyles();\n const now = (new Date()).toUTCString();\n const clickOpenScreenshot = () => {\n setOpenScreenshot(true);\n }\n\n return (\n \n {openScreenshot &&\n {setOpenScreenshot(false);}} \n innerDialog={{setOpenScreenshot(false);}} />}\n />\n }\n
\n        {props?.plaintext || \"\"}\n      
\n \n \n \n
\n ) \n}","import { IconButton } from '@material-ui/core';\nimport CloseIcon from '@material-ui/icons/Close';\nimport Tab from '@material-ui/core/Tab';\nimport React from 'react';\n\nexport function MythicTabPanel(props) {\n const { children, value, index, maxHeight, tabInfo, getCallbackData, queryParams, changeSearchParam, ...other } =\n props;\n const style =\n props.style === undefined\n ? {\n display: value === index ? 'flex' : 'none',\n flexDirection: 'column',\n flexGrow: 1,\n width: '100%',\n maxWidth: '100%',\n overflowY: \"auto\",\n }\n : props.style;\n return (\n