Agent: Remove disused HostFinger abstract class

This commit is contained in:
Mike Salvatore 2022-02-20 14:20:33 -05:00
parent ccfe0a773e
commit 17be51fe71
1 changed files with 0 additions and 33 deletions

View File

@ -1,33 +0,0 @@
from abc import abstractmethod
import infection_monkey.network
from infection_monkey.config import WormConfiguration
from infection_monkey.utils.plugins.plugin import Plugin
class HostFinger(Plugin):
@staticmethod
def base_package_file():
return infection_monkey.network.__file__
@staticmethod
def base_package_name():
return infection_monkey.network.__package__
@property
@abstractmethod
def _SCANNED_SERVICE(self):
pass
def init_service(self, services, service_key, port):
services[service_key] = {}
services[service_key]["display_name"] = self._SCANNED_SERVICE
services[service_key]["port"] = port
@abstractmethod
def get_host_fingerprint(self, host):
raise NotImplementedError()
@staticmethod
def should_run(class_name: str) -> bool:
return class_name in WormConfiguration.finger_classes