Return network information.

This commit is contained in:
Daniel Goldberg 2017-09-10 13:11:51 +03:00
parent 53a20308de
commit bdc9b2fcb9
3 changed files with 6 additions and 0 deletions

View File

@ -2,6 +2,7 @@ import sys
import socket
import psutil
from enum import IntEnum
from network.info import get_host_subnets, local_ips
__author__ = 'uri'
@ -69,3 +70,6 @@ class InfoCollector(object):
}
pass
self.info['process_list'] = processes
def get_network_info(self):
self.info['network'] = {'subnets': get_host_subnets(), 'local_ips': local_ips()}

View File

@ -14,4 +14,5 @@ class LinuxInfoCollector(InfoCollector):
def get_info(self):
self.get_hostname()
self.get_process_list()
self.get_network_info()
return self.info

View File

@ -14,6 +14,7 @@ class WindowsInfoCollector(InfoCollector):
def get_info(self):
self.get_hostname()
self.get_process_list()
self.get_network_info()
mimikatz_collector = MimikatzCollector()
self.info["credentials"] = mimikatz_collector.get_logon_info()
return self.info