Linux ip-172-26-2-223 5.4.0-1018-aws #18-Ubuntu SMP Wed Jun 24 01:15:00 UTC 2020 x86_64
Apache
: 172.26.2.223 | : 18.218.102.138
Cant Read [ /etc/named.conf ]
8.1.13
www
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
www /
server /
panel /
mod /
base /
push_mod /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
__init__.py
17.01
KB
-rw-r--r--
base_task.py
9.72
KB
-rw-r--r--
compatible.py
787
B
-rw-r--r--
database_push.py
9.24
KB
-rw-r--r--
database_push_template.json
1.55
KB
-rw-r--r--
domain_blcheck_push.py
5.62
KB
-rw-r--r--
domain_blcheck_push_template.j...
1.82
KB
-rw-r--r--
load_push.py
10.69
KB
-rw-r--r--
manager.py
17.54
KB
-rw-r--r--
mods.py
12.87
KB
-rw-r--r--
rsync_push.py
10.03
KB
-rw-r--r--
send_tool.py
3.29
KB
-rw-r--r--
site_push.py
55.03
KB
-rw-r--r--
site_push_template.json
7.78
KB
-rw-r--r--
ssl_push.py
13.28
KB
-rw-r--r--
ssl_push_template.json
2.27
KB
-rw-r--r--
system.py
17.35
KB
-rw-r--r--
system_push.py
15.3
KB
-rw-r--r--
system_push_template.json
5.5
KB
-rw-r--r--
task_manager_push.py
17.17
KB
-rw-r--r--
tool.py
2.24
KB
-rw-r--r--
util.py
3.31
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : util.py
import sys import time from typing import Optional, Callable if "/www/server/panel/class" not in sys.path: sys.path.insert(0, "/www/server/panel/class") import public from db import Sql import os from sslModel import certModel def write_file(filename: str, s_body: str, mode='w+') -> bool: """ 写入文件内容 @filename 文件名 @s_body 欲写入的内容 return bool 若文件不存在则尝试自动创建 """ try: fp = open(filename, mode=mode) fp.write(s_body) fp.close() return True except: try: fp = open(filename, mode=mode, encoding="utf-8") fp.write(s_body) fp.close() return True except: return False def read_file(filename, mode='r') -> Optional[str]: """ 读取文件内容 @filename 文件名 return string(bin) 若文件不存在,则返回None """ import os if not os.path.exists(filename): return None fp = None try: fp = open(filename, mode=mode) f_body = fp.read() except: return None finally: if fp and not fp.closed: fp.close() return f_body ExecShell: Callable = public.ExecShell write_log: Callable = public.WriteLog Sqlite: Callable = Sql GET_CLASS: Callable = public.dict_obj debug_log: Callable = public.print_log get_config_value: Callable = public.GetConfigValue get_server_ip: Callable = public.get_server_ip get_network_ip: Callable = public.get_network_ip format_date: Callable = public.format_date public_get_cache_func: Callable = public.get_cache_func public_set_cache_func: Callable = public.set_cache_func public_get_user_info: Callable = public.get_user_info public_http_post = public.httpPost panel_version = public.version # 获取证书列表 # get_cert_list = certModel.main().get_cert_list # to_dict_obj = public.to_dict_obj try: get_cert_list = certModel.main().get_cert_list to_dict_obj = public.to_dict_obj except: public.print_log(public.get_error_info()) def get_client_ip() -> str: return public.GetClientIp() class _DB: def __call__(self, table: str): import db with db.Sql() as t: t.table(table) return t DB = _DB() def check_site_status(web): panelPath = '/www/server/panel/' os.chdir(panelPath) sys.path.insert(0, panelPath) if web['project_type'] == "Java": from mod.project.java.projectMod import main as java if not java().get_project_stat(web)['pid']: return None if web['project_type'] == "Node": from projectModel.nodejsModel import main as nodejs if not nodejs().get_project_run_state(project_name=web['name']): return None if web['project_type'] == "Go": from projectModel.goModel import main as go if not go().get_project_run_state(project_name=web['name']): return None if web['project_type'] == "Python": from projectModel.pythonModel import main as python if not python().get_project_run_state(project_name=web['name']): return None if web['project_type'] == "Other": from projectModel.otherModel import main as other if not other().get_project_run_state(project_name=web['name']): return None return True
Close