Commit da98602 1 parent ccfe0a7 commit da98602 Copy full SHA for da98602
File tree 1 file changed +1
-19
lines changed
monkey/infection_monkey/exploit
1 file changed +1
-19
lines changed Original file line number Diff line number Diff line change 2
2
from abc import abstractmethod
3
3
from datetime import datetime
4
4
5
- import infection_monkey .exploit
6
5
from common .utils .exceptions import FailedExploitationError
7
6
from common .utils .exploit_enum import ExploitType
8
7
from infection_monkey .config import WormConfiguration
9
- from infection_monkey .utils .plugins .plugin import Plugin
10
8
11
9
logger = logging .getLogger (__name__ )
12
10
13
11
14
- class HostExploiter (Plugin ):
15
- @staticmethod
16
- def should_run (class_name ):
17
- """
18
- Decides if post breach action is enabled in config
19
- :return: True if it needs to be ran, false otherwise
20
- """
21
- return class_name in WormConfiguration .exploiter_classes
22
-
23
- @staticmethod
24
- def base_package_file ():
25
- return infection_monkey .exploit .__file__
26
-
27
- @staticmethod
28
- def base_package_name ():
29
- return infection_monkey .exploit .__package__
30
-
12
+ class HostExploiter :
31
13
_TARGET_OS_TYPE = []
32
14
33
15
# Usual values are 'vulnerability' or 'brute_force'
You can’t perform that action at this time.
0 commit comments