Commit Graph

9948 Commits

Author SHA1 Message Date
Ilija Lazoroski c9b7f924a3 UT: Fix ExploitingInterceptingTelemetryMessenger tests 2022-09-01 13:58:14 +02:00
Ilija Lazoroski eee06467f6 Agent: Add TODO to rethink on_user_disconnected 2022-09-01 13:44:39 +02:00
Ilija Lazoroski 508b811939 Agent: Rename on_user_connected to add_relay_user 2022-09-01 13:41:50 +02:00
Ilija Lazoroski 43a1ddb714 Agent: Rename on_potential_new_user to add_potential_user 2022-09-01 13:38:31 +02:00
Ilija Lazoroski a754963222 Agent: Remove on_user_disconnected in TCPRelay 2022-09-01 13:32:07 +02:00
Ilija Lazoroski 6e0dc0ca13 Agent: Use super().__init__(...) in TCPRelay 2022-09-01 13:27:40 +02:00
Ilija Lazoroski 9fae6cca20 Agent: Use dictionary for relay and potential users in TCPRelay 2022-09-01 12:56:26 +02:00
Ilija Lazoroski 9a3afb051d Agent: Use IPv4Address for RelayUser.address 2022-09-01 12:10:21 +02:00
Ilija Lazoroski 1d394bbd2e Agent: Fix docstrings in TCPRelay 2022-09-01 11:39:25 +02:00
Ilija Lazoroski d478e99227 Agent: Make TCPRelay non-optional in ExploitInterceptingTelemetryMessenger 2022-09-01 11:29:03 +02:00
Ilija Lazoroski ecdf04a85e Agent: Change relay control message
'-' to 'infection-monkey-relay-control-message: -'
2022-09-01 10:35:29 +02:00
Ilija Lazoroski 94fba0fdf0 Agent: Rename RelayUser.time to last_update_time 2022-09-01 10:17:13 +02:00
Ilija Lazoroski 302cdaac70 Agent: Use event.wait() when running TCPRelay 2022-09-01 09:57:46 +02:00
Kekoa Kaaikala 31ff85ad3c Agent: Add timeout to wait for pending clients 2022-08-31 13:51:54 +00:00
Kekoa Kaaikala 4b5d93beb0 Agent: Add disconnect protocol to TCPRelay 2022-08-31 12:06:13 +00:00
Kekoa Kaaikala cd0b3077cf Agent: Notify TCPRelay of exploit 2022-08-30 21:31:06 +00:00
Kekoa Kaaikala 9425a9463a Agent: Track relay users in TCPRelay 2022-08-30 20:53:16 +00:00
Kekoa Kaaikala 79d5b8bed1 Agent: Add TCPRelay class 2022-08-30 20:08:54 +00:00
Mike Salvatore 4cbefedad2
Merge pull request #2222 from guardicore/2135-use-ipaddress
2135 use ipaddress
2022-08-30 10:04:21 -04:00
Kekoa Kaaikala 70a9251c5b Agent: Fix type hints 2022-08-30 13:44:32 +00:00
Kekoa Kaaikala fedfe4e45d Agent: Use str(interface) instead of building string 2022-08-30 11:58:57 +00:00
Kekoa Kaaikala e6663747eb Agent: Use IPv4Interface's string 2022-08-30 11:36:51 +00:00
Kekoa Kaaikala 2b55c35a65 Agent: Use str() instead of .compressed 2022-08-30 11:36:51 +00:00
Kekoa Kaaikala 01c508e248 Agent: Replace NetworkInterface with IPv4Interface 2022-08-30 11:36:51 +00:00
Kekoa Kaaikala f31ba824c6 UT: Fix tests 2022-08-30 11:36:51 +00:00
Kekoa Kaaikala d8beba17fd Agent: Update NetworkInterface to be IPv4Interface 2022-08-30 11:36:51 +00:00
Kekoa Kaaikala 75ba889f57 Agent: Fix typing issues 2022-08-30 11:36:51 +00:00
Kekoa Kaaikala 06ae6a8b90 Project: Add ipaddress types for mypy 2022-08-30 11:36:51 +00:00
Mike Salvatore 4c03c8aae9 Island: Import TypeAlias from typing_extensions 2022-08-29 19:13:23 -04:00
Mike Salvatore c73a29c1b7 Common: Import TypeAlias from typing_extensions 2022-08-29 19:13:03 -04:00
Mike Salvatore e98086e3d1 Project: Exclude vulture_allowlist.py from mypy checks 2022-08-29 15:46:29 -04:00
Mike Salvatore cff363597a Common: Annotate HardwareID as a TypeAlias 2022-08-29 14:34:28 -04:00
Mike Salvatore b1f15b59f7 Common: Ignore arg-type error in DIContainer.register() 2022-08-29 14:28:48 -04:00
Mike Salvatore 599676c496 Project: Add mypy configuration to pyproject.toml 2022-08-29 14:16:43 -04:00
Mike Salvatore 4662dd8bed Island: Annotate MachineID as a TypeAlias
See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
2022-08-29 13:50:12 -04:00
Ilija Lazoroski 1deb03b6d7 Island: Fix type annotation in AWSService 2022-08-29 12:46:34 -04:00
Ilija Lazoroski 6adacf702e Island: Don't drop collections that starts with "config"
Fixes #2210
PR #2227
2022-08-29 12:46:20 -04:00
Mike Salvatore 4af38f6e8a Project: Add .DS_Store to .gitignore 2022-08-29 12:32:15 -04:00
Mike Salvatore 797c2ea294 Merge branch 'v1.13.0-documentation-updates' into documentation-updates 2022-08-29 12:30:36 -04:00
Mike Salvatore e9bfbbd08e
Merge pull request #2224 from ybasford/v1.13.0-documentation-updates
Changed punctuation
2022-08-29 12:24:03 -04:00
ybasford 7dd4fe820d Docs: Fixed spelling 2022-08-29 12:16:10 -04:00
ybasford 4d723b07fa Docs: Corrected the number of reports 2022-08-29 12:16:07 -04:00
ybasford d9eb867a2d Docs: Corrected grammatical error 2022-08-29 12:16:06 -04:00
ybasford 2783db69b9 Docs: No need for capitalization 2022-08-29 12:15:48 -04:00
ybasford 159eb2b45b Docs: Capital letters and changed a word 2022-08-29 12:15:46 -04:00
ybasford 5bc2b1ba5a Docs: Turned into singular because there is only one note 2022-08-29 12:15:30 -04:00
ybasford 99cd35aae5 Docs: Removed redundant word 2022-08-29 12:15:24 -04:00
ybasford c98a55bcd4 Docs: Changed punctuation
Used a colon because it precedes a list
2022-08-29 12:15:20 -04:00
ybasford aae513ce00 Docs: Added a word 2022-08-29 12:15:16 -04:00
ybasford bc66b6defa Docs: Changed punctuation 2022-08-29 12:15:11 -04:00