Current Path: > > opt > cloudlinux > venv > lib64 > python3.11 > > site-packages > pyvirtualdisplay
Operation : Linux premium131.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 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
examples | Directory | - | - | |
__init__.py | File | 241 bytes | April 17 2025 13:10:58. | |
about.py | File | 20 bytes | April 17 2025 13:10:58. | |
abstractdisplay.py | File | 12583 bytes | April 17 2025 13:10:58. | |
display.py | File | 3257 bytes | April 17 2025 13:10:58. | |
py.typed | File | 0 bytes | April 17 2025 13:10:58. | |
smartdisplay.py | File | 2663 bytes | April 17 2025 13:10:58. | |
util.py | File | 486 bytes | April 17 2025 13:10:58. | |
xauth.py | File | 1167 bytes | April 17 2025 13:10:58. | |
xephyr.py | File | 1635 bytes | April 17 2025 13:10:58. | |
xvfb.py | File | 1941 bytes | April 17 2025 13:10:58. | |
xvnc.py | File | 1917 bytes | April 17 2025 13:10:58. |
"""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()
SILENT KILLER Tool