shell bypass 403

GrazzMean Shell

Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.144.94.143
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : _unix.py
import os

from ._api import BaseFileLock

try:
    import fcntl
except ImportError:
    fcntl = None

#: a flag to indicate if the fcntl API is available
has_fcntl = fcntl is not None


class UnixFileLock(BaseFileLock):
    """Uses the :func:`fcntl.flock` to hard lock the lock file on unix systems."""

    def _acquire(self):
        open_mode = os.O_RDWR | os.O_CREAT | os.O_TRUNC
        fd = os.open(self._lock_file, open_mode)
        try:
            fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
        except (OSError, IOError):  # noqa: B014 # IOError is not OSError on python 2
            os.close(fd)
        else:
            self._lock_file_fd = fd

    def _release(self):
        # Do not remove the lockfile:
        #   https://github.com/tox-dev/py-filelock/issues/31
        #   https://stackoverflow.com/questions/17708885/flock-removing-locked-file-without-race-condition
        fd = self._lock_file_fd
        self._lock_file_fd = None
        fcntl.flock(fd, fcntl.LOCK_UN)
        os.close(fd)


__all__ = [
    "has_fcntl",
    "UnixFileLock",
]
© 2025 GrazzMean