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/row-ssh-config-legacy.js
!function(){function t(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(t){if("string"==typeof t)return n(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?n(t,r):void 0}}(t)||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 n(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=Array(n);r<n;r++)e[r]=t[r];return e}function r(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,n,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.toStringTag||"@@toStringTag";function c(r,o,i,u){var c=o&&o.prototype instanceof l?o:l,f=Object.create(c.prototype);return e(f,"_invoke",function(r,e,o){var i,u,c,l=0,f=o||[],s=!1,m={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(n,r){return i=n,u=0,c=t,m.n=r,a}};function p(r,e){for(u=r,c=e,n=0;!s&&l&&!o&&n<f.length;n++){var o,i=f[n],p=m.p,y=i[2];r>3?(o=y===e)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=r<2&&p<i[1])?(u=0,m.v=e,m.n=i[1]):p<y&&(o=r<3||i[0]>e||e>y)&&(i[4]=r,i[5]=e,m.n=y,u=0))}if(o||r>1)return a;throw s=!0,e}return function(o,f,y){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&p(f,y),u=f,c=y;(n=u<2?t:c)||!s;){i||(u?u<3?(u>1&&(m.n=-1),p(u,c)):m.n=c:m.v=c);try{if(l=2,i){if(u||(o="next"),n=i[o]){if(!(n=n.call(i,c)))throw TypeError("iterator result is not an object");if(!n.done)return n;c=n.value,u<2&&(u=0)}else 1===u&&(n=i.return)&&n.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=t}else if((n=(s=m.n<0)?c:r.call(e,m))!==a)break}catch(n){i=t,u=1,c=n}finally{l=1}}return{value:n,done:s}}}(r,i,u),!0),f}var a={};function l(){}function f(){}function s(){}n=Object.getPrototypeOf;var m=[][i]?n(n([][i]())):(e(n={},i,function(){return this}),n),p=s.prototype=l.prototype=Object.create(m);function y(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,e(t,u,"GeneratorFunction")),t.prototype=Object.create(p),t}return f.prototype=s,e(p,"constructor",s),e(s,"constructor",f),f.displayName="GeneratorFunction",e(s,u,"GeneratorFunction"),e(p),e(p,u,"Generator"),e(p,i,function(){return this}),e(p,"toString",function(){return"[object Generator]"}),(r=function(){return{w:c,m:y}})()}function e(t,n,r,o){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}e=function(t,n,r,o){function u(n,r){e(t,n,function(t){return this._invoke(n,r,t)})}n?i?i(t,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):t[n]=r:(u("next",0),u("throw",1),u("return",2))},e(t,n,r,o)}function o(t,n,r,e,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void r(t)}c.done?n(a):Promise.resolve(a).then(e,o)}function i(t){return function(){var n=this,r=arguments;return new Promise(function(e,i){var u=t.apply(n,r);function c(t){o(u,e,i,c,a,"next",t)}function a(t){o(u,e,i,c,a,"throw",t)}c(void 0)})}}System.register(["./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./firewall-legacy.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528"],function(n,e){"use strict";var o,u,c,a,l,f,s,m,p,y,d,v,b,h,g,w;return{setters:[function(t){o=t.k,u=t.cO,c=t.cP},function(t){a=t.c,l=t.r,f=t.o,s=t.j,m=t.k,p=t.q,y=t.x,d=t.e,v=t.p,b=t.v,h=t.z},function(t){g=t.bq,w=t.br},null],execute:function(){var e={class:"px-[1.6rem] py-[1.6rem]"},_={class:"flex flex-row justify-between border-b border-darker pb-[1.6rem]"},j={class:"flex flex-row items-center reinforce_ssh"};n("default",a({__name:"row-ssh-config",setup:function(n){var a=l({cycle:0,limit:0,limit_count:0,name:"",open:!1,ps:""}),S=l([{content:"触发以上策略后,客户端IP将被封锁一段时间"},{content:"请在面板日志或操作日志中查看封锁记录"},{content:"在面板日志或操作日志中查看SSH成功登录的记录(非继承),关闭保护后权限自动还原"}]),O=function(){var t=i(r().m(function t(){var n;return r().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,o({loading:"正在获取配置列表,请稍后...",request:g()});case 1:n=t.v,a.value=n.data;case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),x=function(){var t=i(r().m(function t(){var n,e,i,u;return r().w(function(t){for(;;)switch(t.n){case 0:n=a.value,e=n.cycle,i=n.limit,u=n.limit_count,o({loading:"正在保存配置,请稍后...",request:w({cycle:e,limit:i,limit_count:u}),message:!0,success:function(t){t.status&&O()}});case 1:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}();return f(function(){return O()}),function(n,r){var o=u,i=h,l=c;return s(),m("div",e,[p("div",_,[p("span",j,[r[4]||(r[4]=y(" 在(检测周期) ",-1)),d(o,{class:"!w-[8rem] mr-[.8rem] ml-[.4rem]",modelValue:v(a).cycle,"onUpdate:modelValue":r[0]||(r[0]=function(t){return v(a).cycle=t})},null,8,["modelValue"]),r[5]||(r[5]=y(" 秒内, 登录错误(检测阈值) ",-1)),d(o,{class:"!w-[8rem] mr-[.8rem] ml-[.4rem]",modelValue:v(a).limit_count,"onUpdate:modelValue":r[1]||(r[1]=function(t){return v(a).limit_count=t})},null,8,["modelValue"]),r[6]||(r[6]=y(" 次, 封锁(封锁时间) ",-1)),d(o,{class:"!w-[8rem] mr-[.8rem] ml-[.4rem]",modelValue:v(a).limit,"onUpdate:modelValue":r[2]||(r[2]=function(t){return v(a).limit=t})},null,8,["modelValue"]),r[7]||(r[7]=y(" 秒 ",-1))]),d(i,{type:"primary",onClick:r[3]||(r[3]=function(t){return x()})},{default:b(function(){return t(r[8]||(r[8]=[y("保存",-1)]))}),_:1})]),d(l,{options:v(S),class:"mx-[1.6rem] mt-[1.6rem]"},null,8,["options"])])}}}))}}})}();