← Back
Editing: index-legacy462.js
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var n,r={},o=Object.prototype,a=o.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",s=c.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(n){f=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o=e&&e.prototype instanceof w?e:w,a=Object.create(o.prototype),c=new F(r||[]);return i(a,"_invoke",{value:O(t,n,c)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=p;var v="suspendedStart",d="suspendedYield",y="executing",m="completed",g={};function w(){}function x(){}function b(){}var k={};f(k,u,(function(){return this}));var _=Object.getPrototypeOf,E=_&&_(_(P([])));E&&E!==o&&a.call(E,u)&&(k=E);var L=b.prototype=w.prototype=Object.create(k);function j(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function C(e,n){function r(o,i,c,u){var l=h(e[o],e,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==t(f)&&a.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):n.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return r("throw",t,c,u)}))}u(l.arg)}var o;i(this,"_invoke",{value:function(t,e){function a(){return new n((function(n,o){r(t,e,n,o)}))}return o=o?o.then(a,a):a()}})}function O(t,e,r){var o=v;return function(a,i){if(o===y)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:n,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var u=S(c,r);if(u){if(u===g)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===v)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=y;var l=h(t,e,r);if("normal"===l.type){if(o=r.done?m:d,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=m,r.method="throw",r.arg=l.arg)}}}function S(t,e){var r=e.method,o=t.iterator[r];if(o===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=n,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=h(o,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,g;var i=a.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,g):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function t(){for(;++o<e.length;)if(a.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=n,t.done=!0,t};return i.next=i}}throw new TypeError(t(e)+" is not iterable")}return x.prototype=b,i(L,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:x,configurable:!0}),x.displayName=f(b,s,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,f(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},r.awrap=function(t){return{__await:t}},j(C.prototype),f(C.prototype,l,(function(){return this})),r.AsyncIterator=C,r.async=function(t,e,n,o,a){void 0===a&&(a=Promise);var i=new C(p(t,e,n,o),a);return r.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},j(L),f(L,s,"Generator"),f(L,u,(function(){return this})),f(L,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},r.values=P,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&a.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return c.type="throw",c.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=a.call(i,"catchLoc"),l=a.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),g}},r}function n(t,e,n,r,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function r(t){return function(){var e=this,r=arguments;return new Promise((function(o,a){var i=t.apply(e,r);function c(t){n(i,o,a,c,u,"next",t)}function u(t){n(i,o,a,c,u,"throw",t)}c(void 0)}))}}System.register(["./index-legacy103.js?v=VERSION_NUMBER","./utils-lib-legacy.js?v=VERSION_NUMBER","./index-legacy140.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./ace-legacy.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER"],(function(t,n){"use strict";var o,a,i,c,u,l,s,f,p,h,v,d,y,m,g,w,x,b,k,_,E,L,j,C,O,S,T,I,F,P,N,q,G,V;return{setters:[function(t){o=t._},function(t){a=t.p,i=t.K,c=t.bT,u=t.gx,l=t.cj,s=t._,f=t.l,p=t.a0,h=t.j,v=t.ah,d=t.gC,y=t.b},function(t){m=t.B},function(t){g=t.c,w=t.r,x=t.k,b=t.p,k=t.q,_=t.v,E=t.y,L=t.x,j=t.e,C=t.C,O=t.M,S=t.B,T=t.z,I=t.A,F=t.P,P=t.D,N=t.a$},function(t){q=t.a,G=t.u,V=t.c},null,null,null],execute:function(){var n={class:"p-[2rem]"},A={class:"title-box flex items-center justify-between"},z={class:"flex items-center"},D={key:0,class:"scan-icon relative h-[8rem] w-[8rem]"},B={class:"scan-title flex flex-col items-start ml-[2rem]"},M={class:"font-bold text-[1.8rem] text-[#444]"},U={class:"text-danger"},Y={class:"text-[1.2rem] text-[#666] mt-[1.2rem]"},H={class:"flex items-center ml-[1.2rem]"},J={class:"p-[2rem]"};t("default",g({__name:"index",props:{compData:{default:function(){}}},setup:function(t){var g,K,$,Q,R,W,X=t,Z=y(),tt=w("loading"),et=w(!1),nt=w(""),rt={},ot=null,at=x({scanInfo:"",scanCount:0,scanningCount:0,scanningText:"进行中"}),it=w(),ct=w([]),ut=function(){var t=r(e().mark((function t(n,o,a,i){var c,u,l;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=i.label,u=i.value,l=function(){var t=r(e().mark((function t(n,r){var o,a;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=n.path,t.t0=u,t.next="delete"===t.t0?4:9;break;case 4:return t.next=6,d({path:o,type:"File"});case 6:return(a=t.sent).status&&(ct.value=ct.value.filter((function(t){return t.path!==o}))),t.abrupt("return",a);case 9:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),t.next=4,n({title:"批量".concat(c,"文件"),content:"批量".concat(c,"已选的文件,是否继续操作!"),column:[{label:"文件名",prop:"name"},V()],onConfirm:function(){var t=r(e().mark((function t(){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o(l);case 2:return t.abrupt("return",!1);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()});case 4:case"end":return t.stop()}}),t)})));return function(e,n,r,o){return t.apply(this,arguments)}}(),lt=[{label:"删除",value:"delete",event:ut}],st=function(t,e){var n;if("token error"===e.data)return Z.error("token error"),void(null===(n=ot)||void 0===n||n.close());var r,o=JSON.parse(e.data);(at.scanInfo=o.info,o.is_count&&(at.scanCount=o.count,at.scanningCount=o.is_count),o.path&&ct.value.push({path:o.path,name:o.path.substring(o.path.lastIndexOf("/")+1)}),o.result)&&(tt.value="success",at.scanningText="已完成",at.scanInfo="扫描已完成",at.scanningCount=at.scanCount,o.result.length>0&&(tt.value="danger"),null===(r=ot)||void 0===r||r.close())},ft=function(){var t=r(e().mark((function t(){var n;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:ct.value=[],ot=v({route:"/ws_panel",onMessage:st}),tt.value="loading",at.scanningText="进行中",null===(n=ot)||void 0===n||n.send({def_name:"ws_webshell_check",mod_name:"files",path:X.compData.row.path,ws_callback:"1"});case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),pt=function(){var t=r(e().mark((function t(){var n;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a({title:"提示",content:"查杀正在进行中,确定要停止扫描吗?",icon:"question-filled"});case 2:at.scanningText="已取消",tt.value="success",null===(n=ot)||void 0===n||n.close();case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),ht=function(){var t=r(e().mark((function t(){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i({request:c({path:rt.path,data:nt.value,encoding:"utf-8"}),message:!0});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),vt=function(){var t=r(e().mark((function t(n){var r=arguments;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=1,t.next=4,a({title:"提示",content:"确定删除文件【"+n.path+"】?删除后文件将移至回收站,是否继续操作?",icon:"question-filled",type:"calc"});case 4:i({request:d({path:n.path,type:"File"}),message:!0,success:function(t){t.status&&(ct.value=ct.value.filter((function(t){return t.path!==n.path})))}}),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(1);case 10:case"end":return t.stop()}}),t,null,[[1,7]])})));return function(e){return t.apply(this,arguments)}}(),dt=(g={openFileEvent:(W=r(e().mark((function t(n){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i({request:u({path:n.path}),success:function(t){nt.value=t.data.data,et.value=!0,rt=n}});case 1:case"end":return t.stop()}}),t)}))),function(t){return W.apply(this,arguments)}),falseAlarmEvent:(R=r(e().mark((function t(n){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,a({title:"提示",content:"是否确定提交误报反馈",icon:"question-filled",type:"calc"});case 3:i({request:l({filename:n.path}),message:!0,success:function(){ct.value=ct.value.filter((function(t){return t.path!==n.path}))}}),t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0);case 9:case"end":return t.stop()}}),t,null,[[0,6]])}))),function(t){return R.apply(this,arguments)}),deleteEvent:vt},K=g.openFileEvent,$=g.falseAlarmEvent,Q=g.deleteEvent,[q(),{label:"文件名",prop:"name",width:160},{label:"文件路径",prop:"path"},G([{onClick:$,title:"误报"},{onClick:K,title:"打开文件",width:70},{onClick:Q,title:"删除"}])]);return b((function(){ft()})),function(t,e){var r=s,a=P,i=N,c=f,u=p,l=m,v=h,d=o;return k(),_("div",n,[E("div",A,[E("div",z,["loading"==L(tt)?(k(),_("div",D,[e[3]||(e[3]=E("div",{class:"animate-spin absolute top-0 border-primary border-b-2 rounded-full h-full w-full bg-[#cccccc00]"},null,-1)),j(r,{icon:"scanning-scan",size:60,color:"#20a53a",class:"absolute top-0 left-0 right-0 bottom-0 m-[auto] h-[8rem] w-[6rem]"})])):C("",!0),"success"==L(tt)?(k(),O(r,{key:1,icon:"scanning-success",size:60,color:"#20a53a"})):C("",!0),"danger"==L(tt)?(k(),O(r,{key:2,icon:"scanning-danger",size:60,color:"#ef0808"})):C("",!0),E("div",B,[E("span",M,[S(" 查杀"+T(L(at).scanningText)+" ,已扫描文件 "+T(L(at).scanningCount)+" /"+T(L(at).scanCount)+" 个;发现木马文件 ",1),E("span",U,T(L(ct).length),1),e[4]||(e[4]=S(" 个 "))]),E("span",Y,T(L(at).scanInfo.length>70?"..."+L(at).scanInfo.substring(L(at).scanInfo.length-70):L(at).scanInfo),1)])]),E("div",H,["loading"===L(tt)?(k(),O(a,{key:0,type:"default",onClick:pt},{default:I((function(){return e[5]||(e[5]=[S(" 取消 ")])})),_:1})):C("",!0),"loading"!=L(tt)?(k(),O(a,{key:1,type:"primary",onClick:e[0]||(e[0]=function(t){return ft()})},{default:I((function(){return e[6]||(e[6]=[S(" 重新查杀 ")])})),_:1})):C("",!0)])]),j(i),j(d,null,{content:I((function(){return[j(c,{ref_key:"safeTable",ref:it,column:L(dt),data:L(ct)},null,8,["column","data"])]})),"footer-left":I((function(){return[j(u,{"table-ref":L(it),options:lt},null,8,["table-ref"])]})),popup:I((function(){return[j(v,{title:"在线编辑",showFooter:"",modelValue:L(et),"onUpdate:modelValue":e[2]||(e[2]=function(t){return F(et)?et.value=t:null}),area:70,onConfirm:ht},{default:I((function(){return[E("div",J,[j(l,{modelValue:L(nt),"onUpdate:modelValue":e[1]||(e[1]=function(t){return F(nt)?nt.value=t:null}),class:"!h-[40rem]"},null,8,["modelValue"])])]})),_:1},8,["modelValue"])]})),_:1})])}}}))}}}))}();
Save File
Cancel