forked from p34709852/monkey
Agent: Rename IServiceExploiter -> IExploitableService
This commit is contained in:
parent
eb10bdaa4e
commit
64827ac589
|
@ -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()]
|
||||
|
|
|
@ -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:
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue