OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
python3
/
dist-packages
Server IP: 10.0.0.4
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/14/2020 08:17:33 AM
rwxr-xr-x
📁
Automat-0.6.0.egg-info
-
10/14/2020 08:20:13 AM
rwxr-xr-x
📁
CommandNotFound
-
10/14/2020 08:21:14 AM
rwxr-xr-x
📁
Crypto
-
09/19/2021 04:37:57 PM
rwxr-xr-x
📁
DistUpgrade
-
10/14/2020 08:21:52 AM
rwxr-xr-x
📁
HweSupportStatus
-
10/14/2020 08:21:52 AM
rwxr-xr-x
📁
Jinja2-2.10.egg-info
-
10/14/2020 08:20:39 AM
rwxr-xr-x
📁
LanguageSelector
-
10/14/2020 08:21:40 AM
rwxr-xr-x
📁
MarkupSafe-1.0.egg-info
-
10/14/2020 08:20:39 AM
rwxr-xr-x
📁
OpenSSL
-
10/14/2020 08:21:34 AM
rwxr-xr-x
📄
PAM-0.4.2.egg-info
193 bytes
08/04/2017 04:59:28 AM
rw-r--r--
📄
PAM.cpython-36m-x86_64-linux-gnu.so
19.42 KB
08/04/2017 04:59:28 AM
rw-r--r--
📁
PyJWT-1.5.3.egg-info
-
07/20/2022 06:40:25 AM
rwxr-xr-x
📄
PyYAML-3.12.egg-info
1.48 KB
08/05/2017 04:28:08 PM
rw-r--r--
📄
README.txt
119 bytes
06/29/2022 11:45:57 AM
rw-r--r--
📁
SecretStorage-2.3.1.egg-info
-
09/19/2021 04:37:55 PM
rwxr-xr-x
📁
Twisted-17.9.0.egg-info
-
03/31/2022 06:48:52 AM
rwxr-xr-x
📁
UpdateManager
-
10/14/2020 08:21:52 AM
rwxr-xr-x
📁
WALinuxAgent-2.2.45.egg-info
-
10/14/2020 08:39:33 AM
rwxr-xr-x
📁
__pycache__
-
05/18/2022 06:42:19 AM
rwxr-xr-x
📄
_cffi_backend.cpython-36m-x86_64-linux-gnu.so
165.56 KB
02/27/2018 07:34:07 PM
rw-r--r--
📄
_dbus_bindings.cpython-36m-x86_64-linux-gnu.so
155.67 KB
01/29/2018 07:57:57 PM
rw-r--r--
📄
_dbus_glib_bindings.cpython-36m-x86_64-linux-gnu.so
18.7 KB
01/29/2018 07:57:57 PM
rw-r--r--
📄
_snack.cpython-36m-x86_64-linux-gnu.so
42.59 KB
01/12/2018 04:42:24 PM
rw-r--r--
📄
_version.py
21 bytes
08/26/2014 01:11:36 AM
rw-r--r--
📄
_yaml.cpython-36m-x86_64-linux-gnu.so
220.16 KB
08/05/2017 04:28:08 PM
rw-r--r--
📁
apport
-
05/18/2022 06:42:16 AM
rwxr-xr-x
📄
apport_python_hook.py
7.87 KB
05/13/2020 10:12:14 PM
rw-r--r--
📁
apt
-
01/05/2021 06:33:46 AM
rwxr-xr-x
📄
apt_inst.cpython-36m-x86_64-linux-gnu.so
50.37 KB
12/10/2020 02:48:08 PM
rw-r--r--
📄
apt_inst.pyi
227 bytes
12/10/2020 02:48:08 PM
rw-r--r--
📄
apt_pkg.cpython-36m-x86_64-linux-gnu.so
338.66 KB
12/10/2020 02:48:08 PM
rw-r--r--
📄
apt_pkg.pyi
8.69 KB
12/10/2020 02:48:08 PM
rw-r--r--
📁
aptsources
-
01/05/2021 06:33:46 AM
rwxr-xr-x
📁
asn1crypto
-
10/14/2020 08:21:03 AM
rwxr-xr-x
📁
asn1crypto-0.24.0.egg-info
-
10/14/2020 08:20:13 AM
rwxr-xr-x
📁
attr
-
10/14/2020 08:21:09 AM
rwxr-xr-x
📁
attrs-17.4.0.egg-info
-
10/14/2020 08:20:13 AM
rwxr-xr-x
📁
automat
-
10/14/2020 08:21:11 AM
rwxr-xr-x
📁
azurelinuxagent
-
10/14/2020 08:39:36 AM
rwxr-xr-x
📁
blinker
-
10/14/2020 08:21:03 AM
rwxr-xr-x
📄
blinker-1.4.egg-info
3.81 KB
01/11/2018 02:57:15 PM
rw-r--r--
📁
certifi
-
10/14/2020 08:20:57 AM
rwxr-xr-x
📁
certifi-2018.1.18.egg-info
-
10/14/2020 08:20:03 AM
rwxr-xr-x
📁
chardet
-
10/14/2020 08:21:05 AM
rwxr-xr-x
📁
chardet-3.0.4.egg-info
-
10/14/2020 08:19:53 AM
rwxr-xr-x
📁
click
-
10/14/2020 08:21:14 AM
rwxr-xr-x
📁
click-6.7.egg-info
-
10/14/2020 08:20:39 AM
rwxr-xr-x
📁
cloud_init-22.2.egg-info
-
07/01/2022 06:30:49 AM
rwxr-xr-x
📁
cloudinit
-
07/01/2022 06:30:50 AM
rwxr-xr-x
📁
colorama
-
10/14/2020 08:20:57 AM
rwxr-xr-x
📁
colorama-0.3.7.egg-info
-
10/14/2020 08:20:39 AM
rwxr-xr-x
📄
command_not_found-0.3.egg-info
189 bytes
05/05/2018 06:41:03 AM
rw-r--r--
📁
configobj-5.0.6.egg-info
-
10/14/2020 08:20:15 AM
rwxr-xr-x
📄
configobj.py
87.51 KB
07/21/2015 08:56:05 PM
rw-r--r--
📁
constantly
-
10/14/2020 08:20:54 AM
rwxr-xr-x
📁
constantly-15.1.0.egg-info
-
10/14/2020 08:20:13 AM
rwxr-xr-x
📁
cryptography
-
11/05/2020 06:43:45 AM
rwxr-xr-x
📁
cryptography-2.1.4.egg-info
-
11/05/2020 06:43:45 AM
rwxr-xr-x
📁
dbus
-
10/14/2020 08:17:51 AM
rwxr-xr-x
📄
deb822.py
146 bytes
02/17/2018 05:37:18 AM
rw-r--r--
📄
debconf.py
6.61 KB
05/06/2019 04:30:30 PM
rw-r--r--
📁
debian
-
10/14/2020 08:21:11 AM
rwxr-xr-x
📁
debian_bundle
-
10/14/2020 08:21:11 AM
rwxr-xr-x
📁
distro_info-0.18ubuntu0.18.04.1.egg-info
-
10/14/2020 08:19:53 AM
rwxr-xr-x
📄
distro_info.py
10.68 KB
03/07/2019 07:33:56 PM
rw-r--r--
📁
distro_info_test
-
10/14/2020 08:20:52 AM
rwxr-xr-x
📄
easy_install.py
126 bytes
03/18/2018 02:41:50 PM
rw-r--r--
📁
gi
-
10/14/2020 08:19:10 AM
rwxr-xr-x
📁
httplib2
-
10/14/2020 08:21:06 AM
rwxr-xr-x
📄
httplib2-0.9.2.egg-info
2.22 KB
06/25/2020 03:17:40 AM
rw-r--r--
📁
hyperlink
-
10/14/2020 08:21:10 AM
rwxr-xr-x
📁
hyperlink-17.3.1.egg-info
-
10/14/2020 08:20:13 AM
rwxr-xr-x
📁
idna
-
10/14/2020 08:20:56 AM
rwxr-xr-x
📁
idna-2.6.egg-info
-
10/14/2020 08:20:03 AM
rwxr-xr-x
📁
incremental
-
10/14/2020 08:20:52 AM
rwxr-xr-x
📁
incremental-16.10.1.egg-info
-
10/14/2020 08:20:13 AM
rwxr-xr-x
📁
janitor
-
10/14/2020 08:21:52 AM
rwxr-xr-x
📁
jinja2
-
10/14/2020 08:21:06 AM
rwxr-xr-x
📁
jsonpatch-1.16.egg-info
-
10/14/2020 08:20:39 AM
rwxr-xr-x
📄
jsonpatch.py
26.19 KB
06/15/2017 03:41:06 PM
rw-r--r--
📁
jsonpointer-1.10.egg-info
-
10/14/2020 08:20:39 AM
rwxr-xr-x
📄
jsonpointer.py
9.15 KB
10/28/2015 07:06:37 PM
rw-r--r--
📁
jsonschema
-
10/14/2020 08:21:02 AM
rwxr-xr-x
📁
jsonschema-2.6.0.egg-info
-
10/14/2020 08:20:39 AM
rwxr-xr-x
📁
jwt
-
07/20/2022 06:40:25 AM
rwxr-xr-x
📁
keyring
-
09/19/2021 04:37:59 PM
rwxr-xr-x
📁
keyring-10.6.0.egg-info
-
09/19/2021 04:37:55 PM
rwxr-xr-x
📁
keyrings
-
09/19/2021 04:37:56 PM
rwxr-xr-x
📁
keyrings.alt-3.0.egg-info
-
09/19/2021 04:37:56 PM
rwxr-xr-x
📁
landscape
-
10/14/2020 08:21:47 AM
rwxr-xr-x
📁
language_selector-0.1.egg-info
-
10/14/2020 08:19:47 AM
rwxr-xr-x
📄
language_support_pkgs.py
9.89 KB
11/16/2017 08:34:16 PM
rw-r--r--
📄
lsb_release.py
14.09 KB
08/07/2017 09:55:07 PM
rw-r--r--
📁
markupsafe
-
10/14/2020 08:21:01 AM
rwxr-xr-x
📁
netifaces-0.10.4.egg-info
-
10/14/2020 08:19:12 AM
rwxr-xr-x
📄
netifaces.cpython-36m-x86_64-linux-gnu.so
18.59 KB
08/04/2017 06:49:42 AM
rw-r--r--
📁
oauthlib
-
10/14/2020 08:21:15 AM
rwxr-xr-x
📁
oauthlib-2.0.6.egg-info
-
10/14/2020 08:20:40 AM
rwxr-xr-x
📁
pexpect
-
11/20/2022 06:47:16 AM
rwxr-xr-x
📄
pexpect-4.2.1.egg-info
2.23 KB
12/12/2016 02:59:09 PM
rw-r--r--
📁
pip
-
09/19/2021 04:37:58 PM
rwxr-xr-x
📁
pip-9.0.1.egg-info
-
09/19/2021 04:37:56 PM
rwxr-xr-x
📁
pkg_resources
-
10/14/2020 08:20:59 AM
rwxr-xr-x
📄
problem_report.py
26.28 KB
11/11/2019 09:57:56 PM
rw-r--r--
📁
ptyprocess
-
11/20/2022 06:47:16 AM
rwxr-xr-x
📁
pyOpenSSL-17.5.0.egg-info
-
10/14/2020 08:20:13 AM
rwxr-xr-x
📁
pyasn1
-
10/14/2020 08:21:03 AM
rwxr-xr-x
📁
pyasn1-0.4.2.egg-info
-
10/14/2020 08:20:13 AM
rwxr-xr-x
📁
pyasn1_modules
-
10/14/2020 08:21:08 AM
rwxr-xr-x
📄
pyasn1_modules-0.2.1.egg-info
1.68 KB
01/02/2018 11:18:24 AM
rw-r--r--
📄
pycrypto-2.6.1.egg-info
666 bytes
04/03/2018 01:26:21 PM
rw-r--r--
📄
pygobject-3.26.1.egg-info
1013 bytes
01/29/2019 12:46:03 PM
rw-r--r--
📁
pygtkcompat
-
10/14/2020 08:19:10 AM
rwxr-xr-x
📄
pyserial-3.4.egg-info
1.62 KB
04/09/2018 11:57:25 AM
rw-r--r--
📄
python_apt-1.6.5_ubuntu0.5.egg-info
236 bytes
12/10/2020 02:48:08 PM
rw-r--r--
📁
python_debian-0.1.32.egg-info
-
10/14/2020 08:19:53 AM
rwxr-xr-x
📄
pyxdg-0.25.egg-info
576 bytes
01/07/2021 02:49:21 AM
rw-r--r--
📁
requests
-
10/14/2020 08:21:16 AM
rwxr-xr-x
📁
requests-2.18.4.egg-info
-
10/14/2020 08:20:03 AM
rwxr-xr-x
📁
requests_unixsocket
-
10/14/2020 08:21:40 AM
rwxr-xr-x
📁
requests_unixsocket-0.1.5.egg-info
-
10/14/2020 08:20:03 AM
rwxr-xr-x
📁
secretstorage
-
09/19/2021 04:37:58 PM
rwxr-xr-x
📁
serial
-
10/14/2020 08:20:53 AM
rwxr-xr-x
📁
service_identity
-
10/14/2020 08:21:35 AM
rwxr-xr-x
📁
service_identity-16.0.0.egg-info
-
10/14/2020 08:20:14 AM
rwxr-xr-x
📁
setuptools
-
09/19/2021 04:37:58 PM
rwxr-xr-x
📁
setuptools-39.0.1.egg-info
-
09/19/2021 04:37:56 PM
rwxr-xr-x
📁
six-1.11.0.egg-info
-
10/14/2020 08:19:53 AM
rwxr-xr-x
📄
six.py
30.16 KB
09/17/2017 06:46:32 PM
rw-r--r--
📄
snack.py
30.4 KB
01/12/2018 04:42:24 PM
rw-r--r--
📁
softwareproperties
-
10/14/2020 08:21:42 AM
rwxr-xr-x
📁
sos
-
11/20/2022 06:47:17 AM
rwxr-xr-x
📄
sos-4.3.egg-info
295 bytes
09/19/2022 12:43:47 PM
rw-r--r--
📁
ssh_import_id
-
10/14/2020 08:21:46 AM
rwxr-xr-x
📁
ssh_import_id-5.7.egg-info
-
10/14/2020 08:20:51 AM
rwxr-xr-x
📁
systemd
-
10/14/2020 08:21:06 AM
rwxr-xr-x
📄
systemd_python-234.egg-info
586 bytes
08/05/2017 04:28:04 PM
rw-r--r--
📁
twisted
-
03/31/2022 06:48:53 AM
rwxr-xr-x
📁
ufw
-
10/14/2020 08:21:38 AM
rwxr-xr-x
📄
ufw-0.36.egg-info
261 bytes
03/25/2019 09:14:25 PM
rw-r--r--
📁
unattended_upgrades-0.1.egg-info
-
10/14/2020 08:20:50 AM
rwxr-xr-x
📁
urllib3
-
10/14/2020 08:21:09 AM
rwxr-xr-x
📁
urllib3-1.22.egg-info
-
10/14/2020 08:20:03 AM
rwxr-xr-x
📄
validate.py
46.13 KB
08/26/2014 01:11:36 AM
rw-r--r--
📁
wheel
-
09/19/2021 04:37:57 PM
rwxr-xr-x
📁
wheel-0.30.0.egg-info
-
09/19/2021 04:37:56 PM
rwxr-xr-x
📁
xdg
-
09/19/2021 04:37:57 PM
rwxr-xr-x
📁
yaml
-
10/14/2020 08:17:51 AM
rwxr-xr-x
📁
zope
-
10/14/2020 08:21:15 AM
rwxr-xr-x
📄
zope.interface-4.3.2-nspkg.pth
529 bytes
08/05/2017 09:25:43 AM
rw-r--r--
📁
zope.interface-4.3.2.egg-info
-
10/14/2020 08:20:13 AM
rwxr-xr-x
Editing: distro_info.py
Close
# Copyright (C) 2009-2012, Benjamin Drung <bdrung@debian.org> # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. """provides information about Ubuntu's and Debian's distributions""" import csv import datetime import os def convert_date(string): """Convert a date string in ISO 8601 into a datetime object.""" if not string: date = None else: parts = [int(x) for x in string.split("-")] if len(parts) == 3: (year, month, day) = parts date = datetime.date(year, month, day) elif len(parts) == 2: (year, month) = parts if month == 12: date = datetime.date(year, month, 31) else: date = datetime.date(year, month + 1, 1) - datetime.timedelta(1) else: raise ValueError("Date not in ISO 8601 format.") return date def _get_data_dir(): """Get the data directory based on the module location.""" return "/usr/share/distro-info" class DistroDataOutdated(Exception): """Distribution data outdated.""" def __init__(self): super(DistroDataOutdated, self).__init__( "Distribution data outdated. " "Please check for an update for distro-info-data. See " "/usr/share/doc/distro-info-data/README.Debian for details.") class DistroRelease(object): """Represents a distributions release""" # pylint: disable=too-few-public-methods # pylint: disable=too-many-instance-attributes def __init__(self, version, codename, series, created=None, release=None, eol=None, eol_server=None, eol_esm=None): # pylint: disable=too-many-arguments self.version = version self.codename = codename self.series = series self.created = created self.release = release self.eol = eol self.eol_server = eol_server self.eol_esm = eol_esm def is_supported(self, date): """Check whether this release is supported on the given date.""" return date >= self.created and (self.eol is None or date <= self.eol or ( self.eol_server is not None and date <= self.eol_server)) def _get_date(row, column): return convert_date(row[column]) if column in row else None class DistroInfo(object): """Base class for distribution information. Use DebianDistroInfo or UbuntuDistroInfo instead of using this directly. """ def __init__(self, distro): self._distro = distro filename = os.path.join(_get_data_dir(), distro.lower() + ".csv") csvfile = open(filename) csv_reader = csv.DictReader(csvfile) self._releases = [] for row in csv_reader: release = DistroRelease(row['version'], row['codename'], row['series'], _get_date(row, 'created'), _get_date(row, 'release'), _get_date(row, 'eol'), _get_date(row, 'eol-server'), _get_date(row, 'eol-esm')) self._releases.append(release) csvfile.close() self._date = datetime.date.today() @property def all(self): """List codenames of all known distributions.""" return [x.series for x in self._releases] def get_all(self, result="codename"): """List all known distributions.""" return [self._format(result, x) for x in self._releases] def _avail(self, date): """Return all distributions that were available on the given date.""" return [x for x in self._releases if date >= x.created] def codename(self, release, date=None, default=None): """Map codename aliases to the codename they describe.""" # pylint: disable=no-self-use,unused-argument return release def devel(self, date=None, result="codename"): """Get latest development distribution based on the given date.""" if date is None: date = self._date distros = [x for x in self._avail(date) if x.release is None or (date < x.release and (x.eol is None or date <= x.eol))] if not distros: raise DistroDataOutdated() return self._format(result, distros[-1]) def _format(self, format_string, release): """Format a given distribution entry.""" if format_string == "object": return release elif format_string == "codename": return release.series elif format_string == "fullname": return self._distro + " " + release.version + ' "' + release.codename + '"' elif format_string == "release": return release.version else: raise ValueError("Only codename, fullname, object, and release are allowed " "result values, but not '" + format_string + "'.") def stable(self, date=None, result="codename"): """Get latest stable distribution based on the given date.""" if date is None: date = self._date distros = [x for x in self._avail(date) if x.release is not None and date >= x.release and (x.eol is None or date <= x.eol)] if not distros: raise DistroDataOutdated() return self._format(result, distros[-1]) def supported(self, date=None, result=None): """Get list of all supported distributions based on the given date.""" raise NotImplementedError() def valid(self, codename): """Check if the given codename is known.""" return codename in self.all def unsupported(self, date=None, result="codename"): """Get list of all unsupported distributions based on the given date.""" if date is None: date = self._date supported = self.supported(date) distros = [self._format(result, x) for x in self._avail(date) if x.series not in supported] return distros class DebianDistroInfo(DistroInfo): """provides information about Debian's distributions""" def __init__(self): super(DebianDistroInfo, self).__init__("Debian") def codename(self, release, date=None, default=None): """Map 'unstable', 'testing', etc. to their codenames.""" if release == "unstable": codename = self.devel(date) elif release == "testing": codename = self.testing(date) elif release == "stable": codename = self.stable(date) elif release == "oldstable": codename = self.old(date) else: codename = default return codename def devel(self, date=None, result="codename"): """Get latest development distribution based on the given date.""" if date is None: date = self._date distros = [x for x in self._avail(date) if x.release is None or (date < x.release and (x.eol is None or date <= x.eol))] if len(distros) < 2: raise DistroDataOutdated() return self._format(result, distros[-2]) def old(self, date=None, result="codename"): """Get old (stable) Debian distribution based on the given date.""" if date is None: date = self._date distros = [x for x in self._avail(date) if x.release is not None and date >= x.release] if len(distros) < 2: raise DistroDataOutdated() return self._format(result, distros[-2]) def supported(self, date=None, result="codename"): """Get list of all supported Debian distributions based on the given date.""" if date is None: date = self._date distros = [self._format(result, x) for x in self._avail(date) if x.eol is None or date <= x.eol] return distros def testing(self, date=None, result="codename"): """Get latest testing Debian distribution based on the given date.""" if date is None: date = self._date distros = [x for x in self._avail(date) if (x.release is None and x.version) or (x.release is not None and date < x.release and (x.eol is None or date <= x.eol))] if not distros: raise DistroDataOutdated() return self._format(result, distros[-1]) def valid(self, codename): """Check if the given codename is known.""" return (DistroInfo.valid(self, codename) or codename in ["unstable", "testing", "stable", "oldstable"]) class UbuntuDistroInfo(DistroInfo): """provides information about Ubuntu's distributions""" def __init__(self): super(UbuntuDistroInfo, self).__init__("Ubuntu") def lts(self, date=None, result="codename"): """Get latest long term support (LTS) Ubuntu distribution based on the given date.""" if date is None: date = self._date distros = [x for x in self._releases if x.version.find("LTS") >= 0 and date >= x.release and date <= x.eol] if not distros: raise DistroDataOutdated() return self._format(result, distros[-1]) def is_lts(self, codename): """Is codename an LTS release?""" distros = [x for x in self._releases if x.series == codename] if not distros: return False return "LTS" in distros[0].version def supported(self, date=None, result="codename"): """Get list of all supported Ubuntu distributions based on the given date.""" if date is None: date = self._date distros = [self._format(result, x) for x in self._avail(date) if date <= x.eol or (x.eol_server is not None and date <= x.eol_server)] return distros def supported_esm(self, date=None, result="codename"): """Get list of all ESM supported Ubuntu distributions based on the given date.""" if date is None: date = self._date distros = [self._format(result, x) for x in self._avail(date) if x.eol_esm is not None and date <= x.eol_esm] return distros