Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.135.201.190
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python2.7 /
site-packages /
tuned /
utils /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
0
B
-rw-r--r--
2019-03-21 22:10
__init__.pyc
143
B
-rw-r--r--
2021-02-02 16:30
__init__.pyo
143
B
-rw-r--r--
2021-02-02 16:30
commands.py
13.23
KB
-rw-r--r--
2019-03-21 22:10
commands.pyc
16.11
KB
-rw-r--r--
2021-02-02 16:30
commands.pyo
16.11
KB
-rw-r--r--
2021-02-02 16:30
global_config.py
1.98
KB
-rw-r--r--
2019-03-21 22:10
global_config.pyc
3.23
KB
-rw-r--r--
2021-02-02 16:30
global_config.pyo
3.23
KB
-rw-r--r--
2021-02-02 16:30
nettool.py
5.57
KB
-rw-r--r--
2019-03-21 22:10
nettool.pyc
6.04
KB
-rw-r--r--
2021-02-02 16:30
nettool.pyo
6.04
KB
-rw-r--r--
2021-02-02 16:30
plugin_loader.py
1.75
KB
-rw-r--r--
2019-03-21 22:10
plugin_loader.pyc
2.75
KB
-rw-r--r--
2021-02-02 16:30
plugin_loader.pyo
2.57
KB
-rw-r--r--
2021-02-02 16:30
polkit.py
1.4
KB
-rw-r--r--
2019-03-21 22:10
polkit.pyc
1.98
KB
-rw-r--r--
2021-02-02 16:30
polkit.pyo
1.98
KB
-rw-r--r--
2021-02-02 16:30
profile_recommender.py
3.82
KB
-rw-r--r--
2019-03-21 22:10
profile_recommender.pyc
4.53
KB
-rw-r--r--
2021-02-02 16:30
profile_recommender.pyo
4.53
KB
-rw-r--r--
2021-02-02 16:30
Save
Rename
import dbus import tuned.logs log = tuned.logs.get() class polkit(): def __init__(self): self._bus = dbus.SystemBus() self._proxy = self._bus.get_object('org.freedesktop.PolicyKit1', '/org/freedesktop/PolicyKit1/Authority', follow_name_owner_changes = True) self._authority = dbus.Interface(self._proxy, dbus_interface='org.freedesktop.PolicyKit1.Authority') def check_authorization(self, sender, action_id): """Check authorization, return codes: 1 - authorized 2 - polkit error, but authorized with fallback method 0 - unauthorized -1 - polkit error and unauthorized by the fallback method -2 - polkit error and unable to use the fallback method """ if sender is None or action_id is None: return False details = {} flags = 1 # AllowUserInteraction flag cancellation_id = "" # No cancellation id subject = ("system-bus-name", {"name" : sender}) try: ret = self._authority.CheckAuthorization(subject, action_id, details, flags, cancellation_id)[0] except (dbus.exceptions.DBusException, ValueError) as e: log.error("error querying polkit: %s" % e) # No polkit or polkit error, fallback to always allow root try: uid = self._bus.get_unix_user(sender) except dbus.exceptions.DBusException as e: log.error("error using falback authorization method: %s" % e) return -2 if uid == 0: return 2 else: return -1 return 1 if ret else 0