Surpress any errors when using rdp and broken python version

main
Alexander Neff 2023-12-07 22:01:56 +01:00
parent 388208d4ea
commit 5daa3ecc7f
1 changed files with 11 additions and 0 deletions

View File

@ -23,6 +23,17 @@ from asyauth.common.constants import asyauthSecret
from asysocks.unicomm.common.target import UniTarget, UniProto from asysocks.unicomm.common.target import UniTarget, UniProto
import platform
if platform.python_version() in ["3.11.5", "3.11.6", "3.12.0"]:
import sys
class DevNull:
def write(self, msg):
pass
sys.stderr = DevNull()
class rdp(connection): class rdp(connection):
def __init__(self, args, db, host): def __init__(self, args, db, host):
self.domain = None self.domain = None