You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
At this path:
atomic_operator/execution/copier.py
The function "__copy_file_to_windows" function second argument is "desintation" instead of "destination".
The problem is it isn't only a typo.
When you call this function from the code at line 51 of the same file the call fails since the call variables are specified with their names:
self.__copy_file_to_windows(source=source, destination=destination).
Please replace all "destination" mentions in the code(3):
def __copy_file_to_windows(self, source, destination):
try:
command = f"New-Item -Path {os.path.dirname(destination)} -ItemType Directory"
if self.elevation_required:
command = f'Start-Process PowerShell -Verb RunAs; {command}'
output, streams, had_errors = self.windows_client.execute_ps(command)
response = self.windows_client.copy(source, destination)
except:
self.__logger.warning(f'Unable to execute copy of supporting file {source}')
self.__logger.warning(f'Output: {output}/nStreams: {streams}/nHad Errors: {had_errors}')
To Reproduce
Steps to reproduce the behavior:
For example: Run the atomic operator on T1218.002 with remoteRunner and it will try to copy a file to windows.
You will get an error
Expected behaviour
The expected behaviour should be for it to run without any errors
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: Window10
The text was updated successfully, but these errors were encountered:
Describe the bug
At this path:
atomic_operator/execution/copier.py
The function "__copy_file_to_windows" function second argument is "desintation" instead of "destination".
The problem is it isn't only a typo.
When you call this function from the code at line 51 of the same file the call fails since the call variables are specified with their names:
self.__copy_file_to_windows(source=source, destination=destination).
Please replace all "destination" mentions in the code(3):
def __copy_file_to_windows(self, source, destination):
try:
command = f"New-Item -Path {os.path.dirname(destination)} -ItemType Directory"
if self.elevation_required:
command = f'Start-Process PowerShell -Verb RunAs; {command}'
output, streams, had_errors = self.windows_client.execute_ps(command)
response = self.windows_client.copy(source, destination)
except:
self.__logger.warning(f'Unable to execute copy of supporting file {source}')
self.__logger.warning(f'Output: {output}/nStreams: {streams}/nHad Errors: {had_errors}')
To Reproduce
Steps to reproduce the behavior:
Expected behaviour
The expected behaviour should be for it to run without any errors
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: