Agent: Rename IServiceExploiter -> IExploitableService

This commit is contained in:
Mike Salvatore 2022-01-10 08:30:55 -05:00
parent eb10bdaa4e
commit 64827ac589
5 changed files with 9 additions and 9 deletions

View File

@ -1,10 +1,10 @@
from typing import List
from .exploitable_service import IExploitableService
from .i_service_exploiter import IServiceExploiter
from .poc_docker import DockerPOCExploit
from .solr import SolrExploit
from .tomcat import TomcatExploit
def get_log4shell_service_exploiters() -> List[IExploitableService]:
def get_log4shell_service_exploiters() -> List[IServiceExploiter]:
return [DockerPOCExploit(), SolrExploit(), TomcatExploit()]

View File

@ -3,7 +3,7 @@ import abc
from infection_monkey.model import VictimHost
class IExploitableService(metaclass=abc.ABCMeta):
class IServiceExploiter(metaclass=abc.ABCMeta):
@property
@abc.abstractmethod
def service_name(self) -> str:

View File

@ -2,13 +2,13 @@ from logging import getLogger
import requests
from infection_monkey.exploit.log4shell_utils.service_exploiters import IExploitableService
from infection_monkey.exploit.log4shell_utils.service_exploiters import IServiceExploiter
from infection_monkey.model import VictimHost
logger = getLogger(__name__)
class DockerPOCExploit(IExploitableService):
class DockerPOCExploit(IServiceExploiter):
service_name = "GoFinance mock application"

View File

@ -2,13 +2,13 @@ from logging import getLogger
import requests
from infection_monkey.exploit.log4shell_utils.service_exploiters import IExploitableService
from infection_monkey.exploit.log4shell_utils.service_exploiters import IServiceExploiter
from infection_monkey.model import VictimHost
logger = getLogger(__name__)
class SolrExploit(IExploitableService):
class SolrExploit(IServiceExploiter):
service_name = "Apache Solr"
@staticmethod

View File

@ -2,13 +2,13 @@ from logging import getLogger
import requests
from infection_monkey.exploit.log4shell_utils.service_exploiters import IExploitableService
from infection_monkey.exploit.log4shell_utils.service_exploiters import IServiceExploiter
from infection_monkey.model import VictimHost
logger = getLogger(__name__)
class TomcatExploit(IExploitableService):
class TomcatExploit(IServiceExploiter):
service_name = "Apache Tomcat"
@staticmethod