Remove unnecessary apostrophes from commandline

This commit is contained in:
Shay Nehmad 2019-09-04 12:42:46 +03:00
parent 097d8831c8
commit ae414bcd13
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ class CommunicateAsNewUser(PBA):
else: else:
try: try:
linux_cmds = BackdoorUser.get_linux_commands_to_add_user(username) linux_cmds = BackdoorUser.get_linux_commands_to_add_user(username)
commandline = "'ping -c 2 google.com'" commandline = "ping -c 2 google.com"
linux_cmds.extend([";", "sudo", "-u", username, commandline]) linux_cmds.extend([";", "sudo", "-u", username, commandline])
final_command = ' '.join(linux_cmds) final_command = ' '.join(linux_cmds)
logger.debug("Trying to execute these commands: {}".format(final_command)) logger.debug("Trying to execute these commands: {}".format(final_command))