def replace(self, encoded_cmd, file_svc):
    decoded_cmd = b64decode(encoded_cmd).decode('utf-8', errors='ignore').replace('\n', '')
    decoded_cmd = decoded_cmd.replace(self.RESERVED['server'], self.server)
    decoded_cmd = decoded_cmd.replace(self.RESERVED['group'], self.group)
    decoded_cmd = decoded_cmd.replace(self.RESERVED['agent_paw'], self.paw)
    decoded_cmd = decoded_cmd.replace(self.RESERVED['location'], self.location)
    decoded_cmd = decoded_cmd.replace(self.RESERVED['exe_name'], self.exe_name)
    decoded_cmd = self._replace_payload_data(decoded_cmd, file_svc)
    return decoded_cmd
def replace(self, encoded_cmd, file_svc):
    decoded_cmd = b64decode(encoded_cmd).decode('utf-8', errors='ignore').replace('\n', )
    decoded_cmd = decoded_cmd.replace(self.RESERVED['server'], self.server)
    decoded_cmd = decoded_cmd.replace(self.RESERVED['group'], self.group)
    decoded_cmd = decoded_cmd.replace(self.RESERVED['agent_paw'], self.paw)
    decoded_cmd = decoded_cmd.replace(self.RESERVED['location'], self.location)
    decoded_cmd = decoded_cmd.replace(self.RESERVED['exe_name'], self.exe_name)
    decoded_cmd = self._replace_payload_data(decoded_cmd, file_svc)
    return decoded_cmd