Agent: Improve logging around SCM connection attempts

This commit is contained in:
Mike Salvatore 2022-03-18 12:58:42 -04:00
parent 75dd26b3df
commit 9532aba033
1 changed files with 2 additions and 4 deletions

View File

@ -103,13 +103,11 @@ class SMBExploiter(HostExploiter):
scmr_rpc.connect()
except Exception as exc:
logger.debug(
"Can't connect to SCM on exploited machine %r port %s : %s",
self.host,
port,
exc,
f"Can't connect to SCM on exploited machine {self.host}, port {port} : {exc}"
)
continue
logger.debug(f"Connected to SCM on exploited machine {self.host}, port {port}")
smb_conn = rpctransport.get_smb_connection()
break