File: /www/server/panel/BTPanel/static/js/firewall.js
import{u as t}from"./utils-lib.js?v=1777008528";import"./base-lib.js?v=1777008528";const a="/plugin?action=a&name=bt_security&s=",c="/plugin?name=syssafe&action=a&s=",n="/plugin?name=networkscan&action=a&s=",p=()=>t.post("safe/ssh/GetSshInfo",{check:"object",customType:"model"}),m=e=>t.post("firewall/SetSshStatus",{data:e,check:"msg"}),l=()=>t.post("/mod/ssh/com/get_ssh_intrusion",{check:"object",customType:"model"}),u=()=>t.post("ssh_security/get_config",{check:"object"}),_=e=>{const s=e?"set_password":"stop_password";return t.post("ssh_security/".concat(s),{check:"msg"})},d=e=>t.post("firewall/SetSshPort",{data:{port:e},check:"msg"}),g=e=>t.post("".concat(a,"get_user_log"),{data:e,customType:"model",check:"array"}),h=()=>t.post("".concat(a,"get_total_all"),{customType:"model",check:"object"}),y=e=>t.post("ssh_security/del_sys_user",{data:e,check:"msg"}),k=(e,s)=>{const o=e?"start_user_security":"stop_user_security";return t.post("".concat(a).concat(o),{data:s,customType:"model",check:"object"})},f=(e,s)=>{const o=e?"start_user_log":"stop_user_log";return t.post("".concat(a).concat(o),{data:s,customType:"model",check:"object"})},T=e=>t.post("ssh_security/set_root_password",{data:e,check:"msg"}),b=e=>t.post("".concat(a,"get_logs_list"),{data:e,customType:"model",check:"array"}),j=e=>t.post("ssh_security/add_sys_user",{data:e,check:"object"}),S=e=>t.post("ssh_security/set_sshkey",{data:e,check:"object"}),w=()=>t.post("ssh_security/get_login_send",{check:"object"}),L=e=>t.post("ssh_security/get_logs",{data:e,check:"object"}),I=e=>t.post("/mod/push/task/change_task_conf",{data:e,check:"msg",customType:"model"}),P=e=>t.post("ssh_security/set_anti_conf",{data:e,check:"object"}),$=()=>t.post("ssh_security/get_anti_conf",{check:"object"}),v=()=>t.post("ssh_security/get_sshd_anti_logs",{check:"object"}),R=()=>t.post("ssh_security/return_ip",{check:"object"}),D=e=>t.post("ssh_security/add_return_ip",{data:e,check:"msg"}),W=e=>t.post("ssh_security/del_return_ip",{data:e,check:"msg"}),F=()=>t.post("ssh_security/get_key",{check:"msg"}),C=()=>t.post("ssh_security/stop_key",{check:"msg"}),M=e=>t.post("ssh_security/set_root",{data:e,check:"msg"}),A=e=>{const s=e?"start_bt_security":"stop_bt_security";return t.post("".concat(a).concat(s),{customType:"model",check:"object"})},O=()=>t.post("".concat(a,"porcess_set_up_log"),{customType:"model",check:"array"}),N=e=>t.post("".concat(a,"del_porcess_log"),{data:e,customType:"model",check:"object"}),B=e=>t.post("".concat(a,"add_porcess_log"),{data:e,customType:"model",check:"msg"}),H=e=>t.post("".concat(a,"get_log"),{data:e,customType:"model",check:"object"}),J=()=>t.post("".concat(c,"get_safe_status"),{customType:"model",check:"object"}),U=()=>t.post("".concat(c,"set_open"),{customType:"model",check:"msg"}),x=e=>t.post("".concat(c,"set_safe_status"),{data:e,customType:"model",check:"msg"}),K=e=>t.post("".concat(c,"get_safe_config"),{data:e,customType:"model",check:"object"}),q=e=>t.post("".concat(c,"remove_safe_path"),{data:e,customType:"model",check:"object"}),G=e=>t.post("".concat(c,"add_safe_path"),{data:e,customType:"model",check:"object"}),z=()=>t.post("".concat(c,"get_ssh_limit_info"),{customType:"model",check:"array"}),E=e=>t.post("".concat(c,"add_ssh_limit"),{data:e,customType:"model",check:"object"}),V=e=>t.post("".concat(c,"remove_ssh_limit"),{data:e,customType:"model",check:"object"}),Q=()=>t.post("/project/content/get_content_monitor_overview",{customType:"model",check:"object"}),X=e=>t.post("/project/content/get_risk_list",{data:e,customType:"model",check:"object"}),Y=e=>t.post("project/content/get_single_site_risk",{data:e,check:"object",customType:"model"}),Z=e=>t.post("/project/content/get_risk",{data:e,customType:"model",check:"object"}),ee=e=>t.post("/project/content/get_risk_info",{data:e,customType:"model",check:"object"}),te=()=>t.post("/project/content/get_content_monitor_list",{customType:"model",check:"array"}),se=e=>t.post("/project/content/del_content_monitor_info",{data:e,customType:"model",check:"msg"}),oe=e=>t.post("/project/content/scanning",{data:{data:JSON.stringify(e)},customType:"model",check:"object"}),ce=e=>t.post("/project/content/kill_scanning",{data:{data:JSON.stringify(e)},customType:"model",check:"msg"}),ae=()=>t.post("/project/content/get_thesaurus",{customType:"model",check:"array"}),ne=()=>t.post("/project/content/clear_thesaurus",{customType:"model",check:"msg"}),re=e=>t.post("/project/content/del_thesaurus",{data:e,customType:"model",check:"msg"}),ie=()=>t.post("/project/content/out_thesaurus",{customType:"model",check:"object"}),pe=e=>t.post("/project/content/add_thesaurus",{data:{data:JSON.stringify(e)},customType:"model",check:"msg"}),me=e=>t.post("crontab/GetDataList",{data:e,check:"object"}),le=(e,s)=>{const o=e?"set_content_monitor_info":"add_content_monitor_info";return t.post("/project/content/".concat(o),{data:{data:JSON.stringify(s)},customType:"model",check:"msg"})},ue=()=>t.post("/plugin?action=a&name=security_notice&s=get_notice",{customType:"model",check:"object"}),_e=()=>t.post("/plugin?action=a&name=security_notice&s=get_status",{customType:"model",check:"object"}),de=e=>t.post("/plugin?action=a&name=security_notice&s=get_send_logs",{data:e,customType:"model",check:"object"}),ge=()=>t.post("/plugin?action=a&name=security_notice&s=get_send_config",{customType:"model",check:"msg"}),he=e=>t.post("/plugin?action=a&name=security_notice&s=set_send",{data:e,customType:"model",check:"msg"}),ye=()=>t.post("/plugin?action=a&name=security_notice&s=get_index",{customType:"model",check:"object"}),ke=e=>t.post("/plugin?action=a&name=security_notice&s=set_php_status",{data:e,customType:"model",check:"msg"}),fe=()=>t.post("/plugin?action=a&name=security_notice&s=get_overall_info",{customType:"model",check:"object"}),Te=e=>t.post("/plugin?action=a&name=security_notice&s=empty_info",{data:e,check:"msg",customType:"model"}),be=e=>t.post("/plugin?action=a&name=security_notice&s=remove_ip_white",{data:e,customType:"model",loading:"正在删除,请稍候...",check:"msg"}),je=e=>t.post("/plugin?action=a&name=security_notice&s=remove_url_white",{data:e,customType:"model",loading:"正在删除,请稍候...",check:"msg"}),Se=e=>t.post("/plugin?action=a&name=security_notice&s=add_url_white",{data:e,customType:"model",check:"msg"}),we=e=>t.post("/plugin?action=a&name=security_notice&s=add_ip_white",{data:e,customType:"model",check:"msg"}),Le=e=>t.post("/plugin?action=a&name=security_notice&s=Re_Recycle_bin",{data:e,customType:"model",check:"msg"}),Ie=e=>t.post("/plugin?action=a&name=security_notice&s=Del_Recycle_bin",{data:e,customType:"model",check:"msg"}),Pe=()=>t.post("/plugin?action=a&name=security_notice&s=Get_Recycle_bin",{customType:"model",check:"array"}),$e=()=>t.post("/plugin?action=a&name=security_notice&s=get_sites",{customType:"model",check:"object"}),ve=(e,s)=>{const o=e?"start_site":"stop_site";return t.post("/plugin?action=a&name=security_notice&s=".concat(o),{data:s,customType:"model",check:"msg"})},Re=e=>t.post("/plugin?action=a&name=security_notice&s=get_domain_logs",{data:e,customType:"model"}),De=e=>t.post("/plugin?action=a&name=security_notice&s=wubao_url_white",{data:e,customType:"model",check:"msg"}),We=e=>t.post("/plugin?action=a&name=security_notice&s=set_ignore",{data:e,customType:"model",check:"msg"}),Fe=(e,s)=>{const o=e?"edit_site_config":"add_site_config";return t.post("/plugin?action=a&name=security_notice&s=".concat(o),{data:s,customType:"model",check:"msg"})},Ce=e=>t.post("/plugin?action=a&name=security_notice&s=attack",{data:e,customType:"model",check:"msg"}),Me=e=>t.post("/plugin?action=a&name=security_notice&s=start_service",{data:e,customType:"model",check:"msg"}),Ae=()=>t.post("/firewall/com/get_firewall_info",{check:"object",customType:"model"}),Oe=()=>t.post("/firewall/com/get_status",{check:"boolean",customType:"model"}),Ne=()=>t.post("/firewall/com/update_bt_firewall",{check:"object",customType:"model"}),Be=()=>t.post("/firewall/com/get_www_logs_size",{check:"object",customType:"model"}),He=()=>t.post("files/CloseLogs",{check:"string"}),Je=e=>t.post("firewall/SetPing",{data:e,check:"msg"}),Ue=e=>t.post("/firewall/com/set_status",{data:e,check:"msg",customType:"model"}),xe=e=>t.post("/firewall/com/port_rules_list",{data:e,check:"object",customType:"model"}),Ke=e=>t.post("safe/firewall/get_listening_processes",{data:{data:JSON.stringify(e)},check:"object",customType:"model"}),qe=(e,s)=>{const o=s?"modify_domain_port_rule":"modify_port_rule";return t.post("/firewall/com/".concat(o),{data:e,check:"msg",customType:"model"})},Ge=(e,s)=>{const o=s?"set_domain_port_rule":"set_port_rule";return t.post("/firewall/com/".concat(o),{data:e,check:"msg",customType:"model"})},ze=e=>e.rule_name==="country_rule"?t.post("safe/firewall/import_rules",{data:{data:JSON.stringify(e)},check:"msg",customType:"model"}):t.post("/firewall/com/import_rules",{data:e,check:"msg",customType:"model"}),Ee=e=>e.rule_name==="country_rule"?t.post("safe/firewall/export_rules",{data:{data:JSON.stringify(e)},check:"msg",customType:"model"}):t.post("/firewall/com/export_rules",{data:e,check:"msg",customType:"model"}),Ve=e=>t.post("/firewall/com/ip_rules_list",{data:e,check:"object",customType:"model"}),Qe=e=>t.post("/firewall/com/modify_ip_rule",{data:e,check:"object",customType:"model"}),Xe=e=>t.post("/firewall/com/set_ip_rule",{data:e,check:"object",customType:"model"}),Ye=e=>t.post("/firewall/com/port_forward_list",{data:e,check:"object",customType:"model"}),Ze=e=>t.post("/firewall/com/set_port_forward",{data:e,check:"object",customType:"model"}),et=e=>t.post("/firewall/com/modify_forward_rule",{data:e,check:"object",customType:"model"}),tt=e=>t.post("safe/firewall/get_country_list",{data:e,customType:"model",check:"object"}),st=e=>t.post("safe/firewall/remove_country",{data:e,customType:"model",check:"object"}),ot=()=>t.post("safe/firewall/get_countrys",{customType:"model",check:"array"}),ct=e=>t.post("safe/firewall/create_countrys",{data:e,customType:"model",check:"msg"}),at=e=>t.post("safe/firewall/modify_country",{data:e,customType:"model",check:"msg"}),nt=()=>t.post("safe/firewall/get_anti_scan_status",{check:"object",customType:"model"}),rt=e=>t.post("/safe/firewall/set_anti_scan_status",{data:{data:JSON.stringify(e)},check:"msg",customType:"model"}),it=e=>t.post("ssh_security/del_ban_ip",{data:e,check:"msg"}),pt=e=>t.post("safe/firewall/del_ban_ip",{data:e,check:"msg",customType:"model"}),mt=()=>t.post("safe/firewall/get_anti_scan_logs",{check:"object",customType:"model"}),lt=e=>t.post("/mod/push/task/set_task_conf",{data:e,check:"msg",customType:"model"}),ut=()=>t.post("/project/safe_detect/get_safe_count",{customType:"model",check:"object"}),_t=e=>t.post("/project/safe_detect/get_scan_res",{data:e,check:"object",customType:"model"}),dt=()=>t.post("/project/safe_detect/file_detect",{check:"msg",customType:"model"}),gt=e=>t.post("/project/safe_detect/opt_dir",{data:e,check:"msg",customType:"model"}),ht=()=>t.post("/project/safe_detect/get_scan_dir",{check:"object",customType:"model"}),yt=e=>t.post("/project/safe_detect/add_scan_dir",{data:e,check:"msg",customType:"model"}),kt=e=>t.post("/project/safe_detect/del_scan_dir",{data:e,check:"msg",customType:"model"}),ft=()=>t.post("/project/safe_detect/get_cron_file_M",{check:"object",customType:"model"}),Tt=e=>t.post("/project/safe_detect/set_cron_file_info",{data:e,check:"msg",customType:"model"}),bt=e=>t.post("/project/safe_detect/del_monitor_dir",{data:e,customType:"model",check:"msg"}),jt=(e,s)=>{const o=e?"stop_monitor_dir":"start_monitor_dir";return t.post("/project/safe_detect/".concat(o),{data:s,customType:"model",check:"msg"})},St=e=>t.post("/project/safe_detect/edit_monitor_dir",{data:e,customType:"model",check:"msg"}),wt=e=>{const s=e?"stop_service":"start_service";return t.post("/project/safe_detect/".concat(s),{customType:"model",check:"msg"})},Lt=()=>t.post("/project/safe_detect/get_service_status",{customType:"model",check:"object"}),It=()=>t.post("/project/safe_detect/get_monitor_dir",{customType:"model",check:"array"}),Pt=()=>t.post("/project/safe_detect/get_webshell_total",{customType:"model",check:"number"}),$t=e=>t.post("/project/safe_detect/add_monitor_dir",{data:e,customType:"model",check:"msg"}),vt=()=>t.post("/project/safe_detect/add_all_site",{customType:"model",check:"array"}),Rt=()=>t.post("/project/safe_detect/webshell_file",{customType:"model",check:"array"}),Dt=e=>t.post("/project/safe_detect/set_handle_file",{data:e,customType:"model",check:"msg"}),Wt=()=>t.post("/project/safe_detect/get_white_path",{customType:"model",check:"object"}),Ft=e=>t.post("/project/safe_detect/add_white_path",{data:e,customType:"model",check:"msg"}),Ct=e=>t.post("/project/safe_detect/del_white_path",{data:e,customType:"model",check:"msg"}),Mt=()=>t.post("project/scanning/startScan",{check:"object",customType:"model"}),At=()=>t.post("site/get_cron_scanin_info",{check:"object"}),Ot=e=>t.post("site/set_cron_scanin_info",{data:e,check:"msg"}),Nt=()=>t.post("".concat(c,"get_ssh_config"),{customType:"model",check:"object"}),Bt=e=>t.post("".concat(c,"save_ssh_config"),{data:e,customType:"model",check:"msg"}),Ht=()=>t.post("".concat(c,"get_process_white"),{customType:"model",check:"array"}),Jt=e=>t.post("".concat(c,"add_process_white"),{data:e,customType:"model",check:"msg"}),Ut=e=>t.post("".concat(c,"remove_process_white"),{data:e,customType:"model",check:"msg"}),xt=e=>t.post("/project/content/repair_cron",{data:e,customType:"model",check:"msg"}),Kt=e=>t.post("/safe/firewall/get_malicious_ip_list",{data:e,check:"object",customType:"model"}),qt=()=>t.post("/safe/firewall/remove_all_malicious_ip",{check:"object",customType:"model"}),Gt=e=>t.post("/safe/firewall/remove_malicious_ip",{data:e,check:"object",customType:"model"}),zt=e=>t.post("/safe/firewall/switch_malicious_ip",{data:e,check:"object",customType:"model"}),Et=()=>t.post("/safe/firewall/get_malicious_ip_status",{check:"object",customType:"model"}),Vt=e=>t.post("/safe/firewall/set_malicious_ip_bantime",{data:{data:JSON.stringify({bantime:e})},check:"object",customType:"model"}),Qt=e=>t.post("".concat(n,"get_overview_and_scan_info"),{data:e,customType:"model",check:"object"}),Xt=e=>t.post("".concat(n,"toggle_switch_status"),{data:e,customType:"model",check:"msg"}),Yt=()=>t.post("".concat(n,"export_ip_table"),{customType:"model",check:"msg"}),Zt=e=>t.post("".concat(n,"get_ip_detail"),{data:e,customType:"model"}),es=e=>t.post("".concat(n,"set_scan_sensing_rule"),{data:e,customType:"model",check:"msg"}),ts=()=>t.post("".concat(n,"get_networkscan_log"),{customType:"model",check:"msg"}),ss=()=>t.post("/btwaf/get_waf_drop_ip.json",{customType:"model"}),os=e=>t.post("/networkscan/add_temporary_ip.json",{data:e,customType:"model",check:"msg"}),cs=e=>t.post("/btwaf/del_temporary_ip.json",{data:e,customType:"model",check:"msg"}),as=e=>t.post("/networkscan/get_action_logs.json",{customType:"model",data:e}),ns=()=>t.post("/mod/ssh/com/remove_cron_job",{customType:"model",check:"msg"}),rs=e=>t.post("/mod/ssh/com/run_ban_login_failed_ip",{data:e,check:"object",customType:"model"}),is=e=>t.post("/mod/ssh/com/add_cron_job",{data:e,customType:"model",check:"msg"}),ps=()=>t.post("/firewall/com/clean_cache",{customType:"model",check:"msg"}),ms=()=>t.post("/mod/ssh/com/clean_ssh_list",{customType:"model",check:"msg"}),ls=()=>t.post("/safe/serversafe/get_security_info",{customType:"model",check:"object"}),us=e=>t.post("/safe/serversafe/repair_security",{data:e,customType:"model",check:"msg"}),_s=e=>t.post("/safe/serversafe/install_fail2ban",{data:e,customType:"model",check:"msg"}),ds=()=>t.post("/project/webbasicscanning/get_scan_result",{customType:"model",check:"object"}),gs=()=>t.post("/project/scanning/get_vuln_info",{customType:"model",check:"object"});export{V as $,nt as A,$ as B,P as C,te as D,se as E,oe as F,Y as G,Z as H,X as I,ve as J,$e as K,Pe as L,Le as M,Ie as N,ye as O,ke as P,de as Q,he as R,ge as S,O as T,N as U,B as V,H as W,J as X,x as Y,z as Z,E as _,Ae as a,dt as a$,cs as a0,ss as a1,as as a2,ts as a3,Qe as a4,Xe as a5,et as a6,at as a7,ct as a8,ot as a9,Je as aA,ps as aB,l as aC,A as aD,Mt as aE,gs as aF,mt as aG,xe as aH,Ke as aI,Ge as aJ,qe as aK,Ve as aL,Kt as aM,Et as aN,qt as aO,zt as aP,Vt as aQ,Gt as aR,ut as aS,bt as aT,St as aU,wt as aV,jt as aW,Lt as aX,It as aY,Pt as aZ,gt as a_,j as aa,$t as ab,Wt as ac,Ct as ad,Ft as ae,Rt as af,Dt as ag,ht as ah,kt as ai,yt as aj,Tt as ak,ft as al,ce as am,xt as an,Se as ao,we as ap,Re as aq,Ht as ar,Jt as as,Ut as at,K as au,q as av,G as aw,Zt as ax,vt as ay,Fe as az,Oe as b,_t as b0,Q as b1,De as b2,We as b3,ue as b4,Me as b5,_e as b6,Te as b7,fe as b8,je as b9,Be as bA,He as bB,w as bC,v as bD,F as bE,M as bF,S as bG,_ as bH,C as bI,d as bJ,u as bK,ls as bL,us as bM,_s as bN,ds as bO,be as ba,At as bb,Ot as bc,I as bd,D as be,R as bf,W as bg,L as bh,ie as bi,re as bj,ne as bk,ae as bl,pe as bm,le as bn,me as bo,Ce as bp,Nt as bq,Bt as br,es as bs,lt as bt,g as bu,m as bv,os as bw,Xt as bx,Yt as by,Qt as bz,ms as c,is as d,Ne as e,U as f,p as g,Ye as h,ze as i,Ze as j,tt as k,st as l,ee as m,Ue as n,Ee as o,T as p,k as q,ns as r,rs as s,f as t,h as u,b as v,y as w,rt as x,pt as y,it as z};