HEX
Server: nginx/1.28.3
System: Linux ip-172-31-12-242 6.17.0-1007-aws #7~24.04.1-Ubuntu SMP Thu Jan 22 21:04:49 UTC 2026 x86_64
User: root (0)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/server/panel/BTPanel/static/js/index-legacy241.js
!function(){function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function u(n,o,i,a){var u=o&&o.prototype instanceof c?o:c,s=Object.create(u.prototype);return r(s,"_invoke",function(n,r,o){var i,a,u,c=0,s=o||[],f=!1,v={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,a=0,u=e,v.n=n,l}};function d(n,r){for(a=n,u=r,t=0;!f&&c&&!o&&t<s.length;t++){var o,i=s[t],d=v.p,m=i[2];n>3?(o=m===r)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(a=0,v.v=r,v.n=i[1]):d<m&&(o=n<3||i[0]>r||r>m)&&(i[4]=n,i[5]=r,v.n=m,a=0))}if(o||n>1)return l;throw f=!0,r}return function(o,s,m){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,m),a=s,u=m;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(v.n=-1),d(a,u)):v.n=u:v.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=v.n<0)?u:n.call(r,v))!==l)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(n,i,a),!0),s}var l={};function c(){}function s(){}function f(){}t=Object.getPrototypeOf;var v=[][i]?t(t([][i]())):(r(t={},i,function(){return this}),t),d=f.prototype=c.prototype=Object.create(v);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,r(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=f,r(d,"constructor",f),r(f,"constructor",s),s.displayName="GeneratorFunction",r(f,a,"GeneratorFunction"),r(d),r(d,a,"Generator"),r(d,i,function(){return this}),r(d,"toString",function(){return"[object Generator]"}),(n=function(){return{w:u,m:m}})()}function r(e,t,n,o){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}r=function(e,t,n,o){function a(t,n){r(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},r(e,t,n,o)}function o(e,t,n,r,o,i,a){try{var u=e[i](a),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,o)}function i(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function u(e){o(a,r,i,u,l,"next",e)}function l(e){o(a,r,i,u,l,"throw",e)}u(void 0)})}}System.register(["./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./index-legacy119.js?v=1777008528","./useStore-legacy8.js?v=1777008528","./firewall-legacy.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528"],function(t,r){"use strict";var o,a,u,l,c,s,f,v,d,m,p,y,h,g,w,b,k,x,_,j,P,S,O,C,A,T,q,B,G,I,E,H,F,M,U,V,z,D,L;return{setters:[function(e){o=e.R,a=e.dl,u=e.k,l=e.e,c=e._,s=e.M,f=e.c7,v=e.cZ},function(e){d=e.c,m=e.r,p=e.o,y=e.I,h=e.J,g=e.p,w=e.j,b=e.k,k=e.q,x=e.e,_=e.Q,j=e.x,P=e.y,S=e.C,O=e.v,C=e.F,A=e.B,T=e.L,q=e.s,B=e.M,G=e.ap,I=e.z,E=e.aB,H=e.az},function(e){F=e._},function(e){M=e.g},function(e){U=e.b2,V=e.b3,z=e.b4,D=e.b5,L=e.b6},null],execute:function(){var R={class:"sn-home"},J={class:"sn-home-switch"},N={class:"flex items-center"},Q={key:0,class:"sn-home-note flex items-center !text-small"},Z={key:1},$={class:"mt-[2rem]"},K={class:"sn-home-overview-item-title"},W={key:0,class:"sn-home-list"},X={class:"sn-home-list-item flex items-center"},Y={class:"ml-[0.4rem] truncate flex-1"},ee={class:"text-right"},te={class:"text-tertiary leading-2.2rem"},ne={class:"mt-1rem"},re={class:"flex justify-end items-center"},oe={key:1,class:"sn-home-list"},ie=d({__name:"index",setup:function(t){var v=M().refs.phpTabActive,d=m(!1),ie=m(!1),ae=m(!1),ue=m(!1),le=m([]),ce=m(!1),se=[{title:"高风险",value:0,style:"color: var(--el-color-danger);",name:"risk_high"},{title:"中危",value:0,style:"color: var(--el-color-warning)",name:"risk_mod"},{title:"低危",value:0,style:"color: var(--el-color-warning-light-3)",name:"risk_low"},{title:"网站数量",value:0,style:"color: var(--el-color-text-primary)",name:"site_count"},{title:"告警次数",value:0,style:"color: var(--el-color-text-primary)",name:"risk_count"}],fe=function(){var e=i(n().m(function e(t){return n().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,u({loading:"正在加入URL白名单...",request:U({url_rule:t}),message:!0});case 1:return e.n=2,me();case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),ve=function(){var e=i(n().m(function e(t){return n().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,u({loading:"正在处理,请稍候...",request:V({operation:1,id:t}),message:!0});case 1:return e.n=2,me();case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),de=function(){var e=i(n().m(function e(){return n().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,u({request:L(),data:{status:[Boolean,d],send:[Boolean,ae],php_status:[Boolean,ue]}});case 1:ae.value&&ue.value?ce.value=!1:ce.value=!0;case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),me=function(){var e=i(n().m(function e(){var t,r;return n().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,u({loading:ie,request:z()});case 1:t=e.v,r=t.data,le.value=r.logs,se.forEach(function(e){e.value=r[e.name]});case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),pe=function(){l({title:"模拟攻击",area:60,compData:function(){return ge()},component:function(){return c(function(){return r.import("./simulate-attack-legacy.js?v=1777008528")},void 0,r.meta.url)}})},ye=function(){var e=i(n().m(function e(t){return n().w(function(e){for(;;)switch(e.n){case 0:if(d.value=!t,ae.value&&ue.value){e.n=1;break}return d.value=!1,s.error("请先开启PHP模块设置"),e.a(2);case 1:return e.n=2,u({loading:"正在"+(t?"开启":"关闭")+"监控,请稍后...",request:D({status:t?"start":"stop"}),message:!0,data:{status:[Boolean,function(e){e&&(d.value=t)}]}});case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),he=function(){return v.value="php"},ge=function(){de(),me()};return p(function(){return ge()}),function(t,n){var r=G,i=f,u=I,l=F,c=E,s=H,v=y("bt-loading");return h((w(),b("div",R,[k("div",J,[k("div",N,[n[1]||(n[1]=k("div",{class:"mr-4 text-small"},"监控开关",-1)),x(r,{modelValue:g(d),"onUpdate:modelValue":n[0]||(n[0]=function(e){return _(d)?d.value=e:null}),width:36,onChange:ye,disabled:g(ce)},null,8,["modelValue","disabled"])]),g(ce)?(w(),b("div",Q,[n[3]||(n[3]=k("i",{class:"svgtofont-el-warning-filled text-warningDark"},null,-1)),n[4]||(n[4]=j(" 无法使用PHP安全告警,请开启 ",-1)),g(ue)?P("",!0):(w(),b("span",{key:0,class:"bt-link !text-danger underline",onClick:he,title:"点击跳转PHP模块页面"}," PHP模块 ")),g(ue)||g(ae)?P("",!0):(w(),b("span",Z,"、")),g(ae)?P("",!0):(w(),S(i,{key:2,title:"点击跳转告警设置页面",type:"danger",class:"underline"},{default:O(function(){return e(n[2]||(n[2]=[j(" 设置告警 ",-1)]))}),_:1}))])):P("",!0),g(ae)&&g(ue)?(w(),S(u,{key:1,type:"primary",onClick:pe},{default:O(function(){return e(n[5]||(n[5]=[j("模拟攻击",-1)]))}),_:1})):P("",!0)]),k("div",{class:T(["sn-home-overview",se[0].value?"sn-home-overview-red":se[1].value?"sn-home-overview-yellow":"sn-home-overview-green"])},[n[6]||(n[6]=k("div",{class:"text-secondary text-base"},"风险等级概览",-1)),k("div",$,[(w(),b(C,null,A(se,function(e,t){return k("div",{class:T(["sn-home-overview-item",t<3?"line-border":""]),key:t},[k("div",K,q(e.title),1),k("div",{class:"sn-home-overview-item-num",style:B(e.style)},q(e.value),5)],2)}),64))])],2),g(le).length?(w(),b("div",W,[(w(!0),b(C,null,A(g(le),function(t,r){return w(),S(c,{key:r,placement:"bottom",width:260,trigger:"hover",offset:0,"show-after":300},{reference:O(function(){return[k("div",X,[k("div",null,[k("div",{class:T(["sn-home-list-item-type max-w-[12rem] w-max flex items-center",1===t.risk?"green":2===t.risk?"org":"red"])},[n[7]||(n[7]=k("i",{class:"svgtofont-el-warning !text-medium w-[16px]"},null,-1)),k("span",Y,q(t.intercept),1)],2)]),k("span",null,"攻击者IP:"+q(t.address),1),k("span",null,"网站:"+q(t.domain),1),k("span",null,"路径:"+q(t.url),1),k("div",ee,"触发时间:"+q(g(o)(t.addtime)),1)])]}),default:O(function(){return[k("div",te,[k("div",null,"【"+q(t.domain)+"】",1),k("div",ne,[n[8]||(n[8]=j(" 路径: ",-1)),k("span",{class:T((o=t.risk,3===o?"text-danger":2===o?"text-warning":"text-[var(--el-color-warning-light-3)]"))},q(t.intercept),3)]),k("div",null,"路径:"+q(g(a)(t.url)),1),k("div",null,[n[9]||(n[9]=j(" 解决方案: ",-1)),(w(!0),b(C,null,A((r=t.solution,(null==r?void 0:r.split("|split|"))||[]),function(e,t){return w(),b("p",{key:t},q(e),1)}),128))]),k("div",re,[x(i,{onClick:function(e){return fe(t.url)}},{default:O(function(){return e(n[10]||(n[10]=[j("误报",-1)]))}),_:1},8,["onClick"]),x(l),x(i,{onClick:function(e){return ve(t.id)}},{default:O(function(){return e(n[11]||(n[11]=[j("已处理",-1)]))}),_:1},8,["onClick"])])])];var r,o}),_:2},1024)}),128))])):(w(),b("div",oe,[x(s,{description:"暂无数据"})])),n[12]||(n[12]=k("div",{class:"text-disabled mt-[1rem]"},"以上仅提供最新的前100条风险数据",-1))])),[[v,g(ie)]])}}});t("default",v(ie,[["__scopeId","data-v-173cac3f"]]))}}})}();