Add efsr_spray module - #718
Conversation
|
Interesting, any references about this? this will have lots of help in coercing auth attack |
|
Nice one, thanks for the PR! |
You can read about it in our blog on Windows coercion: |
I implemented an option to exclude shares and excluded SYSVOL by default. On NETLOGON I could delete the files afterwards, so I did not include it by default. |
|
@rtpt-romankarwacik Thank you for this. Can you also check the code review on the return statement when failing to delete file ? EDIT : Sorry I thought I had pushed the finish review button ! |
|
Thanks again for the PR ! |


Description
Since Windows 11 23H2 the EFS service is only activated on demand. One ways to activate it is to write an encrypted file to a share on the respective device. This module automates this by trying to create an encrypted file on all available shares. In practice this works for any shares where the respective user has WRITE or MODIFY permissions, so print queues can also be used for this.
Type of change
Setup guide for the review
Check on a up-to-date Windows 11 that the EFS service is disabled, and use the tool:
Checklist:
poetry run python -m ruff check . --preview, use--fixto automatically fix what it can)