Agent: Pass None to telemetry_messenger arg in nested PBA classes

This is not the most ideal way but it gets the job done without the unnecessary complexity of passing the telemetry messenger through different classes and functions when it's not needed.
This commit is contained in:
Shreya Malviya 2022-03-30 14:01:12 +05:30
parent 3f01b9bcac
commit ca0972f847
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ class ClearCommandHistory(PBA):
class ClearCommandHistoryFile(PBA): class ClearCommandHistoryFile(PBA):
def __init__(self, linux_cmds): def __init__(self, linux_cmds):
super().__init__( super().__init__(
self.telemetry_messenger, telemetry_messenger=None,
name=POST_BREACH_CLEAR_CMD_HISTORY, name=POST_BREACH_CLEAR_CMD_HISTORY,
linux_cmd=linux_cmds, linux_cmd=linux_cmds,
) )

View File

@ -64,7 +64,7 @@ class ModifyShellStartupFiles(PBA):
class ModifyShellStartupFile(PBA): class ModifyShellStartupFile(PBA):
def __init__(self, linux_cmds, windows_cmds): def __init__(self, linux_cmds, windows_cmds):
super().__init__( super().__init__(
self.telemetry_messenger, telemetry_messenger=None,
name=POST_BREACH_SHELL_STARTUP_FILE_MODIFICATION, name=POST_BREACH_SHELL_STARTUP_FILE_MODIFICATION,
linux_cmd=linux_cmds, linux_cmd=linux_cmds,
windows_cmd=windows_cmds, windows_cmd=windows_cmds,