From 1d5df5b9b3e3c59090e762b320662a87db92b948 Mon Sep 17 00:00:00 2001 From: mpgn Date: Wed, 24 May 2023 09:19:26 -0400 Subject: [PATCH] fix rdp scanner --- cme/protocols/rdp.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/cme/protocols/rdp.py b/cme/protocols/rdp.py index 194a8543..d9558779 100644 --- a/cme/protocols/rdp.py +++ b/cme/protocols/rdp.py @@ -196,6 +196,7 @@ class rdp(connection): self.domain = info_domain["dnsdomainname"] self.hostname = info_domain["computername"] self.server_os = info_domain["os_guess"] + " Build " + str(info_domain["os_build"]) + self.logger.extra["hostname"] = self.hostname self.output_filename = os.path.expanduser(f"~/.cme/logs/{self.hostname}_{self.host}_{datetime.now().strftime('%Y-%m-%d_%H%M%S')}") self.output_filename = self.output_filename.replace(":", "-") @@ -238,16 +239,7 @@ class rdp(connection): if err is not None: raise err - def kerberos_login( - self, - domain, - username, - password="", - ntlm_hash="", - aesKey="", - kdcHost="", - useCache=False, - ): + def kerberos_login(self, domain, username, password="", ntlm_hash="", aesKey="", kdcHost="", useCache=False): try: lmhash = "" nthash = "" @@ -291,6 +283,7 @@ class rdp(connection): proxies=None, dns=None, dc_ip=self.domain, + domain=self.domain ) self.auth = KerberosCredential( target=kerberos_target,