Skip to content

Commit a1c57ee

Browse files
authored
Fixed nla detection and error format string
1 parent 3a5c109 commit a1c57ee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

nxc/protocols/rdp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def write(self, msg):
109109
def print_host_info(self):
110110
nla = colored(f"nla:{self.nla}", host_info_colors[3], attrs=["bold"]) if self.nla else colored(f"nla:{self.nla}", host_info_colors[2], attrs=["bold"])
111111
if self.domain is None:
112-
self.logger.display("Probably old, doesn't not support HYBRID or HYBRID_EX ({nla})")
112+
self.logger.display(f"Probably old, doesn't not support HYBRID or HYBRID_EX ({nla})")
113113
else:
114114
self.logger.display(f"{self.server_os} (name:{self.hostname}) (domain:{self.domain}) ({nla})")
115115
return True
@@ -181,7 +181,7 @@ def check_nla(self):
181181
credentials=self.auth,
182182
)
183183
asyncio.run(self.connect_rdp())
184-
if str(proto) == "SUPP_PROTOCOLS.RDP" or str(proto) == "SUPP_PROTOCOLS.SSL" or str(proto) == "SUPP_PROTOCOLS.SSL|SUPP_PROTOCOLS.RDP":
184+
if proto.value == SUPP_PROTOCOLS.RDP or proto.value == SUPP_PROTOCOLS.SSL or proto.value == SUPP_PROTOCOLS.SSL|SUPP_PROTOCOLS.RDP:
185185
self.nla = False
186186
return
187187
except Exception:

0 commit comments

Comments
 (0)