forked from p15670423/monkey
Agent: Rename IServiceExploiter -> IExploitableService
This commit is contained in:
parent
eb10bdaa4e
commit
64827ac589
|
@ -1,10 +1,10 @@
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
from .exploitable_service import IExploitableService
|
from .i_service_exploiter import IServiceExploiter
|
||||||
from .poc_docker import DockerPOCExploit
|
from .poc_docker import DockerPOCExploit
|
||||||
from .solr import SolrExploit
|
from .solr import SolrExploit
|
||||||
from .tomcat import TomcatExploit
|
from .tomcat import TomcatExploit
|
||||||
|
|
||||||
|
|
||||||
def get_log4shell_service_exploiters() -> List[IExploitableService]:
|
def get_log4shell_service_exploiters() -> List[IServiceExploiter]:
|
||||||
return [DockerPOCExploit(), SolrExploit(), TomcatExploit()]
|
return [DockerPOCExploit(), SolrExploit(), TomcatExploit()]
|
||||||
|
|
|
@ -3,7 +3,7 @@ import abc
|
||||||
from infection_monkey.model import VictimHost
|
from infection_monkey.model import VictimHost
|
||||||
|
|
||||||
|
|
||||||
class IExploitableService(metaclass=abc.ABCMeta):
|
class IServiceExploiter(metaclass=abc.ABCMeta):
|
||||||
@property
|
@property
|
||||||
@abc.abstractmethod
|
@abc.abstractmethod
|
||||||
def service_name(self) -> str:
|
def service_name(self) -> str:
|
|
@ -2,13 +2,13 @@ from logging import getLogger
|
||||||
|
|
||||||
import requests
|
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
|
from infection_monkey.model import VictimHost
|
||||||
|
|
||||||
logger = getLogger(__name__)
|
logger = getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class DockerPOCExploit(IExploitableService):
|
class DockerPOCExploit(IServiceExploiter):
|
||||||
|
|
||||||
service_name = "GoFinance mock application"
|
service_name = "GoFinance mock application"
|
||||||
|
|
||||||
|
|
|
@ -2,13 +2,13 @@ from logging import getLogger
|
||||||
|
|
||||||
import requests
|
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
|
from infection_monkey.model import VictimHost
|
||||||
|
|
||||||
logger = getLogger(__name__)
|
logger = getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class SolrExploit(IExploitableService):
|
class SolrExploit(IServiceExploiter):
|
||||||
service_name = "Apache Solr"
|
service_name = "Apache Solr"
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
|
@ -2,13 +2,13 @@ from logging import getLogger
|
||||||
|
|
||||||
import requests
|
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
|
from infection_monkey.model import VictimHost
|
||||||
|
|
||||||
logger = getLogger(__name__)
|
logger = getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class TomcatExploit(IExploitableService):
|
class TomcatExploit(IServiceExploiter):
|
||||||
service_name = "Apache Tomcat"
|
service_name = "Apache Tomcat"
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Reference in New Issue