2015-08-30 15:27:35 +08:00
|
|
|
from abc import ABCMeta, abstractmethod
|
|
|
|
|
|
|
|
__author__ = 'itamar'
|
|
|
|
|
|
|
|
class HostExploiter(object):
|
|
|
|
__metaclass__ = ABCMeta
|
2015-09-29 22:58:06 +08:00
|
|
|
_target_os_type = []
|
|
|
|
|
|
|
|
def is_os_supported(self, host):
|
|
|
|
return host.os.get('type') in self._target_os_type
|
2015-08-30 15:27:35 +08:00
|
|
|
|
|
|
|
@abstractmethod
|
2015-09-29 22:58:06 +08:00
|
|
|
def exploit_host(self, host, src_path=None):
|
2015-08-30 15:27:35 +08:00
|
|
|
raise NotImplementedError()
|
|
|
|
|
|
|
|
from win_ms08_067 import Ms08_067_Exploiter
|
|
|
|
from wmiexec import WmiExploiter
|
2015-09-07 15:25:25 +08:00
|
|
|
from smbexec import SmbExploiter
|
2015-09-29 22:58:06 +08:00
|
|
|
from rdpgrinder import RdpExploiter
|
|
|
|
from sshexec import SSHExploiter
|