2021-05-07 07:51:23 +08:00
|
|
|
"""
|
|
|
|
Everything in this file is what Vulture found as dead code but either isn't really
|
|
|
|
dead or is kept deliberately. Referencing these in a file like this makes sure that
|
|
|
|
Vulture doesn't mark these as dead again.
|
|
|
|
"""
|
2022-08-31 02:13:53 +08:00
|
|
|
from common.agent_configuration.agent_sub_configurations import (
|
|
|
|
CustomPBAConfiguration,
|
|
|
|
ScanTargetConfiguration,
|
|
|
|
)
|
2022-09-06 22:29:42 +08:00
|
|
|
from common.credentials import Credentials, LMHash, NTHash
|
2022-01-05 21:18:12 +08:00
|
|
|
from infection_monkey.exploit.log4shell_utils.ldap_server import LDAPServerFactory
|
2022-09-06 21:30:29 +08:00
|
|
|
from monkey_island.cc.event_queue import IslandEventTopic, PyPubSubIslandEventQueue
|
2021-09-21 15:37:57 +08:00
|
|
|
from monkey_island.cc.models import Report
|
2022-05-24 15:27:07 +08:00
|
|
|
from monkey_island.cc.models.networkmap import Arc, NetworkMap
|
2022-09-16 22:48:34 +08:00
|
|
|
from monkey_island.cc.repository import (
|
|
|
|
MongoAgentEventRepository,
|
|
|
|
MongoAgentRepository,
|
|
|
|
MongoMachineRepository,
|
|
|
|
)
|
2022-05-24 15:27:07 +08:00
|
|
|
from monkey_island.cc.repository.attack.IMitigationsRepository import IMitigationsRepository
|
2022-09-16 20:44:10 +08:00
|
|
|
from monkey_island.cc.repository.i_agent_event_repository import IAgentEventRepository
|
2022-05-31 17:59:38 +08:00
|
|
|
from monkey_island.cc.repository.i_agent_repository import IAgentRepository
|
|
|
|
from monkey_island.cc.repository.i_attack_repository import IAttackRepository
|
|
|
|
from monkey_island.cc.repository.i_config_repository import IConfigRepository
|
|
|
|
from monkey_island.cc.repository.i_log_repository import ILogRepository
|
|
|
|
from monkey_island.cc.repository.i_machine_repository import IMachineRepository
|
|
|
|
from monkey_island.cc.repository.i_report_repository import IReportRepository
|
|
|
|
from monkey_island.cc.repository.i_simulation_repository import ISimulationRepository
|
2022-07-04 23:49:32 +08:00
|
|
|
from monkey_island.cc.repository.ICredentials import ICredentialsRepository
|
2022-09-16 21:45:51 +08:00
|
|
|
from monkey_island.cc.repository.zero_trust.IEventRepository import IEventRepository
|
2022-05-24 15:27:07 +08:00
|
|
|
from monkey_island.cc.repository.zero_trust.IFindingRepository import IFindingRepository
|
2021-05-07 07:51:23 +08:00
|
|
|
|
|
|
|
fake_monkey_dir_path # unused variable (monkey/tests/infection_monkey/post_breach/actions/test_users_custom_pba.py:37)
|
|
|
|
set_os_linux # unused variable (monkey/tests/infection_monkey/post_breach/actions/test_users_custom_pba.py:37)
|
|
|
|
fake_monkey_dir_path # unused variable (monkey/tests/infection_monkey/post_breach/actions/test_users_custom_pba.py:57)
|
|
|
|
set_os_windows # unused variable (monkey/tests/infection_monkey/post_breach/actions/test_users_custom_pba.py:57)
|
|
|
|
fake_monkey_dir_path # unused variable (monkey/tests/infection_monkey/post_breach/actions/test_users_custom_pba.py:77)
|
|
|
|
set_os_linux # unused variable (monkey/tests/infection_monkey/post_breach/actions/test_users_custom_pba.py:77)
|
|
|
|
fake_monkey_dir_path # unused variable (monkey/tests/infection_monkey/post_breach/actions/test_users_custom_pba.py:92)
|
|
|
|
set_os_windows # unused variable (monkey/tests/infection_monkey/post_breach/actions/test_users_custom_pba.py:92)
|
|
|
|
fake_monkey_dir_path # unused variable (monkey/tests/infection_monkey/post_breach/actions/test_users_custom_pba.py:107)
|
|
|
|
set_os_linux # unused variable (monkey/tests/infection_monkey/post_breach/actions/test_users_custom_pba.py:107)
|
|
|
|
fake_monkey_dir_path # unused variable (monkey/tests/infection_monkey/post_breach/actions/test_users_custom_pba.py:122)
|
|
|
|
set_os_windows # unused variable (monkey/tests/infection_monkey/post_breach/actions/test_users_custom_pba.py:122)
|
|
|
|
patch_new_user_classes # unused variable (monkey/tests/infection_monkey/utils/test_auto_new_user_factory.py:25)
|
|
|
|
patch_new_user_classes # unused variable (monkey/tests/infection_monkey/utils/test_auto_new_user_factory.py:31)
|
2021-05-11 22:56:51 +08:00
|
|
|
custom_pba_directory # unused variable (monkey/tests/monkey_island/cc/services/test_post_breach_files.py:20)
|
2021-05-07 07:51:23 +08:00
|
|
|
configure_resources # unused function (monkey/tests/monkey_island/cc/environment/test_environment.py:26)
|
|
|
|
change_to_mongo_mock # unused function (monkey/monkey_island/cc/test_common/fixtures/mongomock_fixtures.py:9)
|
|
|
|
uses_database # unused function (monkey/monkey_island/cc/test_common/fixtures/mongomock_fixtures.py:16)
|
|
|
|
datas # unused variable (monkey/monkey_island/pyinstaller_hooks/hook-stix2.py:9)
|
|
|
|
test_key # unused variable (monkey/monkey_island/cc/services/zero_trust/zero_trust_report/finding_service.py:20)
|
|
|
|
pillars # unused variable (monkey/monkey_island/cc/services/zero_trust/zero_trust_report/finding_service.py:21)
|
|
|
|
CLEAN_UNKNOWN # unused variable (monkey/monkey_island/cc/services/utils/node_states.py:9)
|
|
|
|
CLEAN_LINUX # unused variable (monkey/monkey_island/cc/services/utils/node_states.py:10)
|
|
|
|
CLEAN_WINDOWS # unused variable (monkey/monkey_island/cc/services/utils/node_states.py:11)
|
2022-03-25 19:32:40 +08:00
|
|
|
PROPAGATED_LINUX # unused variable (monkey/monkey_island/cc/services/utils/node_states.py:12)
|
|
|
|
PROPAGATED_WINDOWS # unused variable (monkey/monkey_island/cc/services/utils/node_states.py:13)
|
2021-05-07 07:51:23 +08:00
|
|
|
ISLAND_MONKEY_LINUX # unused variable (monkey/monkey_island/cc/services/utils/node_states.py:15)
|
|
|
|
ISLAND_MONKEY_LINUX_RUNNING # unused variable (monkey/monkey_island/cc/services/utils/node_states.py:16)
|
|
|
|
ISLAND_MONKEY_LINUX_STARTING # unused variable (monkey/monkey_island/cc/services/utils/node_states.py:17)
|
|
|
|
ISLAND_MONKEY_WINDOWS # unused variable (monkey/monkey_island/cc/services/utils/node_states.py:18)
|
|
|
|
ISLAND_MONKEY_WINDOWS_RUNNING # unused variable (monkey/monkey_island/cc/services/utils/node_states.py:19)
|
|
|
|
ISLAND_MONKEY_WINDOWS_STARTING # unused variable (monkey/monkey_island/cc/services/utils/node_states.py:20)
|
|
|
|
MANUAL_LINUX # unused variable (monkey/monkey_island/cc/services/utils/node_states.py:21)
|
|
|
|
MANUAL_LINUX_RUNNING # unused variable (monkey/monkey_island/cc/services/utils/node_states.py:22)
|
|
|
|
MANUAL_WINDOWS # unused variable (monkey/monkey_island/cc/services/utils/node_states.py:23)
|
|
|
|
MANUAL_WINDOWS_RUNNING # unused variable (monkey/monkey_island/cc/services/utils/node_states.py:24)
|
|
|
|
MONKEY_LINUX # unused variable (monkey/monkey_island/cc/services/utils/node_states.py:25)
|
|
|
|
MONKEY_WINDOWS # unused variable (monkey/monkey_island/cc/services/utils/node_states.py:27)
|
|
|
|
MONKEY_WINDOWS_RUNNING # unused variable (monkey/monkey_island/cc/services/utils/node_states.py:28)
|
|
|
|
MONKEY_WINDOWS_STARTING # unused variable (monkey/monkey_island/cc/services/utils/node_states.py:29)
|
|
|
|
MONKEY_LINUX_STARTING # unused variable (monkey/monkey_island/cc/services/utils/node_states.py:30)
|
|
|
|
_.credential_type # unused attribute (monkey/monkey_island/cc/services/reporting/issue_processing/exploit_processing/processors/cred_exploit.py:19)
|
|
|
|
_.credential_type # unused attribute (monkey/monkey_island/cc/services/reporting/issue_processing/exploit_processing/processors/cred_exploit.py:22)
|
|
|
|
_.credential_type # unused attribute (monkey/monkey_island/cc/services/reporting/issue_processing/exploit_processing/processors/cred_exploit.py:25)
|
|
|
|
_.password_restored # unused attribute (monkey/monkey_island/cc/services/reporting/issue_processing/exploit_processing/processors/zerologon.py:11)
|
|
|
|
credential_type # unused variable (monkey/monkey_island/cc/services/reporting/issue_processing/exploit_processing/exploiter_report_info.py:18)
|
|
|
|
password_restored # unused variable (monkey/monkey_island/cc/services/reporting/issue_processing/exploit_processing/exploiter_report_info.py:23)
|
|
|
|
SSH # unused variable (monkey/monkey_island/cc/services/reporting/issue_processing/exploit_processing/exploiter_descriptor_enum.py:30)
|
|
|
|
SAMBACRY # unused variable (monkey/monkey_island/cc/services/reporting/issue_processing/exploit_processing/exploiter_descriptor_enum.py:31)
|
|
|
|
HADOOP # unused variable (monkey/monkey_island/cc/services/reporting/issue_processing/exploit_processing/exploiter_descriptor_enum.py:43)
|
|
|
|
MSSQL # unused variable (monkey/monkey_island/cc/services/reporting/issue_processing/exploit_processing/exploiter_descriptor_enum.py:44)
|
|
|
|
VSFTPD # unused variable (monkey/monkey_island/cc/services/reporting/issue_processing/exploit_processing/exploiter_descriptor_enum.py:45)
|
2021-06-09 19:52:33 +08:00
|
|
|
POWERSHELL # (\monkey\monkey_island\cc\services\reporting\issue_processing\exploit_processing\exploiter_descriptor_enum.py:52)
|
2022-01-06 18:26:00 +08:00
|
|
|
ExploiterDescriptorEnum.LOG4SHELL
|
2021-05-07 07:51:23 +08:00
|
|
|
PbaResults # unused class (monkey/monkey_island/cc/models/pba_results.py:4)
|
|
|
|
internet_access # unused variable (monkey/monkey_island/cc/models/monkey.py:43)
|
|
|
|
config_error # unused variable (monkey/monkey_island/cc/models/monkey.py:53)
|
|
|
|
pba_results # unused variable (monkey/monkey_island/cc/models/monkey.py:55)
|
2021-07-26 16:20:48 +08:00
|
|
|
launch_time # unused variable (monkey/monkey_island/cc/models/monkey.py)
|
2021-05-07 07:51:23 +08:00
|
|
|
command_control_channel # unused variable (monkey/monkey_island/cc/models/monkey.py:58)
|
|
|
|
meta # unused variable (monkey/monkey_island/cc/models/zero_trust/finding.py:37)
|
|
|
|
meta # unused variable (monkey/monkey_island/cc/models/monkey_ttl.py:34)
|
|
|
|
expire_at # unused variable (monkey/monkey_island/cc/models/monkey_ttl.py:36)
|
|
|
|
meta # unused variable (monkey/monkey_island/cc/models/config.py:11)
|
|
|
|
meta # unused variable (monkey/monkey_island/cc/models/edge.py:5)
|
|
|
|
Config # unused class (monkey/monkey_island/cc/models/config.py:4)
|
|
|
|
_.do_CONNECT # unused method (monkey/infection_monkey/transport/http.py:151)
|
|
|
|
_.do_POST # unused method (monkey/infection_monkey/transport/http.py:122)
|
|
|
|
_.do_HEAD # unused method (monkey/infection_monkey/transport/http.py:61)
|
|
|
|
_.do_GET # unused method (monkey/infection_monkey/transport/http.py:38)
|
|
|
|
_.do_POST # unused method (monkey/infection_monkey/transport/http.py:34)
|
2021-08-24 15:45:47 +08:00
|
|
|
PowerShellExploiter # (monkey\infection_monkey\exploit\powershell.py:27)
|
2021-05-07 07:51:23 +08:00
|
|
|
ElasticFinger # unused class (monkey/infection_monkey/network/elasticfinger.py:18)
|
|
|
|
HTTPFinger # unused class (monkey/infection_monkey/network/httpfinger.py:9)
|
|
|
|
MySQLFinger # unused class (monkey/infection_monkey/network/mysqlfinger.py:13)
|
|
|
|
SSHFinger # unused class (monkey/infection_monkey/network/sshfinger.py:15)
|
|
|
|
ClearCommandHistory # unused class (monkey/infection_monkey/post_breach/actions/clear_command_history.py:11)
|
|
|
|
AccountDiscovery # unused class (monkey/infection_monkey/post_breach/actions/discover_accounts.py:8)
|
|
|
|
ModifyShellStartupFiles # unused class (monkey/infection_monkey/post_breach/actions/modify_shell_startup_files.py:11)
|
|
|
|
Timestomping # unused class (monkey/infection_monkey/post_breach/actions/timestomping.py:6)
|
|
|
|
SignedScriptProxyExecution # unused class (monkey/infection_monkey/post_breach/actions/use_signed_scripts.py:15)
|
2022-03-29 13:46:51 +08:00
|
|
|
ProcessListCollection # unused class (monkey/infection_monkey/post_breach/actions/collect_processes_list.py:19)
|
2021-05-07 07:51:23 +08:00
|
|
|
EnvironmentCollector # unused class (monkey/infection_monkey/system_info/collectors/environment_collector.py:19)
|
|
|
|
HostnameCollector # unused class (monkey/infection_monkey/system_info/collectors/hostname_collector.py:10)
|
|
|
|
_.representations # unused attribute (monkey/monkey_island/cc/app.py:180)
|
|
|
|
_.log_message # unused method (monkey/infection_monkey/transport/http.py:188)
|
|
|
|
_.log_message # unused method (monkey/infection_monkey/transport/http.py:109)
|
|
|
|
_.version_string # unused method (monkey/infection_monkey/transport/http.py:148)
|
|
|
|
_.version_string # unused method (monkey/infection_monkey/transport/http.py:27)
|
|
|
|
_.close_connection # unused attribute (monkey/infection_monkey/transport/http.py:57)
|
|
|
|
protocol_version # unused variable (monkey/infection_monkey/transport/http.py:24)
|
2021-08-26 02:44:31 +08:00
|
|
|
binaries # unused variable (monkey/infection_monkey/pyinstaller_hooks/hook-pypsrp.py:3)
|
2021-05-07 07:51:23 +08:00
|
|
|
hiddenimports # unused variable (monkey/infection_monkey/pyinstaller_hooks/hook-infection_monkey.exploit.py:3)
|
|
|
|
hiddenimports # unused variable (monkey/infection_monkey/pyinstaller_hooks/hook-infection_monkey.network.py:3)
|
|
|
|
hiddenimports # unused variable (monkey/infection_monkey/pyinstaller_hooks/hook-infection_monkey.post_breach.actions.py:4)
|
|
|
|
_.wShowWindow # unused attribute (monkey/infection_monkey/monkey.py:345)
|
|
|
|
_.dwFlags # unused attribute (monkey/infection_monkey/monkey.py:344)
|
|
|
|
_.do_get # unused method (monkey/infection_monkey/exploit/zerologon_utils/remote_shell.py:79)
|
|
|
|
_.do_exit # unused method (monkey/infection_monkey/exploit/zerologon_utils/remote_shell.py:96)
|
|
|
|
_.prompt # unused attribute (monkey/infection_monkey/exploit/zerologon_utils/remote_shell.py:108)
|
|
|
|
_.prompt # unused attribute (monkey/infection_monkey/exploit/zerologon_utils/remote_shell.py:125)
|
|
|
|
keytab # unused variable (monkey/infection_monkey/exploit/zerologon_utils/options.py:16)
|
|
|
|
no_pass # unused variable (monkey/infection_monkey/exploit/zerologon_utils/options.py:18)
|
|
|
|
ts # unused variable (monkey/infection_monkey/exploit/zerologon_utils/options.py:25)
|
|
|
|
opnum # unused variable (monkey/infection_monkey/exploit/zerologon.py:466)
|
|
|
|
structure # unused variable (monkey/infection_monkey/exploit/zerologon.py:467)
|
|
|
|
structure # unused variable (monkey/infection_monkey/exploit/zerologon.py:478)
|
|
|
|
oid_set # unused variable (monkey/infection_monkey/exploit/tools/wmi_tools.py:96)
|
|
|
|
NoInternetError # unused class (monkey/common/utils/exceptions.py:33)
|
|
|
|
_.__isabstractmethod__ # unused attribute (monkey/common/utils/code_utils.py:11)
|
|
|
|
MIMIKATZ # unused variable (monkey/common/utils/attack_utils.py:21)
|
|
|
|
MIMIKATZ_WINAPI # unused variable (monkey/common/utils/attack_utils.py:25)
|
|
|
|
DROPPER # unused variable (monkey/common/utils/attack_utils.py:29)
|
|
|
|
pytest_addoption # unused function (envs/os_compatibility/conftest.py:4)
|
|
|
|
pytest_addoption # unused function (envs/monkey_zoo/blackbox/conftest.py:4)
|
|
|
|
pytest_runtest_setup # unused function (envs/monkey_zoo/blackbox/conftest.py:47)
|
|
|
|
config_value_list # unused variable (envs/monkey_zoo/blackbox/config_templates/smb_pth.py:10)
|
|
|
|
ALIBABA # unused variable (monkey/common/cloud/environment_names.py:10)
|
|
|
|
IBM # unused variable (monkey/common/cloud/environment_names.py:11)
|
|
|
|
DigitalOcean # unused variable (monkey/common/cloud/environment_names.py:12)
|
|
|
|
_.aws_info # unused attribute (monkey/monkey_island/cc/environment/aws.py:13)
|
2021-05-21 16:26:02 +08:00
|
|
|
build_from_config_file_contents # unused method 'build_from_config_file_contents' (\monkey_island\setup\island_config_options.py:18)
|
2021-05-26 21:32:26 +08:00
|
|
|
mock_port_in_env_singleton # monkey\tests\unit_tests\monkey_island\cc\services\test_config.py:26:
|
2021-06-02 15:35:21 +08:00
|
|
|
ISLAND # unused variable (monkey/monkey_island/cc/services/utils/node_states.py:14)
|
|
|
|
MONKEY_LINUX_RUNNING # unused variable (monkey/monkey_island/cc/services/utils/node_states.py:26)
|
2021-06-02 22:02:10 +08:00
|
|
|
import_status # monkey_island\cc\resources\configuration_import.py:19
|
|
|
|
config_schema # monkey_island\cc\resources\configuration_import.py:25
|
2021-07-05 23:55:56 +08:00
|
|
|
exception_stream # unused attribute (monkey_island/cc/server_setup.py:104)
|
2022-07-01 00:47:40 +08:00
|
|
|
ADVANCED # unused attribute (monkey/monkey_island/cc/services/mode/mode_enum.py:7:)
|
|
|
|
UNSET # unused attribute (monkey/monkey_island/cc/services/mode/mode_enum.py:5:)
|
2021-09-21 15:37:57 +08:00
|
|
|
Report.overview
|
|
|
|
Report.recommendations
|
|
|
|
Report.glance
|
|
|
|
Report.meta_info
|
|
|
|
Report.meta
|
2022-01-05 21:18:12 +08:00
|
|
|
LDAPServerFactory.buildProtocol
|
2022-03-16 01:00:55 +08:00
|
|
|
get_file_sha256_hash
|
2022-03-25 19:57:38 +08:00
|
|
|
strict_slashes # unused attribute (monkey/monkey_island/cc/app.py:96)
|
2022-03-30 14:55:59 +08:00
|
|
|
post_breach_actions # unused variable (monkey\infection_monkey\config.py:95)
|
2022-09-01 17:56:05 +08:00
|
|
|
LMHash.validate_hash_format
|
|
|
|
NTHash.validate_hash_format
|
2022-09-06 22:29:42 +08:00
|
|
|
Credentials.Config.json_encoders
|
2021-05-07 07:51:23 +08:00
|
|
|
|
2022-08-03 22:29:19 +08:00
|
|
|
# Deployments
|
|
|
|
DEVELOP # unused variable (monkey/monkey/monkey_island/cc/deployment.py:5)
|
|
|
|
APPIMAGE # unused variable (monkey/monkey/monkey_island/cc/deployment.py:7)
|
|
|
|
DOCKER # unused variable (monkey/monkey/monkey_island/cc/deployment.py:8)
|
|
|
|
|
2021-05-07 07:51:23 +08:00
|
|
|
# these are not needed for it to work, but may be useful extra information to understand what's going on
|
|
|
|
WINDOWS_PBA_TYPE # unused variable (monkey/monkey_island/cc/resources/pba_file_upload.py:23)
|
|
|
|
WINDOWS_TTL # unused variable (monkey/infection_monkey/network/ping_scanner.py:17)
|
|
|
|
wlist # unused variable (monkey/infection_monkey/transport/tcp.py:28)
|
|
|
|
wlist # unused variable (monkey/infection_monkey/transport/http.py:176)
|
|
|
|
charset # unused variable (monkey/infection_monkey/network/mysqlfinger.py:81)
|
|
|
|
salt # unused variable (monkey/infection_monkey/network/mysqlfinger.py:78)
|
|
|
|
thread_id # unused variable (monkey/infection_monkey/network/mysqlfinger.py:61)
|
|
|
|
|
|
|
|
|
2021-06-02 15:35:21 +08:00
|
|
|
# potentially unused (there may also be unit tests referencing these)
|
2021-05-07 07:51:23 +08:00
|
|
|
LOG_DIR_NAME # unused variable (envs/monkey_zoo/blackbox/log_handlers/test_logs_handler.py:8)
|
|
|
|
delete_logs # unused function (envs/monkey_zoo/blackbox/test_blackbox.py:85)
|
|
|
|
MongoQueryJSONEncoder # unused class (envs/monkey_zoo/blackbox/utils/json_encoder.py:6)
|
2021-05-28 22:05:33 +08:00
|
|
|
environment # unused variable (monkey/monkey_island/cc/models/monkey.py:59)
|
|
|
|
_.environment # unused attribute (monkey/monkey_island/cc/services/telemetry/processing/system_info_collectors/environment.py:10)
|
2021-06-02 15:35:21 +08:00
|
|
|
_.instance_name # unused attribute (monkey/common/cloud/azure/azure_instance.py:35)
|
|
|
|
_.instance_name # unused attribute (monkey/common/cloud/azure/azure_instance.py:64)
|
2021-08-24 21:11:22 +08:00
|
|
|
GCPHandler # unused function (envs/monkey_zoo/blackbox/test_blackbox.py:57)
|
2022-03-16 01:42:44 +08:00
|
|
|
architecture # unused variable (monkey/infection_monkey/exploit/caching_agent_repository.py:25)
|
2022-05-11 01:00:39 +08:00
|
|
|
|
|
|
|
response_code # unused variable (monkey/monkey_island/cc/services/aws/aws_command_runner.py:26)
|
2022-06-16 21:12:09 +08:00
|
|
|
release_convention # unused method (monkey/common/di_container.py:174)
|
2022-05-24 15:27:07 +08:00
|
|
|
|
2022-06-17 02:57:50 +08:00
|
|
|
# Agent Configuration
|
2022-06-17 20:22:14 +08:00
|
|
|
_make_plugin_configuration # unused method (monkey/common/configuration/agent_configuration.py:19)
|
|
|
|
_make_custom_pba_configuration # unused method (monkey/common/configuration/agent_configuration.py:24)
|
|
|
|
_make_exploiter_configuration # unused method (monkey/common/configuration/agent_configuration.py:69)
|
|
|
|
_make_exploitation_options_configuration # unused method (monkey/common/configuration/agent_configuration.py:86)
|
2022-06-17 20:30:42 +08:00
|
|
|
_make_scan_target_configuration # unused method (monkey/common/configuration/agent_configuration.py:105)
|
2022-06-17 20:22:14 +08:00
|
|
|
_make_icmp_scan_configuration # unused method (monkey/common/configuration/agent_configuration.py:107)
|
|
|
|
_make_tcp_scan_configuration # unused method (monkey/common/configuration/agent_configuration.py:122)
|
2022-06-17 20:50:48 +08:00
|
|
|
_make_network_scan_configuration # unused method (monkey/common/configuration/agent_configuration.py:110)
|
2022-06-17 21:04:00 +08:00
|
|
|
_make_propagation_configuration # unused method (monkey/common/configuration/agent_configuration.py:167)
|
2022-07-26 20:57:48 +08:00
|
|
|
_make_agent_configuration # \common\agent_configuration\agent_configuration.py:110: unused method '_make_agent_configuration'
|
2022-06-17 02:57:50 +08:00
|
|
|
|
2022-07-06 22:46:05 +08:00
|
|
|
# Credentials
|
2022-07-07 19:37:15 +08:00
|
|
|
_strip_credential_type # unused method (monkey/common/credentials/password.py:18)
|
|
|
|
_make_credentials # unused method (monkey/common/credentials/credentials:39)
|
|
|
|
_serialize_credentials # unused method (monkey/common/credentials/credentials:67)
|
|
|
|
|
2022-07-06 22:46:05 +08:00
|
|
|
|
2022-07-01 20:26:23 +08:00
|
|
|
# Models
|
|
|
|
_make_simulation # unused method (monkey/monkey_island/cc/models/simulation.py:19
|
2022-08-18 20:49:51 +08:00
|
|
|
operating_system_version
|
2022-08-18 21:32:34 +08:00
|
|
|
_make_sequence_immutable
|
2022-08-19 23:20:56 +08:00
|
|
|
Agent
|
2022-08-25 23:51:17 +08:00
|
|
|
machine_hardware_id
|
2022-08-19 23:20:56 +08:00
|
|
|
machine_id
|
|
|
|
stop_time
|
|
|
|
parent_id
|
|
|
|
cc_server
|
|
|
|
hardware_id
|
2022-08-30 21:44:32 +08:00
|
|
|
network_interfaces
|
2022-08-19 23:20:56 +08:00
|
|
|
connections
|
2022-07-01 20:26:23 +08:00
|
|
|
|
2022-05-24 15:27:07 +08:00
|
|
|
# TODO DELETE AFTER RESOURCE REFACTORING
|
2022-07-12 16:58:42 +08:00
|
|
|
|
|
|
|
# https://github.com/jendrikseipp/vulture/issues/287
|
|
|
|
# Both happen in common\utils\IJSONSerializable.py
|
|
|
|
json_string
|
|
|
|
class_object
|
|
|
|
|
2022-05-24 15:27:07 +08:00
|
|
|
NetworkMap
|
|
|
|
Arc.dst_machine
|
|
|
|
IMitigationsRepository.get_mitigations
|
|
|
|
IMitigationsRepository.save_mitigations
|
2022-09-02 00:43:45 +08:00
|
|
|
IAgentRepository.upsert_agent
|
|
|
|
IAgentRepository.get_agent_by_id
|
|
|
|
IAgentRepository.get_running_agents
|
2022-05-24 15:27:07 +08:00
|
|
|
agent
|
|
|
|
IAttackRepository.get_attack_report
|
|
|
|
IAttackRepository.save_attack_report
|
|
|
|
IAttackRepository.get_mitigation_by_technique
|
|
|
|
IAttackRepository.save_mitigations
|
|
|
|
IConfigRepository.set_config
|
|
|
|
IConfigRepository.set_config_field
|
|
|
|
IConfigRepository.get_config_field
|
|
|
|
ILogRepository.get_logs
|
|
|
|
ILogRepository.save_log
|
|
|
|
ILogRepository.delete_log
|
2022-08-31 22:14:57 +08:00
|
|
|
IMachineRepository.get_new_id
|
|
|
|
IMachineRepository.upsert_machine
|
2022-08-30 03:34:36 +08:00
|
|
|
IMachineRepository.get_machine_by_id
|
|
|
|
IMachineRepository.get_machine_by_hardware_id
|
|
|
|
IMachineRepository.get_machines_by_ip
|
2022-09-07 21:42:28 +08:00
|
|
|
INodeRepository
|
|
|
|
INodeRepository.upsert_communication
|
|
|
|
INodeRepository.communication_type
|
|
|
|
INodeRepository.get_nodes
|
2022-05-24 15:27:07 +08:00
|
|
|
IReportRepository
|
|
|
|
ISimulationRepository.save_simulation
|
|
|
|
ISimulationRepository.get_simulation
|
2022-07-04 23:49:32 +08:00
|
|
|
ICredentialsRepository.get_stolen_credentials
|
|
|
|
ICredentialsRepository.get_configured_credentials
|
|
|
|
ICredentialsRepository.get_all_credentials
|
|
|
|
ICredentialsRepository.remove_stolen_credentials
|
|
|
|
ICredentialsRepository.remove_configured_credentials
|
|
|
|
ICredentialsRepository.remove_all_credentials
|
|
|
|
ICredentialsRepository.save_stolen_credentials
|
|
|
|
ICredentialsRepository.save_configured_credentials
|
2022-09-16 21:45:51 +08:00
|
|
|
IEventRepository.get_events
|
2022-05-24 15:27:07 +08:00
|
|
|
IFindingRepository.get_findings
|
2022-09-14 21:07:39 +08:00
|
|
|
MongoAgentRepository
|
2022-09-14 21:05:42 +08:00
|
|
|
MongoMachineRepository
|
2022-05-24 15:27:07 +08:00
|
|
|
key_list
|
|
|
|
simulation
|
|
|
|
netmap
|
2022-07-26 20:41:27 +08:00
|
|
|
validate_windows_filename_not_reserved
|
2022-09-05 21:46:31 +08:00
|
|
|
subscribe_all # common\event_queue\i_agent_event_queue.py
|
|
|
|
subscribe_type # common\event_queue\i_agent_event_queue.py
|
|
|
|
subscribe_tag # common\event_queue\i_agent_event_queue.py
|
|
|
|
publish # common\event_queue\i_agent_event_queue.py
|
2022-09-05 21:57:44 +08:00
|
|
|
subscribe_all # common\event_queue\pypubsub_agent_event_queue.py
|
|
|
|
subscribe_type # common\event_queue\pypubsub_agent_event_queue.py
|
|
|
|
subscribe_tag # common\event_queue\pypubsub_agent_event_queue.py
|
|
|
|
publish # common\event_queue\pypubsub_agent_event_queue.py
|
|
|
|
subscribe_all_events # common\event_queue\pypubsub_agent_event_queue.py
|
2022-08-18 00:01:35 +08:00
|
|
|
|
|
|
|
|
2022-09-14 18:34:29 +08:00
|
|
|
# TODO: Remove once #2180 is closed
|
2022-09-16 20:42:15 +08:00
|
|
|
IAgentEventRepository.save_event
|
|
|
|
IAgentEventRepository.get_events_by_type
|
|
|
|
IAgentEventRepository.get_events_by_tag
|
|
|
|
IAgentEventRepository.get_events_by_source
|
2022-09-16 22:48:34 +08:00
|
|
|
MongoAgentEventRepository
|
2022-09-14 18:34:29 +08:00
|
|
|
|
2022-09-01 15:57:46 +08:00
|
|
|
|
2022-08-18 20:44:46 +08:00
|
|
|
# pydantic base models
|
|
|
|
underscore_attrs_are_private
|
|
|
|
extra
|
|
|
|
allow_mutation
|
|
|
|
validate_assignment
|
2022-08-31 02:13:53 +08:00
|
|
|
CustomPBAConfiguration.linux_filename_valid
|
|
|
|
CustomPBAConfiguration.windows_filename_valid
|
|
|
|
ScanTargetConfiguration.blocked_ips_valid
|
|
|
|
ScanTargetConfiguration.inaccessible_subnets_valid
|
|
|
|
ScanTargetConfiguration.subnets_valid
|
2022-08-18 21:14:59 +08:00
|
|
|
|
|
|
|
# CommunicationType
|
|
|
|
CommunicationType
|
|
|
|
SCANNED
|
|
|
|
EXPLOITED
|
|
|
|
CC
|
|
|
|
CC_TUNNEL
|
2022-09-02 14:55:08 +08:00
|
|
|
|
2022-09-06 15:55:59 +08:00
|
|
|
IslandEventTopic.AGENT_CONNECTED
|
|
|
|
IslandEventTopic.CLEAR_SIMULATION_DATA
|
|
|
|
IslandEventTopic.RESET_AGENT_CONFIGURATION
|