forked from p15670423/monkey
Return network information.
This commit is contained in:
parent
53a20308de
commit
bdc9b2fcb9
|
@ -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()}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue