forked from p15670423/monkey
Agent: Add a debug log message on successful auth to PowerShellClient
This commit is contained in:
parent
5be0a3d6f9
commit
e09f15b1bc
|
@ -86,6 +86,7 @@ class PowerShellClient(IPowerShellClient):
|
||||||
# Attempt to execute dir command to know if authentication was successful. This will raise
|
# Attempt to execute dir command to know if authentication was successful. This will raise
|
||||||
# an exception if authentication was not successful.
|
# an exception if authentication was not successful.
|
||||||
self.execute_cmd("dir")
|
self.execute_cmd("dir")
|
||||||
|
logger.debug("Successfully authenticated to remote PowerShell service")
|
||||||
|
|
||||||
def execute_cmd(self, cmd: str) -> str:
|
def execute_cmd(self, cmd: str) -> str:
|
||||||
output, _, _ = self._client.execute_cmd(cmd)
|
output, _, _ = self._client.execute_cmd(cmd)
|
||||||
|
|
Loading…
Reference in New Issue