!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 

uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 

uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) 

Safe-mode: OFF (not secure)

/usr/lib/python2.7/site-packages/tuned/utils/   drwxr-xr-x
Free 9.29 GB of 93.48 GB (9.94%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     polkit.py (1.4 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
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

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0039 ]--