Commit Graph

10475 Commits

Author SHA1 Message Date
Shreya Malviya cb4af415c1 Agent: Rename _open_socket_to_server -> _send_remove_from_waitlist_control_message_to_relay 2022-09-09 08:13:02 -04:00
Kekoa Kaaikala 526139bef1 Agent: Remove connect() 2022-09-09 08:13:02 -04:00
Shreya Malviya 7661027c6c Agent: Don't catch TimeoutError in _open_socket_to_server() since OSError is already being caught 2022-09-09 08:13:02 -04:00
Kekoa Kaaikala 28f555498f Agent: No need to check relay existence 2022-09-09 08:13:02 -04:00
Shreya Malviya 6bfe6bc79d Common: Rename SendControlRelayMessageThread -> SendRemoveFromWaitlistControlMessageToRelaysThread 2022-09-09 08:13:02 -04:00
Kekoa Kaaikala aac0bfe90b Agent: Use addres_to_ip_port in connect() 2022-09-09 08:13:02 -04:00
Shreya Malviya 78d32053a2 Agent: Rename send_relay_control_message -> send_remove_from_waitlist_control_message_to_relays 2022-09-09 08:13:02 -04:00
Kekoa Kaaikala f212425842 Agent: Pass server list to connect() 2022-09-09 08:13:02 -04:00
Shreya Malviya f436bf7b8c Agent: Remove irrelevant comment from InfectionMonkey._get_server() 2022-09-09 08:13:02 -04:00
Kekoa Kaaikala bbdc378a0d Agent: Hand TCPRelay build it's own dependencies 2022-09-09 08:13:02 -04:00
Shreya Malviya fb1554840a Agent: Fix log message in InfectionMonkey._get_server() 2022-09-09 08:13:02 -04:00
Kekoa Kaaikala 5c7c54e450 Agent: Use timeout in build_tcprelay_deps() 2022-09-09 08:13:02 -04:00
Ilija Lazoroski 6ee15e22b8 Agent: Rework call of find_server in monkey.py 2022-09-09 08:13:02 -04:00
Kekoa Kaaikala 732751f007 Project: Fix vulture warnings 2022-09-09 08:13:02 -04:00
Ilija Lazoroski b89ba06fd1 UT: Rename test_find_server__no_available_relays to test_find_server 2022-09-09 08:13:02 -04:00
Kekoa Kaaikala 2fd99318ba Agent: Replace MonkeyTunnel with TCPRelay 2022-09-09 08:13:02 -04:00
Ilija Lazoroski 20172230f1 Agent: Rework send_control_relay_message a bit 2022-09-09 08:13:02 -04:00
Kekoa Kaaikala a0f566ef49 Agent: Add network utilities for connections 2022-09-09 08:13:02 -04:00
Ilija Lazoroski 60f9aa6a4e Agent: Rework relay.utils.find_server a bit 2022-09-09 08:13:02 -04:00
Ilija Lazoroski e539495545 Agent: Find server and send control relay message to all other servers 2022-09-09 08:13:02 -04:00
Ilija Lazoroski 65226d5a9c UT: Move test_find_server under network.relay.utils 2022-09-09 08:13:02 -04:00
Ilija Lazoroski bb2b4aaf6c Agent: Separate responsibilites in network.relay.utils.find_server 2022-09-09 08:13:02 -04:00
Shreya Malviya c6c6cf1e79 Agent: Add TODO about variable naming in `InfectionMonkey` 2022-09-09 08:13:02 -04:00
Shreya Malviya 94dc8cf377 Agent: Use `find_servers` to pass valid server to `ControlClient` 2022-09-09 08:13:02 -04:00
Shreya Malviya 18659b654f Agent: Return server to connect to or None from `find_server` 2022-09-09 08:13:02 -04:00
Ilija Lazoroski 789d6b8441 Agent: Move ControlClient.find_server in network/relay/utls.py 2022-09-09 08:13:02 -04:00
Ilija Lazoroski 178b296f75 Agent: Use iterator in ControlClient.find_server 2022-09-09 08:13:02 -04:00
Ilija Lazoroski 02a919123b Agent: Remove thread join in find_server 2022-09-09 08:13:02 -04:00
Shreya Malviya cd91b3e42a UT: Rename RequestsGetArgument -> MockRequestsGetResponsePerServerArgument 2022-09-09 08:13:02 -04:00
Shreya Malviya 0239a1be6b UT: Simplify test logic in test_control_find_server__control_message_sent_to_necessary_relays 2022-09-09 08:13:02 -04:00
Shreya Malviya 47f838cf9f UT: Rename test_control_find_server_socket -> test_control_find_server__control_message_sent_to_necessary_relays 2022-09-09 08:13:02 -04:00
Shreya Malviya f847757a9a UT: Rename test_control_find_server_any_exception -> test_control_find_server__no_available_relays 2022-09-09 08:13:02 -04:00
Shreya Malviya a39917d9aa UT: Fix test_control_find_server_socket to check call parameters 2022-09-09 08:13:02 -04:00
Ilija Lazoroski 804bd4eadb Agent: Modify find_server to accept list of servers 2022-09-09 08:13:02 -04:00
Ilija Lazoroski ac058c7788 Agent: Add TODO to rework address_to_ip_port to use list of servers 2022-09-09 08:13:02 -04:00
Mike Salvatore 4bff110f35 Merge branch '2216-add-tcprelay' into tcp-relay
PR #2231
2022-09-09 08:12:50 -04:00
Mike Salvatore ee262778de Merge pull request #2243 from guardicore/2216-pass-servers-to-exploiters
2216 pass servers to exploiters
2022-09-09 08:07:24 -04:00
Mike Salvatore f16f111543 Merge pull request #2242 from guardicore/2216-modify-agent-build-commands
2216 modify agent build commands
2022-09-09 08:07:24 -04:00
Ilija Lazoroski 4fca8ccf5d UT: Fix credentials passed to exploiter test 2022-09-09 08:07:24 -04:00
Mike Salvatore 579616dd91 Merge pull request #2241 from guardicore/2216-modify-agent-command-line-arguments
Agent: Modify command line arguments to accept list of servers
2022-09-09 08:07:24 -04:00
Ilija Lazoroski 067d50f3c4 Agent: Modify agent build command line to accept list of servers 2022-09-09 08:07:24 -04:00
Ilija Lazoroski f93125f671 Agent: Pass servers when running exploits in Puppet 2022-09-09 08:07:24 -04:00
Ilija Lazoroski e842c45e42 Agent: Add list of servers to dropper 2022-09-09 08:07:24 -04:00
Ilija Lazoroski ddc4f4d836 Agent: Remove tunnel from aget build command functions 2022-09-09 08:07:24 -04:00
Ilija Lazoroski c51217507a Agent: Pass servers to exploit_host in ExploiterWrapper.Inner 2022-09-09 08:07:24 -04:00
Ilija Lazoroski 33f20c7da0 Agent: Remove tunnel argument from dropper 2022-09-09 08:07:24 -04:00
Ilija Lazoroski 4ad2c35c94 UT: Remove tunnel from build_monkey_commandline 2022-09-09 08:07:24 -04:00
Ilija Lazoroski 8fc0d52b8b Agent: Pass list of servers in HostExploiter.exploit_host 2022-09-09 08:07:24 -04:00
Ilija Lazoroski 0f73cc91f2 Changelog: Add entry for changing "-s/--server" to "-s/--servers" 2022-09-09 08:07:24 -04:00
Ilija Lazoroski b2f0b54d37 Agent: Add list of server when propagating 2022-09-09 08:07:24 -04:00