Skip to content

Commit 61277c8

Browse files
committed
fix ruff
1 parent 913a713 commit 61277c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nxc/protocols/winrm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def enum_host_info(self):
5858
try:
5959
ntlm_info = parse_challenge(base64.b64decode(self.challenge_header.split(" ")[1].replace(",", "")))
6060
except Exception as e:
61-
self.logger.debug(f"Error parsing NTLM challenge: {str(e)}")
61+
self.logger.debug(f"Error parsing NTLM challenge: {e!s}")
6262
self.logger.debug(f"Raw challenge: {self.challenge_header.split(' ')[1].replace(',', '')[:20]}...")
6363
self.logger.error("Invalid NTLM challenge received from server. This may indicate NTLM is not supported and nxc winrm only support NTLM currently")
6464
self.no_ntlm = True

0 commit comments

Comments
 (0)