Linux sh52.ich-4.com 5.14.0-611.26.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 29 05:24:47 EST 2026 x86_64
LiteSpeed
Server IP : 198.143.147.58 & Your IP : 216.73.217.21
Domains :
Cant Read [ /etc/named.conf ]
User : actualbuzz
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python3.9 /
site-packages /
tracer /
resources /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-02-03 15:09
FilenameCleaner.py
3.18
KB
-rw-r--r--
2023-10-05 00:19
PackageManager.py
2.71
KB
-rw-r--r--
2023-10-05 00:19
SystemdDbus.py
2.04
KB
-rw-r--r--
2023-10-05 00:19
__init__.py
0
B
-rw-r--r--
2023-10-05 00:19
applications.py
8.95
KB
-rw-r--r--
2023-10-05 00:19
args_parser.py
3.42
KB
-rw-r--r--
2023-10-05 00:19
collections.py
4.05
KB
-rw-r--r--
2023-10-05 00:19
exceptions.py
2.44
KB
-rw-r--r--
2023-10-05 00:19
lang.py
1.27
KB
-rw-r--r--
2023-10-05 00:19
memory.py
1.37
KB
-rw-r--r--
2023-10-05 00:19
package.py
1.57
KB
-rw-r--r--
2023-10-05 00:19
processes.py
8.86
KB
-rw-r--r--
2023-10-05 00:19
pycomp.py
1.48
KB
-rw-r--r--
2023-10-05 00:19
router.py
1.79
KB
-rw-r--r--
2023-10-05 00:19
rules.py
3.23
KB
-rw-r--r--
2023-10-05 00:19
system.py
4.65
KB
-rw-r--r--
2023-10-05 00:19
tracer.py
7.18
KB
-rw-r--r--
2023-10-05 00:19
Save
Rename
# SystemdUnit.py # Module for getting data from Systemd about Units # Copyright (C) 2017 Sean O'Keeffe # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # the GNU General Public License v.2, or (at your option) any later version. # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY expressed or implied, including the implied warranties of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General # Public License for more details. You should have received a copy of the # GNU General Public License along with this program; if not, write to the # Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. # import dbus class SystemdDbus(object): def __init__(self): self.__systemd = dbus.SystemBus().get_object('org.freedesktop.systemd1','/org/freedesktop/systemd1') self.__manager = dbus.Interface(self.__systemd, dbus_interface='org.freedesktop.systemd1.Manager') def unit_path_from_pid(self, pid): try: return self.__manager.GetUnitByPID(pid) except dbus.exceptions.DBusException: return False def unit_path_from_id(self, Id): try: return self.__manager.GetUnit(Id) except dbus.exceptions.DBusException: return False def has_service_property_from_pid(self, pid, attr): try: unit = self.unit_path_from_pid(pid) if not unit: return False proxy = dbus.SystemBus().get_object('org.freedesktop.systemd1', unit) propty = proxy.Get('org.freedesktop.systemd1.Service', attr, dbus_interface='org.freedesktop.DBus.Properties') except dbus.exceptions.DBusException: return False return bool(propty) def get_unit_property_from_pid(self, pid, attr): unit_path = self.unit_path_from_pid(pid) if bool(unit_path): proxy = dbus.SystemBus().get_object('org.freedesktop.systemd1', self.unit_path_from_pid(pid)) return proxy.Get('org.freedesktop.systemd1.Unit', attr, dbus_interface='org.freedesktop.DBus.Properties') else: return False