Surpress any errors when using rdp and broken python version
parent
388208d4ea
commit
5daa3ecc7f
|
@ -23,6 +23,17 @@ from asyauth.common.constants import asyauthSecret
|
|||
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):
|
||||
def __init__(self, args, db, host):
|
||||
self.domain = None
|
||||
|
|
Loading…
Reference in New Issue