Actually use mimikatz configuration variable

This commit is contained in:
Daniel Goldberg 2018-12-04 10:06:48 +02:00
parent df23be9c75
commit cc27b5dd20
1 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,9 @@ class WindowsInfoCollector(InfoCollector):
LOG.debug('finished get_wmi_info')
def get_mimikatz_info(self):
from infection_monkey.config import WormConfiguration
if not WormConfiguration.should_use_mimikatz:
return
mimikatz_collector = MimikatzCollector()
mimikatz_info = mimikatz_collector.get_logon_info()
if mimikatz_info: