-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sudo causes errors on complex shell based tests #120
Comments
Thank you for telling me the cause. However, like the guide, I declared the shlex package and revised the 'localrunner.py' 39 line like However, the same error occurs. So what do you think about entering 'sudo bash -c' in the command part of the 'yaml' file as another way?
|
swimlane/atomic-operator#55 regarding |
@rc-GeorgeAllen hey you - just saw this one actually lol. |
https://github.com/swimlane/atomic-operator/blob/a5dd297c106e9cf699d8dcff4d21223cdf41d6e2/atomic_operator/execution/localrunner.py#L39
causes errors when the
{command}
is a script containing a function, eg:https://github.com/redcanaryco/atomic-red-team/blob/96f7ca5f9bfdd1c1c07b7e4629be0543d3bb709f/atomics/T1003.008/T1003.008.yaml#L71-L74
This could be fixed by wrapping the command with bash -c and/or escaping:
The text was updated successfully, but these errors were encountered: