-
Notifications
You must be signed in to change notification settings - Fork 786
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
Create secure custom PBA directory on Windows #1270
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1270 +/- ##
===========================================
- Coverage 30.12% 30.11% -0.02%
===========================================
Files 444 445 +1
Lines 13317 13341 +24
===========================================
+ Hits 4012 4017 +5
- Misses 9305 9324 +19
Continue to review full report at Codecov.
|
import win32api | ||
import win32security | ||
|
||
FULL_CONTROL = 2032127 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also use this in test_file_utils.py. Can we put this constant somewhere common for tests? Maybe tests/monkey_island/utils.py.
st = os.stat(PostBreachFilesService.get_custom_pba_directory()) | ||
|
||
assert st.st_mode == 0o40700 | ||
|
||
|
||
def _get_acl_and_sid_from_path(path: str): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also duplicated from test_file_utils.py.
What does this PR do?
Fixes #1196
PR Checklist
Was the CHANGELOG.md updated to reflect the changes?Was the documentation framework updated to reflect the changes?Testing Checklist
If applicable, add screenshots or log transcripts of the feature working