forked from p15670423/monkey
agent: Add a log message when ransomware leaves a README.txt
This commit is contained in:
parent
d87b8ae4a7
commit
6301ec9d14
|
@ -81,7 +81,10 @@ class RansomwarePayload:
|
||||||
|
|
||||||
def _leave_readme(self):
|
def _leave_readme(self):
|
||||||
if self._readme_enabled:
|
if self._readme_enabled:
|
||||||
|
readme_dest_path = Path(self._target_dir) / README_DEST
|
||||||
|
LOG.info(f"Leaving a ransomware README file at {readme_dest_path}")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
shutil.copyfile(README_SRC, Path(self._target_dir) / README_DEST)
|
shutil.copyfile(README_SRC, readme_dest_path)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
LOG.warning(f"An error occurred while attempting to leave a README.txt file: {ex}")
|
LOG.warning(f"An error occurred while attempting to leave a README.txt file: {ex}")
|
||||||
|
|
Loading…
Reference in New Issue