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/useController-legacy3.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(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function t(){for(;r.length;)if((n=r.pop())in e)return t.value=n,t.done=!1,t;return t.done=!0,t}}function r(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach(function(e){o(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function o(e,r,n){return(r=function(e){var r=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==t(r)?r:r+""}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function a(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function c(r,n,o,a){var c=n&&n.prototype instanceof s?n:s,f=Object.create(c.prototype);return u(f,"_invoke",function(r,n,o){var a,u,c,s=0,f=o||[],l=!1,p={p:0,n:0,v:t,a:v,f:v.bind(t,4),d:function(e,r){return a=e,u=0,c=t,p.n=r,i}};function v(r,n){for(u=r,c=n,e=0;!l&&s&&!o&&e<f.length;e++){var o,a=f[e],v=p.p,m=a[2];r>3?(o=m===n)&&(c=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=t):a[0]<=v&&((o=r<2&&v<a[1])?(u=0,p.v=n,p.n=a[1]):v<m&&(o=r<3||a[0]>n||n>m)&&(a[4]=r,a[5]=n,p.n=m,u=0))}if(o||r>1)return i;throw l=!0,n}return function(o,f,m){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&v(f,m),u=f,c=m;(e=u<2?t:c)||!l;){a||(u?u<3?(u>1&&(p.n=-1),v(u,c)):p.n=c:p.v=c);try{if(s=2,a){if(u||(o="next"),e=a[o]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=a.return)&&e.call(a),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=t}else if((e=(l=p.n<0)?c:r.call(n,p))!==i)break}catch(e){a=t,u=1,c=e}finally{s=1}}return{value:e,done:l}}}(r,o,a),!0),f}var i={};function s(){}function f(){}function l(){}e=Object.getPrototypeOf;var p=[][n]?e(e([][n]())):(u(e={},n,function(){return this}),e),v=l.prototype=s.prototype=Object.create(p);function m(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,u(t,o,"GeneratorFunction")),t.prototype=Object.create(v),t}return f.prototype=l,u(v,"constructor",l),u(l,"constructor",f),f.displayName="GeneratorFunction",u(l,o,"GeneratorFunction"),u(v),u(v,o,"Generator"),u(v,n,function(){return this}),u(v,"toString",function(){return"[object Generator]"}),(a=function(){return{w:c,m:m}})()}function u(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}u=function(t,e,r,n){function a(e,r){u(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))},u(t,e,r,n)}function c(t,e,r,n,o,a,u){try{var c=t[a](u),i=c.value}catch(t){return void r(t)}c.done?e(i):Promise.resolve(i).then(n,o)}function i(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var a=t.apply(e,r);function u(t){c(a,n,o,u,i,"next",t)}function i(t){c(a,n,o,u,i,"throw",t)}u(void 0)})}}System.register(["./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528"],function(t,r){"use strict";var o,u,c,s,f,l,p,v,m,h;return{setters:[function(t){o=t.u,u=t.k,c=t.e,s=t._,f=t.ey,l=t.w},function(t){p=t.aI,v=t.aJ,m=t.r,h=t.Q}],execute:function(){var d=function(){return o.post("xterm/get_host_list",{check:"array"})},y=function(t){return o.post("xterm/create_host",{data:t,check:"msg"})},b=t("r",function(t,e){return o.post("xterm/remove_host",{data:{host:t,port:e},check:"msg"})}),g=function(t,e){return o.post("xterm/get_host_find",{data:{host:t,port:e},check:"object"})},_=(t("l",function(){return o.post("ssh_security/get_login_record",{check:"object"})}),t("m",function(t){var e=t?"stop_login_record":"start_login_record";return o.post("ssh_security/".concat(e),{check:"msg"})}),t("k",function(t){return o.post("ssh_security/get_record_list",{data:t,check:"object"})}),t("p",function(){return o.post("xterm/get_command_list",{check:"array"})}),t("w",function(t){return o.post("xterm/create_command",{data:t,check:"msg"})}),t("v",function(t){return o.post("xterm/modify_command",{data:t,check:"msg"})}),t("x",function(t){return o.post("xterm/remove_command",{data:{title:t},check:"msg"})}),t("t",function(){return o.post("xterm/out_command",{check:"msg"})}),t("b",function(t,e){return o.post("xterm/set_completion_tool_status",{data:{status:t,ai_shell:e},check:"msg"})}),t("d",function(t){return o.post("xterm/set_ai_shell_status",{data:{status:t},check:"msg"})}),t("g",function(){return o.post("xterm/completion_tool_status",{check:"object"})}),t("o",function(t){return o.post("ssh_security/get_record_video",{data:{record_id:t},check:"object"})}),t("n",function(t){return o.post("ssh_security/remove_video_record",{data:{record_ids:JSON.stringify(t)},check:"msg"})}),t("f",function(t){return o.post("xterm/set_terminal_theme",{data:{status:t},check:"msg"})}),t("q",function(t){return o.post("xterm/into_command_more",{data:{command_file_path:t},check:"msg"})}),t("e",function(t){return o.post("xterm/set_ai_shell_analyze",{data:{status:t},check:"msg"})}),v("TERM-HOST-LIST",function(){var t=m({}),e=m(!1),r=m(!1),n=m("password"),o=m(!1),c=function(){var t=i(a().m(function t(){var e;return a().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,u({loading:r,request:d(),data:Array});case 1:return e=t.v,t.a(2,{data:e,total:e.length,other:{}})}},t)}));return function(){return t.apply(this,arguments)}}();return{isEdit:e,rowData:t,$reset:function(){e.value=!1,r.value=!1,n.value="password"},isTableLoad:r,cutAuthType:n,getHostData:c,isRefreshList:o}})),w=t("u",function(){var t=_();return n(n({},t),p(t))})(),k=w.cutAuthType,O=w.isEdit,j=w.rowData,x=w.isRefreshList,S=(t("h",function(t,e,n){null==n||n.stopPropagation(),j.value=t,c({title:O.value?"编辑主机信息":"添加主机信息",area:48,component:function(){return s(function(){return r.import("./add-host-legacy.js?v=1777008528")},void 0,r.meta.url)},compData:{rows:t||{},refresh:e},showFooter:!0})}),t("a",function(t){if(!O.value&&h(t)&&t.value){var e,r,n,o=t.value.host;if(-1!=o.indexOf("@")){var a=o.split("@");if(o=a[1],-1!=(r=a[0]).indexOf(":")){var u=r.split(":");r=u[0],n=u[1]}}if(-1!=o.indexOf(":")){var c=o.split(":");o=c[0],e=c[1]}o&&(t.value.host=o,t.value.ps=o),e&&(t.value.port=Number(e)),r&&(t.value.username=r),n&&(t.value.password=n)}}),t("c",function(t,e){for(var r in e(),t.value)"password"===r&&(t.value[r]="");"password"===k.value?(t.value.pkey="",t.value.pkey_passwd=""):t.value.password=""}),function(t){var e=t.shell;try{e=JSON.parse(null==t?void 0:t.shell)}catch(r){e=t.shell}t.shell=e}),P=function(){var t=i(a().m(function t(r){var n,o,u,c,i;return a().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,g(r.host,r.port);case 1:n=t.v,o=n.data,c=e(o);case 2:if((i=c()).done){t.n=4;break}if("host"!==(u=i.value)){t.n=3;break}return t.a(3,2);case 3:r[u]=o[u],t.n=2;break;case 4:return S(r),t.a(2,o)}},t)}));return function(e){return t.apply(this,arguments)}}();t("s",function(){var t=i(a().m(function t(e){var r,n,o;return a().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,u({loading:"正在"+(O.value?"修改":"创建")+"主机信息,请稍后...",request:y(f(e.value)),data:{status:Boolean,msg:String},message:!0});case 1:return r=t.v,n=r.status,x.value=!0,t.a(2,n);case 2:return t.p=2,o=t.v,console.error(o),t.a(2,!1)}},t,null,[[0,2]])}));return function(e){return t.apply(this,arguments)}}()),t("j",function(){var t=i(a().m(function t(e,r,n){var o,c;return a().w(function(t){for(;;)switch(t.p=t.n){case 0:return n.stopPropagation(),t.p=1,t.n=2,l({title:"删除服务器信息【"+e.host+"】",content:"删除选中的信息后,该服务器信息将不在列表中显示,是否继续操作?",icon:"warning-filled"});case 2:return t.n=3,u({loading:"正在删除服务器信息,请稍后...",request:b(e.host,e.port),data:{status:Boolean},message:!0});case 3:o=t.v,o.status&&r(),t.n=5;break;case 4:t.p=4,c=t.v,console.error(c);case 5:return t.a(2)}},t,null,[[1,4]])}));return function(e,r,n){return t.apply(this,arguments)}}()),t("i",i(a().m(function t(){var e;return a().w(function(t){for(;;)switch(t.n){case 0:if(!j.value){t.n=4;break}if(!j.value.isLocal){t.n=1;break}return t.a(2,n(n({},j.value.rows),{},{authType:j.value.rows.pkey?"private":"password"}));case 1:return t.n=2,P(j.value);case 2:return(e=t.v).authType=e.pkey?"private":"password",t.a(2,e);case 3:t.n=5;break;case 4:return t.a(2,{host:"",port:22,username:"root",password:"",pkey:"",pkey_passwd:"",ps:"",authType:"password"});case 5:return t.a(2)}},t)})))}}})}();