← Back
Editing: index-legacy213.js
!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return n};var r,n={},a=Object.prototype,o=a.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",u=c.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(r){f=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var a=t&&t.prototype instanceof b?t:b,o=Object.create(a.prototype),c=new P(n||[]);return i(o,"_invoke",{value:M(e,r,c)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}n.wrap=h;var m="suspendedStart",p="suspendedYield",v="executing",y="completed",g={};function b(){}function w(){}function x(){}var S={};f(S,s,(function(){return this}));var _=Object.getPrototypeOf,k=_&&_(_(D([])));k&&k!==a&&o.call(k,s)&&(S=k);var j=x.prototype=b.prototype=Object.create(S);function L(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function C(t,r){function n(a,i,c,s){var l=d(t[a],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==e(f)&&o.call(f,"__await")?r.resolve(f.__await).then((function(e){n("next",e,c,s)}),(function(e){n("throw",e,c,s)})):r.resolve(f).then((function(e){u.value=e,c(u)}),(function(e){return n("throw",e,c,s)}))}s(l.arg)}var a;i(this,"_invoke",{value:function(e,t){function o(){return new r((function(r,a){n(e,t,r,a)}))}return a=a?a.then(o,o):o()}})}function M(e,t,n){var a=m;return function(o,i){if(a===v)throw Error("Generator is already running");if(a===y){if("throw"===o)throw i;return{value:r,done:!0}}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var s=E(c,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===m)throw a=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=v;var l=d(e,t,n);if("normal"===l.type){if(a=n.done?y:p,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=y,n.method="throw",n.arg=l.arg)}}}function E(e,t){var n=t.method,a=e.iterator[n];if(a===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=r,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=d(a,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,g;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,g):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,i=function e(){for(;++a<t.length;)if(o.call(t,a))return e.value=t[a],e.done=!1,e;return e.value=r,e.done=!0,e};return i.next=i}}throw new TypeError(e(t)+" is not iterable")}return w.prototype=x,i(j,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,u,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,f(e,u,"GeneratorFunction")),e.prototype=Object.create(j),e},n.awrap=function(e){return{__await:e}},L(C.prototype),f(C.prototype,l,(function(){return this})),n.AsyncIterator=C,n.async=function(e,t,r,a,o){void 0===o&&(o=Promise);var i=new C(h(e,t,r,a),o);return n.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},L(j),f(j,u,"Generator"),f(j,s,(function(){return this})),f(j,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},n.values=D,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,a){return c.type="throw",c.arg=e,t.next=n,a&&(t.method="next",t.arg=r),!!a}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;O(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:D(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),g}},n}function r(e,t,r,n,a,o,i){try{var c=e[o](i),s=c.value}catch(e){return void r(e)}c.done?t(s):Promise.resolve(s).then(n,a)}System.register(["./utils-lib-legacy.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./firewall-legacy.js?v=VERSION_NUMBER","./useController-legacy5.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./site-legacy.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER","./useStore-legacy4.js?v=VERSION_NUMBER","./useController-legacy6.js?v=VERSION_NUMBER","./useMethod-legacy5.js?v=VERSION_NUMBER"],(function(e,n){"use strict";var a,o,i,c,s,l,u,f,h,d,m,p,v,y,g,b,w,x,S,_,k,j,L,C,M,E,T,O,P,D,B,N,z,F,G,H,I,A;return{setters:[function(e){a=e.u,o=e.K,i=e.R,c=e.L,s=e.n,l=e._,u=e.c,f=e.d,h=e.e},function(e){d=e.c,m=e.s,p=e.t,v=e.r,y=e.U,g=e.q,b=e.v,w=e.y,x=e.x,S=e.C,_=e.e,k=e.M,j=e.z,L=e.A,C=e.B,M=e.K,E=e.J,T=e.b7,O=e.F,P=e.a_,D=e.P,B=e.D,N=e.a$,z=e.bw,F=e.ba,G=e.bv},function(e){H=e.p},function(e){I=e.S},function(e){A=e.p},null,null,null,null,null,null,null],execute:function(){var Z={class:"p-[2rem]"},q={class:"head mb-[4rem]"},K={class:"scan-header flex flex-row flex-wrap items-center justify-between"},V={class:"flex flex-row flex-wrap justify-center items-center"},Y={key:0,class:"relative scan-header-cont"},U={key:0,class:"animate-spin absolute top-0 border-primary border-b-2 rounded-full h-full w-full bg-#cccccc00"},W={class:"scan-header-cont flex justify-between flex-col px-[2rem]"},J=["innerHTML"],R={class:"scan-subtitle text-[1.6rem] mt-[1.2rem]"},X={class:"scan-header-cont justify-end relative"},$={class:"text-[1.5rem]"},Q={class:"content"},ee={key:0,class:"info"},te={class:"webedit-con flex items-center justify-center"},re={class:"thumbnail-introduce mt-[0rem]"},ne={key:1,class:"scan"},ae={key:0,class:"scan-success border-[0.1rem] p-[2rem] h-[49rem] border-[#e8e8e8] flex items-center justify-center"},oe={class:"flex flex-column items-center"},ie={key:1,class:"scan-dangerous"},ce={class:"flex items-center"},se={class:"w-[26rem] flex items-center justify-start"},le={class:"ml-[1.2rem]"},ue={class:"flex items-center justify-between w-full"},fe={class:"flex items-center ml-[1.2rem]"},he={class:"text-[#999] ml-[1.2rem]"},de={class:"bg-[#f6f6f6] text-[#999] p-[2rem] ml-[1.2rem]"},me={class:"mt-[1.2rem] ml-[2rem]"},pe={class:"flex items-center"},ve=d({__name:"index",props:{compData:{default:function(){return{isSiteModule:!1}}}},setup:function(e){var h,d,ve,ye,ge=e,be=m(I()).scanData,we=a().payment,xe=p(we.value).authType,Se=v(!0),_e=v(!1),ke=v({scanTitle:"立即进行漏洞扫描,确保您的网站安全。",scanTime:"您还未进行漏洞扫描!",scanCheckButton:"立即扫描"}),je=v(["1"]),Le=y([]),Ce={4:["danger","严重"],3:["warning","高危"],2:["info","中危"],1:["success","低危"]},Me=v("success"),Ee=v(!1),Te=function(){var e,a=(e=t().mark((function e(){var r,a,s,l,u,f;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("ltd"===xe.value){e.next=2;break}return e.abrupt("return",A({sourceId:19}));case 2:return Me.value="loading",ke.value.scanTitle="正在扫描中,请稍后...",e.prev=4,e.next=7,o({request:H(),loading:Ee});case 7:if(r=e.sent,a=r.data,ke.value.scanTitle="扫描完成",ke.value.scanTime="扫描时间:".concat(i(a.time)),ke.value.scanCheckButton="重新检测",Se.value=!1,a.info.length?(_e.value=!1,Le.value=a.info,Me.value="danger",ke.value.scanCheckButton="重新检测",ke.value.scanTitle="全部【".concat(a.site_num,"个】网站存在风险项<span class='text-danger'>").concat(a.loophole_num,"</span>个")):(_e.value=!0,ke.value.scanTitle="当前网站没有风险项"),!1===(null==a?void 0:a.status)){e.next=25;break}e.t0=!0,e.next=e.t0===ge.compData.isSiteModule?18:25;break;case 18:return e.next=20,c((function(){return n.import("./useController-legacy5.js?v=VERSION_NUMBER").then((function(e){return e.w}))}),void 0,n.meta.url);case 20:return s=e.sent,l=s.useSitePhpStore,u=l(),f=u.scanData,Object.assign(f.value,a),e.abrupt("break",25);case 25:e.next=31;break;case 27:e.prev=27,e.t1=e.catch(4),Me.value="success";case 31:return e.prev=31,e.finish(31);case 33:case"end":return e.stop()}}),e,null,[[4,27,31,33]])})),function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function c(e){r(i,a,o,c,s,"next",e)}function s(e){r(i,a,o,c,s,"throw",e)}c(void 0)}))});return function(){return a.apply(this,arguments)}}(),Oe=function(){return s({title:"设置自动扫描",area:54,component:function(){return c((function(){return n.import("./index-legacy457.js?v=VERSION_NUMBER")}),void 0,n.meta.url)},showFooter:!0})};return h=be.value,d=h.loophole_num,ve=h.site_num,ye=h.time,ge.compData.isSiteModule&&(be.value.loophole_num>0?(Me.value="danger",ke.value.scanTitle="<span class='text-danger'>".concat(d,"</span>个高危网站漏洞待处理! 总扫描网站数量").concat(ve,"个"),ke.value.scanTime="上一次扫描时间:".concat(i(ye)),ke.value.scanCheckButton="立即查看"):(ke.value.scanTitle="未扫描到网站漏洞,总扫描网站数量".concat(ve,"个"),ke.value.scanTime="上一次扫描时间:".concat(i(ye)),ke.value.scanCheckButton="重新检测",Me.value="success")),function(e,t){var r=l,n=u,a=B,o=N,i=f,c=F,s=G,h=z;return g(),b("div",Z,[w("div",q,[w("div",K,[w("div",V,["loading"==x(Me)?(g(),b("div",Y,[x(Ee)?(g(),b("div",U)):S("",!0),_(r,{icon:"scanning-scan",size:60,color:"#20a53a"})])):S("",!0),"success"==x(Me)?(g(),k(r,{key:1,icon:"scanning-success",size:80,color:"#20a53a"})):S("",!0),"danger"==x(Me)?(g(),k(r,{key:2,icon:"scanning-danger",size:80,color:"#ef0808"})):S("",!0),w("div",W,[w("div",{class:"scan-title text-[2rem] font-bold",innerHTML:x(ke).scanTitle},null,8,J),w("div",R,j(x(ke).scanTime),1)])]),w("div",X,[_(n,{class:"btlink setScanAlarm absolute top-[6rem] right-1rem",onClick:Oe},{default:L((function(){return t[1]||(t[1]=[C(" 自动扫描>> ")])})),_:1}),_(a,{class:"scan-btn h-[4rem] w-[10rem]",type:"loading"==x(Me)?"default":"primary",size:"large",onClick:Te},{default:L((function(){return[w("span",$,j(x(ke).scanCheckButton),1)]})),_:1},8,["type"])])])]),_(o,{class:"!mt-0"}),w("div",Q,[x(Se)?(g(),b("div",ee,[w("div",te,[_(i,{style:M(e.compData.isSiteModule?"width:40rem":""),src:e.compData.isSiteModule?"/preview/site_scanning.png":"/firewall/safe_detect_scanning.png",class:E(e.compData.isSiteModule?"!w-[34rem] mr-[4rem]":"max-w-[90rem] mr-[4rem]")},null,8,["style","src","class"]),w("div",re,[t[3]||(t[3]=w("span",{class:"text-[1.8rem] font-bold"},"漏洞扫描工具介绍:",-1)),w("ul",{class:E(["block leading-[3rem] mx-[2rem] list-square mt-[2rem]",e.compData.isSiteModule?"text-[1.2rem]":"text-[1.6rem]"])},t[2]||(t[2]=[T("<li data-v-fb3e28ca> 可识别多款开源CMS程序,支持如下: <br data-v-fb3e28ca> 迅睿CMS、pbootcms、苹果CMS、eyoucms、 <br data-v-fb3e28ca> 海洋CMS、ThinkCMF、zfaka、dedecms、 <br data-v-fb3e28ca> MetInfo、emlog、帝国CMS、discuz、 <br data-v-fb3e28ca> Thinkphp、Wordpress、Z-Blog、极致CMS、 <br data-v-fb3e28ca> ShopXO、HYBBS、ECShop、SchoolCMS、 <br data-v-fb3e28ca> phpcms、likeshop、iCMS、WellCMS、 <br data-v-fb3e28ca> chanzhiEPS、PHPOK、LaySNS、骑士CMS、 <br data-v-fb3e28ca> openSNS、齐博CMS、ZZZCMS、prestashop、 <br data-v-fb3e28ca> ThinkphpSHOP、DouPHP、cmseasy、 <br data-v-fb3e28ca> piwigo、phpwind、行云海CMS </li><li data-v-fb3e28ca>可扫描网站中存在的漏洞</li><li data-v-fb3e28ca>提供修复/提供付费解决方案</li>",3)]),2)])])])):(g(),b("div",ne,[x(_e)?(g(),b("div",ae,[w("div",oe,[_(i,{src:"/firewall/secure.png",class:"w-[34.0rem] h-[30.1rem]"}),t[4]||(t[4]=w("span",{class:"absolute mt-[10.5rem] text-[2rem] leading-[0.14rem]"}," 当前处于【安全状态】,请继续保持! ",-1))])])):(g(),b("div",ie,[t[7]||(t[7]=w("div",{class:"flex items-center mb-[2rem] text-[#333]"},[w("span",{class:"w-[26rem]"},"网站"),w("span",null,"类型")],-1)),w("div",{class:E(e.compData.isSiteModule?"overflow-auto h-[42rem]":"")},[_(h,{modelValue:x(je),"onUpdate:modelValue":t[0]||(t[0]=function(e){return D(je)?je.value=e:null}),accordion:""},{default:L((function(){return[(g(!0),b(O,null,P(x(Le),(function(e,r){return g(),k(s,{key:r},{title:L((function(){return[w("div",ce,[w("div",se,[_(c,{type:e.cms.length>0?"warning":"success",effect:"dark"},{default:L((function(){return[C(j(e.cms.length)+"项 ",1)]})),_:2},1032,["type"]),w("span",le,j(e.name),1)]),w("span",null,j(e.cms_name+"--"+e.version_info),1),t[5]||(t[5]=w("div",{class:"text-[#666] text-[1.2rem] ml-[6rem]"},"无法自动修复,请在网站后台更新该软件版本。",-1))])]})),default:L((function(){return[_(h,{accordion:""},{default:L((function(){return[(g(!0),b(O,null,P(e.cms,(function(e,r){return g(),k(s,{key:r},{title:L((function(){return[w("div",ue,[w("div",fe,[_(c,{type:Ce[e.dangerous][0]},{default:L((function(){return[C(j(Ce[e.dangerous][1]),1)]})),_:2},1032,["type"]),w("span",he,j(e.ps),1)]),_(n,{class:"mb-[.2rem] mr-[1.6rem]"},{default:L((function(){return t[6]||(t[6]=[C("详情")])})),_:1})])]})),default:L((function(){return[w("div",de,"修复建议:"+j(e.repair),1)]})),_:2},1024)})),128))]})),_:2},1024)]})),_:2},1024)})),128))]})),_:1},8,["modelValue"])],2)]))])),w("div",me,[w("div",pe,[t[9]||(t[9]=C(" 如需支持其他cms程序,请发帖反馈: ")),_(n,{href:"https://www.bt.cn/bbs/thread-89149-1-1.html"},{default:L((function(){return t[8]||(t[8]=[C(" https://www.bt.cn/bbs/thread-89149-1-1.html ")])})),_:1})])])])])}}});e("default",h(ve,[["__scopeId","data-v-fb3e28ca"]]))}}}))}();
Save File
Cancel