forked from p15670423/monkey
30 lines
676 B
Python
30 lines
676 B
Python
|
from abc import ABCMeta, abstractmethod
|
||
|
|
||
|
__author__ = 'itamar'
|
||
|
|
||
|
|
||
|
class HostScanner(object):
|
||
|
__metaclass__ = ABCMeta
|
||
|
|
||
|
@abstractmethod
|
||
|
def is_host_alive(self, host):
|
||
|
raise NotImplementedError()
|
||
|
|
||
|
|
||
|
class HostFinger(object):
|
||
|
__metaclass__ = ABCMeta
|
||
|
|
||
|
@abstractmethod
|
||
|
def get_host_fingerprint(self, host):
|
||
|
raise NotImplementedError()
|
||
|
|
||
|
from ping_scanner import PingScanner
|
||
|
from tcp_scanner import TcpScanner
|
||
|
from smbfinger import SMBFinger
|
||
|
from sshfinger import SSHFinger
|
||
|
from httpfinger import HTTPFinger
|
||
|
from elasticfinger import ElasticFinger
|
||
|
from mysqlfinger import MySQLFinger
|
||
|
from info import local_ips
|
||
|
from info import get_free_tcp_port
|