Linux tsuru-no-tsurugi 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
Apache/2.4.52 (Ubuntu)
Server IP : 192.168.0.18 & Your IP : 216.73.216.68
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3 /
dist-packages /
firewall /
server /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2024-08-29 14:24
__init__.py
0
B
-rw-r--r--
2022-03-28 16:48
config.py
70.03
KB
-rw-r--r--
2022-03-28 16:48
config_helper.py
17.04
KB
-rw-r--r--
2022-03-28 16:48
config_icmptype.py
14.49
KB
-rw-r--r--
2022-03-28 16:48
config_ipset.py
18.28
KB
-rw-r--r--
2022-03-28 16:48
config_policy.py
8.2
KB
-rw-r--r--
2022-03-28 16:48
config_service.py
29.34
KB
-rw-r--r--
2022-03-28 16:48
config_zone.py
44.99
KB
-rw-r--r--
2022-03-28 16:48
dbus.py
1.18
KB
-rw-r--r--
2022-03-28 16:48
decorators.py
7.4
KB
-rw-r--r--
2022-03-28 16:48
firewalld.py
113.43
KB
-rw-r--r--
2022-03-28 16:48
server.py
3.59
KB
-rw-r--r--
2022-03-28 16:48
Save
Rename
# -*- coding: utf-8 -*- # # SPDX-License-Identifier: GPL-2.0-or-later import dbus from firewall import config class FirewallDBusException(dbus.DBusException): """FirewallDBusException""" _dbus_error_name = "%s.Exception" % config.dbus.DBUS_INTERFACE class NotAuthorizedException(dbus.DBusException): def __init__(self, action_id, method, *args, **kwargs): self._dbus_error_name = config.dbus.DBUS_INTERFACE + ".NotAuthorizedException" super().__init__("Not Authorized({}): {}".format(method, action_id)) class DbusServiceObject(dbus.service.Object): def __new__(cls, *args, **kwargs): # Check each dbus method. If it does not have an explicit polkit auth # then implicitly wrap it with the default from firewall.server.decorators import dbus_polkit_require_auth for attr_name in dir(cls): method = getattr(cls, attr_name) if hasattr(method, "_dbus_is_method") and \ not hasattr(method, "_polkit_auth_required"): _decorator = dbus_polkit_require_auth(cls.default_polkit_auth_required) setattr(cls, attr_name, _decorator(method)) return super().__new__(cls)