← Back
Editing: index-legacy44.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,i=o.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",s=u.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 h(t,e,n,r){var o=e&&e.prototype instanceof w?e:w,i=Object.create(o.prototype),u=new N(r||[]);return a(i,"_invoke",{value:O(t,n,u)}),i}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var d="suspendedStart",y="suspendedYield",v="executing",m="completed",g={};function w(){}function b(){}function x(){}var L={};f(L,c,(function(){return this}));var _=Object.getPrototypeOf,j=_&&_(_(T([])));j&&j!==o&&i.call(j,c)&&(L=j);var E=x.prototype=w.prototype=Object.create(L);function S(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function I(e,n){function r(o,a,u,c){var l=p(e[o],e,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==t(f)&&i.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):n.resolve(f).then((function(t){s.value=t,u(s)}),(function(t){return r("throw",t,u,c)}))}c(l.arg)}var o;a(this,"_invoke",{value:function(t,e){function i(){return new n((function(n,o){r(t,e,n,o)}))}return o=o?o.then(i,i):i()}})}function O(t,e,r){var o=d;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:n,done:!0}}for(r.method=i,r.arg=a;;){var u=r.delegate;if(u){var c=k(u,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var l=p(t,e,r);if("normal"===l.type){if(o=r.done?m:y,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=m,r.method="throw",r.arg=l.arg)}}}function k(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,k(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=p(o,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,g;var a=i.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,g):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function P(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 G(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function t(){for(;++o<e.length;)if(i.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=n,t.done=!0,t};return a.next=a}}throw new TypeError(t(e)+" is not iterable")}return b.prototype=x,a(E,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:b,configurable:!0}),b.displayName=f(x,s,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,f(t,s,"GeneratorFunction")),t.prototype=Object.create(E),t},r.awrap=function(t){return{__await:t}},S(I.prototype),f(I.prototype,l,(function(){return this})),r.AsyncIterator=I,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new I(h(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),f(E,s,"Generator"),f(E,c,(function(){return this})),f(E,"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=T,N.prototype={constructor:N,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(G),!t)for(var e in this)"t"===e.charAt(0)&&i.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 u.type="throw",u.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.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&&i.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 a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},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),G(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;G(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),g}},r}function n(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function r(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function u(t){n(a,o,i,u,c,"next",t)}function c(t){n(a,o,i,u,c,"throw",t)}u(void 0)}))}}System.register(["./utils-lib-legacy.js?v=VERSION_NUMBER","./index-legacy117.js?v=VERSION_NUMBER","./firewall-legacy.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./useMethod-legacy6.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./useStore-legacy5.js?v=VERSION_NUMBER"],(function(t,n){"use strict";var o,i,a,u,c,l,s,f,h,p,d,y,v,m,g,w,b,x,L,_,j,E,S,I,O,k,P,G;return{setters:[function(t){o=t.K,i=t.u,a=t.L,u=t.al},function(t){c=t._},function(t){l=t.m,s=t.n},function(t){f=t.c,h=t.U,p=t.b4,d=t.w,y=t.G,v=t.H,m=t.x,g=t.q,w=t.v,b=t.y,x=t.e,L=t.B,_=t.J,j=t.z,E=t.al,S=t.r,I=t.Z,O=t.p,k=t.P,P=t.M},function(t){G=t.d},null,null,null,null,null],execute:function(){var N={class:"tab-header-operate"},T=f({__name:"index",props:{data:{default:{isIntrusion:!1,num:0,days:0}}},emits:["refresh"],setup:function(t,n){var i=n.emit,a=t,u=i,c=h(!1),s=p({isIntrusion:!1,num:0,days:0}),f=function(){var t=r(e().mark((function t(n){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o({loading:"正在"+(n?"开启":"关闭")+"入侵防御,请稍后...",request:l(n),message:!0});case 2:u("refresh");case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return d((function(){return a.data}),(function(t){s.isIntrusion=t.open,s.num=t.totla_times,s.days=t.totla_days}),{immediate:!0}),function(t,e){var n=E,r=y("bt-loading");return v((g(),w("div",N,[e[2]||(e[2]=b("div",{class:"mr-4"},"入侵防御开关",-1)),b("div",null,[x(n,{modelValue:m(s).isIntrusion,"onUpdate:modelValue":e[0]||(e[0]=function(t){return m(s).isIntrusion=t}),width:36,onChange:f},null,8,["modelValue"])]),e[3]||(e[3]=b("div",{class:"bg-[#ccc] w-[1px] h-2rem mx-16px"},null,-1)),b("div",null,[e[1]||(e[1]=L(" 总拦截次数: ")),b("span",{class:_(m(s).num>0?"text-danger":"")},j(m(s).num),3)]),e[4]||(e[4]=b("div",{class:"bg-[#ccc] w-[1px] h-2rem mx-16px"},null,-1)),b("div",null,"保护天数: "+j(m(s).days),1)])),[[r,m(c)]])}}}),V={key:0,class:"flex flex-col"};t("default",f({__name:"index",setup:function(t){i();var l=h("overview"),f=S(),d=h({}),y=p({title:"入侵防御-功能介绍",ps:"原防提权, 防御大多数的入侵提权攻击造成的挂马和被挖矿,有效拦截webshell执行提权,并及时告警通知",source:105,desc:["违规词内容检测","网页内容修改检测","输出检测报告"],tabImgs:[{title:"概览",imgSrc:"https://www.bt.cn/Public/new/plugin/introduce/firewall/intrusion_1.png"},{title:"进程白名单",imgSrc:"https://www.bt.cn/Public/new/plugin/introduce/firewall/intrusion_2.png"},{title:"操作日志",imgSrc:"https://www.bt.cn/Public/new/plugin/introduce/firewall/intrusion_3.png"}],isInstall:!1,productSrc:"https://www.bt.cn/bbs/thread-50998-1-1.html",pluginInfo:{}}),v=[{label:"概览",name:"overview",render:function(){return a((function(){return n.import("./index-legacy292.js?v=VERSION_NUMBER")}),void 0,n.meta.url)}},{label:"进程白名单",name:"white",render:function(){return a((function(){return n.import("./index-legacy293.js?v=VERSION_NUMBER")}),void 0,n.meta.url)}},{label:"操作日志",name:"operationLog",render:function(){return a((function(){return n.import("./index-legacy294.js?v=VERSION_NUMBER")}),void 0,n.meta.url)}}],b=function(t){"overview"===t&&L()},L=function(){var t=r(e().mark((function t(){var n,r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o({loading:"正在获取入侵防御配置信息,请稍后...",request:s()});case 2:n=t.sent,r=n.data,f.value=r;case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return I("infoData",f),I("getIntrusionInfo",L),O(r(e().mark((function t(){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,G("bt_security");case 2:d.value=t.sent,y.pluginInfo=d.value,d.value.setup&&d.value.endtime>-1&&L();case 5:case"end":return t.stop()}}),t)})))),function(t,e){var n,r=u,o=c;return g(),w("div",null,[null!==(n=m(d))&&void 0!==n&&n.setup&&m(d).endtime>-1?(g(),w("div",V,[x(T,{data:m(f),onRefresh:L},null,8,["data"]),x(r,{type:"card",modelValue:m(l),"onUpdate:modelValue":e[0]||(e[0]=function(t){return k(l)?l.value=t:null}),options:v,onChange:b},null,8,["modelValue"])])):(g(),P(o,{key:1,data:m(y),class:"px-[20%] my-[8rem]"},null,8,["data"]))])}}}))}}}))}();
Save File
Cancel