OXIESEC PANEL
- Current Dir:
/
/
lib
/
python3.6
/
site-packages
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
12/05/2024 01:10:07 PM
rwxr-xr-x
📁
ConfigArgParse-0.14.0-py3.6.egg-info
-
03/16/2023 12:45:15 PM
rwxr-xr-x
📁
OpenSSL
-
03/16/2023 11:26:05 AM
rwxr-xr-x
📁
PyMySQL-0.10.1-py3.6.egg-info
-
02/16/2024 09:01:03 PM
rwxr-xr-x
📁
PySocks-1.6.8-py3.6.egg-info
-
03/16/2023 11:26:05 AM
rwxr-xr-x
📁
__pycache__
-
12/05/2024 01:10:07 PM
rwxr-xr-x
📁
chardet
-
03/16/2023 11:26:04 AM
rwxr-xr-x
📁
chardet-3.0.4-py3.6.egg-info
-
03/16/2023 11:26:04 AM
rwxr-xr-x
📄
configargparse.py
40.21 KB
01/13/2019 04:01:51 PM
rw-r--r--
📁
dateutil
-
03/16/2023 11:26:01 AM
rwxr-xr-x
📁
decorator-4.2.1-py3.6.egg-info
-
03/16/2023 11:25:51 AM
rwxr-xr-x
📄
decorator.py
16.18 KB
01/14/2018 10:00:21 AM
rw-r--r--
📁
dnf
-
02/16/2024 08:51:21 PM
rwxr-xr-x
📁
dnf-plugins
-
06/25/2025 07:30:56 AM
rwxr-xr-x
📁
dnfpluginscore
-
06/25/2025 07:30:55 AM
rwxr-xr-x
📄
easy_install.py
126 bytes
08/19/2024 07:28:57 AM
rw-r--r--
📁
firewall
-
02/07/2025 11:05:01 PM
rwxr-xr-x
📄
hwdata.py
7.95 KB
02/12/2018 08:49:28 AM
rw-r--r--
📁
idna
-
02/07/2025 11:05:01 PM
rwxr-xr-x
📁
idna-2.5-py3.6.egg-info
-
02/07/2025 11:05:01 PM
rwxr-xr-x
📁
iotop
-
03/16/2023 12:45:15 PM
rwxr-xr-x
📄
iotop-0.6-py3.6.egg-info
348 bytes
04/18/2022 09:43:14 PM
rw-r--r--
📁
isc
-
02/07/2025 11:05:01 PM
rwxr-xr-x
📄
isc-2.0-py3.6.egg-info
267 bytes
08/19/2024 10:33:08 PM
rw-r--r--
📁
nftables
-
02/07/2025 11:05:01 PM
rwxr-xr-x
📄
nftables-0.1-py3.6.egg-info
623 bytes
01/28/2025 01:24:56 AM
rw-r--r--
📄
pciutils-2.3.6-py3.6.egg-info
242 bytes
11/19/2019 06:36:19 AM
rw-r--r--
📁
pip
-
02/07/2025 07:34:08 PM
rwxr-xr-x
📁
pip-9.0.3.dist-info
-
02/07/2025 07:34:08 PM
rwxr-xr-x
📁
pkg_resources
-
02/07/2025 10:01:50 PM
rwxr-xr-x
📁
ply
-
03/16/2023 11:26:05 AM
rwxr-xr-x
📁
ply-3.9-py3.6.egg-info
-
03/16/2023 11:26:05 AM
rwxr-xr-x
📁
procfs
-
02/07/2025 10:02:44 PM
rwxr-xr-x
📁
pyOpenSSL-19.0.0-py3.6.egg-info
-
03/16/2023 11:26:05 AM
rwxr-xr-x
📁
pycparser
-
03/16/2023 11:26:05 AM
rwxr-xr-x
📁
pycparser-2.14-py3.6.egg-info
-
03/16/2023 11:26:05 AM
rwxr-xr-x
📁
pymysql
-
02/16/2024 09:01:03 PM
rwxr-xr-x
📁
python_dateutil-2.6.1-py3.6.egg-info
-
03/16/2023 11:26:01 AM
rwxr-xr-x
📁
python_linux_procfs-0.7.0-py3.6.egg-info
-
02/16/2024 08:53:54 PM
rwxr-xr-x
📁
python_linux_procfs-0.7.3-py3.6.egg-info
-
02/07/2025 10:02:44 PM
rwxr-xr-x
📁
pyudev
-
03/16/2023 11:26:01 AM
rwxr-xr-x
📁
pyudev-0.21.0-py3.6.egg-info
-
03/16/2023 11:26:01 AM
rwxr-xr-x
📁
requests
-
02/07/2025 11:05:01 PM
rwxr-xr-x
📁
requests-2.20.0-py3.6.egg-info
-
02/07/2025 11:05:01 PM
rwxr-xr-x
📁
rhn
-
02/07/2025 11:05:01 PM
rwxr-xr-x
📄
rhnlib-2.8.6-py3.6.egg-info
343 bytes
09/17/2024 10:10:55 AM
rw-r--r--
📁
setuptools
-
02/07/2025 10:01:50 PM
rwxr-xr-x
📁
setuptools-39.2.0.dist-info
-
02/07/2025 10:01:50 PM
rwxr-xr-x
📁
six-1.11.0.dist-info
-
03/16/2023 11:25:44 AM
rwxr-xr-x
📄
six.py
30.16 KB
11/13/2019 02:45:19 PM
rw-r--r--
📁
slip
-
03/16/2023 11:26:05 AM
rwxr-xr-x
📄
slip-0.6.4-py3.6.egg-info
196 bytes
10/08/2022 01:05:12 PM
rw-r--r--
📄
slip.dbus-0.6.4-py3.6.egg-info
269 bytes
10/08/2022 01:05:12 PM
rw-r--r--
📄
socks.py
31.52 KB
12/21/2017 04:05:00 AM
rw-r--r--
📄
sockshandler.py
2.84 KB
12/21/2017 04:05:00 AM
rw-r--r--
📁
syspurpose
-
02/07/2025 11:05:01 PM
rwxr-xr-x
📁
syspurpose-1.28.40-py3.6.egg-info
-
02/16/2024 08:53:55 PM
rwxr-xr-x
📁
syspurpose-1.28.42-py3.6.egg-info
-
02/07/2025 11:05:01 PM
rwxr-xr-x
📁
tuned
-
02/08/2025 12:06:56 AM
rwxr-xr-x
📁
up2date_client
-
07/09/2024 11:23:34 AM
rwxr-xr-x
📁
urllib3
-
12/06/2024 10:10:39 AM
rwxr-xr-x
📁
urllib3-1.24.2-py3.6.egg-info
-
12/06/2024 10:10:38 AM
rwxr-xr-x
Editing: hwdata.py
Close
# # Copyright (c) 1999--2012 Red Hat, Inc. # # This software is licensed to you under the GNU General Public License, # version 2 (GPLv2). There is NO WARRANTY for this software, express or # implied, including the implied warranties of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2 # along with this software; if not, see # http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. # # Red Hat trademarks are not licensed under GPLv2. No permission is # granted to use or replicate Red Hat trademarks that are incorporated # in this software or its documentation. # import sys inPy3k = sys.version_info[0] == 3 """ Query hwdata database and return decription of vendor and/or device. """ # pylint: disable=misplaced-bare-raise class USB(object): """ Interace to usb.ids from hwdata package """ filename = '/usr/share/hwdata/usb.ids' devices = None def __init__(self, filename=None): """ Load pci.ids from file to internal data structure. parameter 'filename' can specify location of this file """ if filename: self.filename = filename else: self.filename = USB.filename self.cache = 1 if self.cache and not USB.devices: # parse usb.ids USB.devices = {} if inPy3k: f = open(self.filename, encoding='ISO8859-1') else: f = open(self.filename) lineno = 0 vendor = None device = None for line in f.readlines(): lineno += 1 l = line.split() if line.startswith('#'): if line.startswith('# List of known device classes, subclasses and protocols'): break # end of database of devices, rest is protocols, types etc. else: continue elif len(l) == 0: continue elif line.startswith('\t\t'): interface_id = l[0].lower() if len(l) > 2: interface_name = ' '.join(l[1:]) else: interface_name = '' try: USB.devices[vendor][1][device][0][interface_id] = interface_name except TypeError: sys.stderr.write("Unknown line at line {0} in {1}.\n".format(lineno, self.filename)) elif line.startswith('\t'): device = l[0].lower() device_name = ' '.join(l[1:]) USB.devices[vendor][1][device] = [device_name, {}] else: vendor = l[0].lower() vendor_name = ' '.join(l[1:]) if vendor not in USB.devices: USB.devices[vendor] = [vendor_name, {}] else: # this should not happen USB.devices[vendor][0] = vendor_name def get_vendor(self, vendor): """ Return description of vendor. Parameter is two byte code in hexa. If vendor is unknown None is returned. """ vendor = vendor.lower() if self.cache: if vendor in USB.devices: return USB.devices[vendor][0] else: return None else: raise # not implemented yet def get_device(self, vendor, device): """ Return description of device. Parameters are two byte code variables in hexa. If device is unknown None is returned. """ vendor = vendor.lower() device = device.lower() if self.cache: if vendor in USB.devices: if device in USB.devices[vendor][1]: return USB.devices[vendor][1][device][0] else: return None else: return None else: raise # not implemented yet class PCI(object): """ Interace to pci.ids from hwdata package """ filename = '/usr/share/hwdata/pci.ids' devices = None def __init__(self, filename=None): """ Load pci.ids from file to internal data structure. parameter 'filename' can specify location of this file """ if filename: self.filename = filename else: self.filename = PCI.filename self.cache = 1 if self.cache and not PCI.devices: # parse pci.ids PCI.devices = {} if inPy3k: f = open(self.filename, encoding='ISO8859-1') else: f = open(self.filename) vendor = None for line in f.readlines(): l = line.split() if line.startswith('#'): continue elif len(l) == 0: continue elif line.startswith('\t\t'): continue elif line.startswith('\t'): device = l[0].lower() device_name = ' '.join(l[1:]) PCI.devices[vendor][1][device] = device_name else: vendor = l[0].lower() vendor_name = ' '.join(l[1:]) if not vendor in list(PCI.devices.keys()): PCI.devices[vendor] = [vendor_name, {}] else: # this should not happen PCI.devices[vendor][0] = vendor_name def get_vendor(self, vendor): """ Return description of vendor. Parameter is two byte code in hexa. If vendor is unknown None is returned. """ vendor = vendor.lower() if self.cache: if vendor in list(PCI.devices.keys()): return PCI.devices[vendor][0] else: return None else: raise # not implemented yet def get_device(self, vendor, device): """ Return description of device. Parameters are two byte code variables in hexa. If device is unknown None is returned. """ vendor = vendor.lower() device = device.lower() if self.cache: if vendor in list(PCI.devices.keys()): if device in list(PCI.devices[vendor][1].keys()): return PCI.devices[vendor][1][device] else: return None else: return None else: raise # not implemented yet class PNP(object): """ Interace to pnp.ids from hwdata package """ filename = '/usr/share/hwdata/pnp.ids' VENDORS = None def __init__(self, filename=None): """ Load pnp.ids from file to internal data structure. parameter 'filename' can specify location of this file """ if filename: self.filename = filename else: self.filename = PNP.filename self.cache = 1 if self.cache and not PNP.VENDORS: # parse pnp.ids PNP.VENDORS = {} if inPy3k: f = open(self.filename, encoding='ISO8859-1') else: f = open(self.filename) for line in f.readlines(): l = line.split() if line.startswith('#'): continue elif len(l) == 0: continue else: vendor_id = l[0].upper() PNP.VENDORS[vendor_id] = ' '.join(l[1:]) def get_vendor(self, vendor_id): """ Return description of vendor. Parameter is 3 character long id of vendor. If vendor is unknown None is returned. """ vendor_id = vendor_id.upper() if self.cache: if vendor_id in list(PNP.VENDORS.keys()): return PNP.VENDORS[vendor_id] else: return None else: raise # not implemented yet