Agent: Reformat long line in CommunicateAsBackdoorUser

This commit is contained in:
Mike Salvatore 2021-08-30 10:08:46 -04:00
parent 0635169362
commit 9c352c1b1f
1 changed files with 4 additions and 2 deletions

View File

@ -43,9 +43,11 @@ class CommunicateAsBackdoorUser(PBA):
try:
password = get_random_password()
with create_auto_new_user(username, password) as new_user:
http_request_commandline = CommunicateAsBackdoorUser.get_commandline_for_http_request(
http_request_commandline = (
CommunicateAsBackdoorUser.get_commandline_for_http_request(
INFECTION_MONKEY_WEBSITE_URL
)
)
exit_status = new_user.run_as(http_request_commandline)
self.send_result_telemetry(exit_status, http_request_commandline, username)
except subprocess.CalledProcessError as e: