Agent: Remove comment from function in backdoor user PBA since the code is self-explanatory

This commit is contained in:
Shreya Malviya 2022-03-29 17:13:44 +05:30
parent ba49e4d23e
commit 70186a40f6
1 changed files with 0 additions and 7 deletions

View File

@ -90,13 +90,6 @@ class CommunicateAsBackdoorUser(PBA):
@staticmethod @staticmethod
def _get_result_for_telemetry(exit_status, commandline, username): def _get_result_for_telemetry(exit_status, commandline, username):
"""
Parses the result of the command and returns it to be sent as telemetry from the master.
:param exit_status: In both Windows and Linux, 0 exit code indicates success.
:param commandline: Exact commandline which was executed, for reporting back.
:param username: Username from which the command was executed, for reporting back.
"""
if exit_status == 0: if exit_status == 0:
result = (CREATED_PROCESS_AS_USER_SUCCESS_FORMAT.format(commandline, username), True) result = (CREATED_PROCESS_AS_USER_SUCCESS_FORMAT.format(commandline, username), True)
else: else: