Change ransomware_payload.py to not encrypt files in CWD if no directory was specified
This commit is contained in:
parent
ca1712cdd6
commit
d3beebf995
|
@ -50,7 +50,7 @@ class RansomwarePayload:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def run_payload(self):
|
def run_payload(self):
|
||||||
if self._encryption_enabled:
|
if self._encryption_enabled and self._target_dir:
|
||||||
LOG.info("Running ransomware payload")
|
LOG.info("Running ransomware payload")
|
||||||
file_list = self._find_files()
|
file_list = self._find_files()
|
||||||
self._encrypt_files(file_list)
|
self._encrypt_files(file_list)
|
||||||
|
|
Loading…
Reference in New Issue