monkey/infection_monkey/network/__init__.py

30 lines
722 B
Python
Raw Normal View History

2015-08-30 15:27:35 +08:00
from abc import ABCMeta, abstractmethod
__author__ = 'itamar'
2015-11-30 16:56:20 +08:00
2015-08-30 15:27:35 +08:00
class HostScanner(object):
__metaclass__ = ABCMeta
@abstractmethod
def is_host_alive(self, host):
raise NotImplementedError()
2015-11-30 16:56:20 +08:00
class HostFinger(object):
__metaclass__ = ABCMeta
@abstractmethod
def get_host_fingerprint(self, host):
raise NotImplementedError()
2015-11-30 20:11:19 +08:00
from ping_scanner import PingScanner
from tcp_scanner import TcpScanner
from smbfinger import SMBFinger
from sshfinger import SSHFinger
from httpfinger import HTTPFinger
2017-09-25 20:13:36 +08:00
from elasticfinger import ElasticFinger
from mysqlfinger import MySQLFinger
2015-11-30 20:11:19 +08:00
from info import local_ips
from info import get_free_tcp_port
from mssql_fingerprint import MSSQLFingerprint