Skip to content
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

Fix permissions.py module causing analysis failure #2203

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

ChrisThibodeaux
Copy link
Contributor

@ChrisThibodeaux ChrisThibodeaux commented Jul 2, 2024

This change allows permissions to be enabled in auxiliary.conf and not break analysis. Currently, when self.options.get("permissions", "") returns "" in permissions.py, a [Errno 13] Permission denied occurs. Issue #2197 has more detailed information. This was an issue on Windows 10 and 11 machines.

The analysis breaking behavior occurred when locations was set to "" as a return from self.options.get("permissions", "") and then again set to locations = locations.split("|"), creating a list. As lists are iterable, the for loop uses the empty string as a location. I am not entirely sure what happens on the Windows machine, but my assumption is that permissions of the CAPE-created temp directory are changed in this scenario.

@doomedraven doomedraven merged commit faaeb60 into kevoreilly:master Jul 2, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants