Commit Graph

5845 Commits

Author SHA1 Message Date
Shreya 1cd746ce76 Remove unused `_dropper_path` and `_depth` in `infection_monkey/monkey.py` 2021-05-06 16:20:58 +05:30
Shreya adb90d14af Remove unused `_mode` in `infection_monkey/monkeyfs.py` 2021-05-06 16:16:20 +05:30
Shreya dd1eaab6f8 Remove unused `IP_ADDR_RE`, and `IP_ADDR_PARENTHESES_RE` from `infection_monkey/network/tools.py` 2021-05-06 15:54:58 +05:30
Shreya 3a8591ee00 Remove unused `_get_traceroute_bin_path`, and `_parse_traceroute` in `infection_monkey/network/tools.py` 2021-05-06 14:24:22 +05:30
Shreya e59f7a587e Remove unused const `WMI_LDAP_CLASSES` in `infection_monkey/system_info/wmi_consts.py` 2021-05-06 14:13:55 +05:30
Shreya e33288a05b Remove unused property `locked` in `infection_monkey/system_singleton.py` 2021-05-06 14:09:28 +05:30
Shreya 962e785134 Remove unused `proxy_via` in `infection_monkey/transport/http.py` 2021-05-06 14:02:32 +05:30
Shreya 3a346b5112 Remove unused `NoInheritance` in `infection_monkey/utils/plugins/pluginTests/ComboFile.py` 2021-05-06 13:30:45 +05:30
Shreya 635418b8f5 Remove unused `get_logon_handle()` from `infection_monkey/utils/windows/users.py` 2021-05-06 13:28:02 +05:30
Shreya b59213fb8b Delete unused file `monkey_island/scripts/island_password_hasher.py` 2021-05-05 19:34:15 +05:30
Shreya c848581115 Remove unused `hash_secret()` from `monkey_island/cc/environment/__init__.py` 2021-05-05 19:25:34 +05:30
Shreya edff2c5c08 Remove unused `set_deployment()` in `monkey_island/cc/environment/__init__.py` 2021-05-05 19:20:05 +05:30
Shreya 8c97f32fbc Remove unused `_instance_id`, `region`, `_get_instance_id()`, and `_get_region()` from `monkey_island/cc/environment/aws.py` 2021-05-05 19:20:05 +05:30
Shreya 380afa675a Remove unused `report_generating_lock` in `monkey_island/cc/resources/root.py` 2021-05-05 19:20:05 +05:30
Shreya 536d0bc75c Remove unused `mongo_client` in `monkey_island/cc/server_utils/bootloader_server.py` 2021-05-05 19:20:05 +05:30
Shreya 0dc6005114 Remove unused variable `os_is_linux` in `infection_monkey/post_breach/post_breach_handler.py` 2021-05-05 19:20:05 +05:30
Shreya 35f4515d6e Remove unused `get_pba()` in `infection_monkey/post_breach/pba.py` 2021-05-05 19:20:05 +05:30
Shreya 8391df9114 Remove unused `check_udp_port`, `traceroute()`, `_traceroute_windows()`, and `_traceroute_linux` from `infection_monkey/network/tools.py` 2021-05-05 19:20:05 +05:30
Shreya 2f5d33844c Remove unused variable `PATH_TO_ACTIONS` from `infection_monkey/post_breach/post_breach_handler.py` 2021-05-05 19:20:05 +05:30
Shreya 6cc22afd9b Remove unused `get_ip_for_connection()` in `infection_monkey/network/info.py` 2021-05-05 19:20:05 +05:30
Shreya b7535dccb0 Remove unused variables `GENERAL_CMDLINE_LINUX` and `MONKEY_CMDLINE_HTTP` in `infection_monkey/model/__init__.py` 2021-05-05 19:20:05 +05:30
Shreya b1ce5d3e2e Remove unused variable `MAX_MONKEYS_AMOUNT_TO_CACHE` in `monkey_island/cc/models/monkey.py` 2021-05-05 19:20:05 +05:30
Shreya eeaafc9a3b Remove ununsed variable `user_id_table` in `monkey_island/cc/resources/auth/user_store.py` 2021-05-05 19:20:05 +05:30
Shreya a5481c15f8 Remove unused `get_latest_attack_telem_time()` from `monkey_island/cc/services/attack/attack_report.py` 2021-05-05 19:20:05 +05:30
Shreya e4c45153ea Remove unused `get_monkey_critical_services()` and `get_monkey_label_by_id()` in `monkey_island/cc/services/node.py` 2021-05-05 19:20:05 +05:30
Shreya 9c629f964c Remove unused variable `UPLOADS_DIR_NAME` in `monkey_island/cc/services/post_breach_files.py` 2021-05-05 19:20:05 +05:30
Shreya f32e1e0a0f Remove unused variable `is_auth` in `monkey_island/cc/services/remote_run_aws.py` 2021-05-05 19:20:05 +05:30
Shreya 9bcaa2ef8e Remove unused `did_exploit_type_succeed()` from `monkey_island/cc/services/reporting/report.py` 2021-05-05 19:20:05 +05:30
Shreya df7759e332 Remove unused variable `DETAILS_DTO` from `monkey_island/cc/services/zero_trust/test_common/monkey_finding_data.py` 2021-05-05 19:20:05 +05:30
Shreya 638e70e978 Remove unused code in unit tests 2021-05-05 19:20:05 +05:30
Mike Salvatore 33e74b1f3e agent: Use consistent naming for parameters to __exit__()
Using these specific names prevents Vulture from identifying these
parameters as unused.
2021-05-05 19:20:05 +05:30
Mike Salvatore 9649f90cff agent: Remove unused parameter securityFlags from create_smb() 2021-05-05 19:20:05 +05:30
Mike Salvatore b41a2f2366 travis: Fail build if vulture finds dead code 2021-05-05 19:19:59 +05:30
Mike Salvatore 2f6803dc3d Add vulture pre-commit hook 2021-05-05 19:09:07 +05:30
Mike Salvatore e609094a59 Merge branch 'pwd-hash' into develop 2021-05-05 08:05:15 -04:00
Mike Salvatore 7772ea6e4e island: Add FULL_USER_CREDENTIALS to test_environment.py 2021-05-05 07:45:59 -04:00
Mike Salvatore 9024a512b0 island: Move all bcrypt dependencies to password_utils 2021-05-05 07:45:41 -04:00
Mike Salvatore 0f49a2c96a island: Remove UserCreds.from_cleartext() 2021-05-04 18:53:43 -04:00
Mike Salvatore f73b048169 island: Remove parameter names from UserCreds() init in tests 2021-05-04 17:21:05 -04:00
Mike Salvatore e4dec5501e island: Add constants for user and hash to UserCreds tests 2021-05-04 17:20:03 -04:00
Mike Salvatore c4c0b7217d island: Add test for members of UserCreds 2021-05-04 17:17:54 -04:00
Mike Salvatore e223126c16 island: Add tests for UserCreds.__bool__() 2021-05-04 17:14:54 -04:00
Mike Salvatore d56cb5cd75 island: Simplify UserCreds constructor by removing defaults
The default values were only really used by the test code. We can
simplify the Usercreds's interface and test code by removing
functionality (read: complication) we don't really need.
2021-05-04 17:07:42 -04:00
Mike Salvatore 1aed5f37d1 monkey: Remove coupling between Registration and UserCreds 2021-05-04 17:07:31 -04:00
Mike Salvatore 4b3b7af3d2 island: Remove coupling between EnvironmentConfig and UserCreds 2021-05-04 16:58:30 -04:00
Mike Salvatore 5fa08f0447 island: Add UserCreds.from_cleartext() 2021-05-04 15:14:41 -04:00
Mike Salvatore 1be07a4828 monkey: Rename `get_from...()` methods in UserCreds to be more readable 2021-05-04 14:43:11 -04:00
VakarisZ f28cd5305c Refactored test_user_creds.py to pytest from unittests 2021-05-04 14:26:22 -04:00
Mike Salvatore 502bc3b296 island: Enable standard mode with bcrypted passwords 2021-05-04 14:24:49 -04:00
Mike Salvatore 060c4b0c40 island: Minor formatting fix 2021-05-04 12:32:07 -04:00