forked from p15670423/monkey
Merge remote-tracking branch 'upstream/develop' into attack_report
This commit is contained in:
commit
20e38291e3
|
@ -1,5 +1,6 @@
|
||||||
import logging
|
import logging
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import socket
|
||||||
from infection_monkey.control import ControlClient
|
from infection_monkey.control import ControlClient
|
||||||
from infection_monkey.utils import is_windows_os
|
from infection_monkey.utils import is_windows_os
|
||||||
from infection_monkey.config import WormConfiguration
|
from infection_monkey.config import WormConfiguration
|
||||||
|
@ -44,9 +45,12 @@ class PBA(object):
|
||||||
"""
|
"""
|
||||||
exec_funct = self._execute_default
|
exec_funct = self._execute_default
|
||||||
result = exec_funct()
|
result = exec_funct()
|
||||||
|
hostname = socket.gethostname()
|
||||||
ControlClient.send_telemetry('post_breach', {'command': self.command,
|
ControlClient.send_telemetry('post_breach', {'command': self.command,
|
||||||
'result': result,
|
'result': result,
|
||||||
'name': self.name})
|
'name': self.name,
|
||||||
|
'hostname': hostname,
|
||||||
|
'ip': socket.gethostbyname(hostname)})
|
||||||
|
|
||||||
def _execute_default(self):
|
def _execute_default(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue