2015-08-30 15:27:35 +08:00
|
|
|
|
|
|
|
from abc import ABCMeta, abstractmethod
|
2015-09-29 22:55:54 +08:00
|
|
|
import socket
|
2015-08-30 15:27:35 +08:00
|
|
|
|
|
|
|
__author__ = 'itamar'
|
|
|
|
|
|
|
|
class HostScanner(object):
|
|
|
|
__metaclass__ = ABCMeta
|
|
|
|
|
|
|
|
@abstractmethod
|
|
|
|
def is_host_alive(self, host):
|
|
|
|
raise NotImplementedError()
|
|
|
|
|
2015-09-29 22:55:54 +08:00
|
|
|
class HostFinger(object):
|
|
|
|
__metaclass__ = ABCMeta
|
|
|
|
|
|
|
|
@abstractmethod
|
|
|
|
def get_host_fingerprint(self, host):
|
|
|
|
raise NotImplementedError()
|
|
|
|
|
2015-08-30 15:27:35 +08:00
|
|
|
|
|
|
|
from ping_scanner import PingScanner
|
2015-09-29 22:55:54 +08:00
|
|
|
from tcp_scanner import TcpScanner
|
|
|
|
from smbfinger import SMBFinger
|
|
|
|
from sshfinger import SSHFinger
|
|
|
|
from info import local_ips
|