-
Notifications
You must be signed in to change notification settings - Fork 807
Closed
Labels
BugAn error, flaw, misbehavior or failure in the Monkey or Monkey Island.An error, flaw, misbehavior or failure in the Monkey or Monkey Island.Complexity: LowImpact: Low
Description
Describe the bug
If a README.txt.monkey file is present in the ransomware target directory the encryption of the files fail with {'path': 'C:\\w\\Dump\\README.txt', 'success': False, 'error': "[WinError 183] Cannot create a file when that file already exists: 'C:\\\\w\\\\Dump\\\\README.txt' -> 'C:\\\\w\\\\Dump\\\\README.txt.m0nk3y'"}
To Reproduce
Steps to reproduce the behavior:
- Create a directory and add some files
- Enter a the directory as a ransomware target dir into the configuration
- Run monkey 3 times in a row (or create a README.txt.m0nk3y file)
- On the third run, monkey will throw an error and files won't get encrypted
Expected behavior
Monkey shouldn't encrypt README.txt and README.txt.m0nk3y files
Machine version (please complete the following information):
- OS: Windows
Tasks
- Check hash of README.txt file. If it's ours, skip it. (0d) @mssalvatore
- Experiment to see under what conditions Windows will change the README file's line endings.
Metadata
Metadata
Assignees
Labels
BugAn error, flaw, misbehavior or failure in the Monkey or Monkey Island.An error, flaw, misbehavior or failure in the Monkey or Monkey Island.Complexity: LowImpact: Low