Change ransomware_payload.py to not encrypt files in CWD if no directory was specified

This commit is contained in:
VakarisZ 2021-07-07 11:41:42 +03:00
parent ca1712cdd6
commit d3beebf995
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class RansomwarePayload:
return None
def run_payload(self):
if self._encryption_enabled:
if self._encryption_enabled and self._target_dir:
LOG.info("Running ransomware payload")
file_list = self._find_files()
self._encrypt_files(file_list)