Linux anchor 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
Apache/2.4.18 (Ubuntu)
Server IP : 10.10.100.4 & Your IP : 216.73.217.150
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
sosreport /
sos /
policies /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2021-12-04 13:17
__init__.py
41.41
KB
-rw-r--r--
2020-03-24 16:33
amazon.py
1.11
KB
-rw-r--r--
2020-03-24 16:33
debian.py
1.77
KB
-rw-r--r--
2020-03-24 16:33
ibmkvm.py
2.12
KB
-rw-r--r--
2020-03-24 16:33
osx.py
303
B
-rw-r--r--
2020-03-24 16:33
redhat.py
16.65
KB
-rw-r--r--
2020-03-24 16:33
suse.py
3.33
KB
-rw-r--r--
2020-03-24 16:33
ubuntu.py
2.13
KB
-rw-r--r--
2020-03-24 16:33
Save
Rename
from sos.plugins import DebianPlugin from sos.policies import PackageManager, LinuxPolicy import os class DebianPolicy(LinuxPolicy): distro = "Debian" vendor = "the Debian project" vendor_url = "https://www.debian.org/" ticket_number = "" _debq_cmd = "dpkg-query -W -f='${Package}|${Version}\\n'" _debv_cmd = "dpkg --verify" _debv_filter = "" name_pattern = 'friendly' valid_subclasses = [DebianPlugin] PATH = "/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" \ + ":/usr/local/sbin:/usr/local/bin" def __init__(self, sysroot=None): super(DebianPolicy, self).__init__(sysroot=sysroot) self.ticket_number = "" self.package_manager = PackageManager(query_command=self._debq_cmd, verify_command=self._debv_cmd, verify_filter=self._debv_filter, chroot=sysroot) self.valid_subclasses = [DebianPlugin] def _get_pkg_name_for_binary(self, binary): # for binary not specified inside {..}, return binary itself return { "xz": "xz-utils" }.get(binary, binary) @classmethod def check(cls): """This method checks to see if we are running on Debian. It returns True or False.""" return os.path.isfile('/etc/debian_version') def dist_version(self): try: with open('/etc/lsb-release', 'r') as fp: rel_string = fp.read() if "wheezy/sid" in rel_string: return 6 elif "jessie/sid" in rel_string: return 7 return False except IOError: return False # vim: set et ts=4 sw=4 :