monkey/chaos_monkey/system_info/windows_info_collector.py

33 lines
885 B
Python
Raw Normal View History

import logging
from mimikatz_collector import MimikatzCollector
from . import InfoCollector
LOG = logging.getLogger(__name__)
__author__ = 'uri'
2015-12-09 22:33:44 +08:00
class WindowsInfoCollector(InfoCollector):
"""
System information collecting module for Windows operating systems
"""
def __init__(self):
2015-12-09 22:33:44 +08:00
super(WindowsInfoCollector, self).__init__()
def get_info(self):
"""
Collect Windows system information
Hostname, process list and network subnets
Tries to read credential secrets using mimikatz
:return: Dict of system information
"""
LOG.debug("Running Windows collector")
2015-12-09 22:33:44 +08:00
self.get_hostname()
self.get_process_list()
2017-09-10 18:11:51 +08:00
self.get_network_info()
mimikatz_collector = MimikatzCollector()
self.info["credentials"] = mimikatz_collector.get_logon_info()
return self.info