Kekoa Kaaikala
|
978a2a57a9
|
UT: Add default mocks for fixture methods
Update machine_repository fixture to use:
- machine_from_id for get_machine_by_id()
- machines_from_ip for get_machines_by_ip()
|
2022-09-30 19:36:19 +00:00 |
Kekoa Kaaikala
|
da5d7b7357
|
UT: Removed unsed 'request' parameter
|
2022-09-30 19:32:08 +00:00 |
Kekoa Kaaikala
|
cf13481865
|
UT: Remove unused constant
|
2022-09-30 19:29:27 +00:00 |
Kekoa Kaaikala
|
1dbfca567a
|
UT: Give constants uppercase names
|
2022-09-30 19:28:26 +00:00 |
Mike Salvatore
|
067a143f2c
|
UT: Fix bug in test mock
|
2022-09-30 13:16:04 -04:00 |
Mike Salvatore
|
2811009019
|
UT: Deparametrize a test
TCP scan events do not contain OS information.
|
2022-09-30 13:10:57 -04:00 |
Mike Salvatore
|
97061ea61c
|
UT: Remove redundant "test_scan_event_handler" from test names
|
2022-09-30 13:04:57 -04:00 |
Mike Salvatore
|
029c101643
|
UT: Remove disused scan event fixtures
|
2022-09-30 12:54:27 -04:00 |
Mike Salvatore
|
79f56e0789
|
UT: Use constants for TCP and ping scan method names
|
2022-09-30 12:54:03 -04:00 |
Mike Salvatore
|
20b84aa1a4
|
UT: Use indirect instead of get_fixture_value()
|
2022-09-30 12:48:03 -04:00 |
Mike Salvatore
|
f89068ae00
|
Common: Register TCPScanEvent serializer
|
2022-09-30 12:36:32 -04:00 |
vakaris_zilius
|
e2c86d3d7a
|
Common: Register PingScanEvent to event serializer
|
2022-09-30 12:33:13 -04:00 |
Mike Salvatore
|
07fa283ce1
|
Island: Use container.resolve(ScanEventHandler)
|
2022-09-30 12:28:22 -04:00 |
Mike Salvatore
|
0c786dfd94
|
Island: Change method order in ScanEventHandler
|
2022-09-30 12:08:32 -04:00 |
Mike Salvatore
|
f6e5462ad3
|
Island: Use sum() to count open ports
|
2022-09-30 12:06:09 -04:00 |
Ilija Lazoroski
|
326b07e5c1
|
Island: Fix typo in ScanEventHandler docstring
|
2022-09-30 16:26:00 +02:00 |
Ilija Lazoroski
|
d42a353aaa
|
Island: Remove TypeError exception from ScanEventHandler
|
2022-09-30 16:23:04 +02:00 |
Ilija Lazoroski
|
f23093dc78
|
Island: Remove handle_ping_scan_event callable class
|
2022-09-30 16:20:23 +02:00 |
Ilija Lazoroski
|
8002080c8b
|
Island: Subscribe to Ping and TCP scan events with ScanEventHandlers
|
2022-09-30 16:18:49 +02:00 |
Ilija Lazoroski
|
2686a7a4ee
|
UT: Add tests for ScanEventHandler
|
2022-09-30 16:18:49 +02:00 |
Ilija Lazoroski
|
e4aec8b9a3
|
Island: Add ScanEventHandler to agent_event_handlers
|
2022-09-30 16:18:49 +02:00 |
Mike Salvatore
|
61bda27d7f
|
UT: Fix bug in test_handle_ping_scan_event test
|
2022-09-30 09:50:17 -04:00 |
Mike Salvatore
|
2142dce97e
|
Island: Don't handle TypeError in handle_ping_scan_event
|
2022-09-30 09:49:54 -04:00 |
Mike Salvatore
|
fa18cb72da
|
Common: Use NetworkPort in ExploitationOptionsConfiguration
|
2022-09-30 09:15:50 -04:00 |
Mike Salvatore
|
1a01b7c5dc
|
Common: Use NetworkPort in TCPScanConfiguration
|
2022-09-30 09:14:22 -04:00 |
Mike Salvatore
|
5fc4d52d9f
|
Common: Allow 0 for NetworkPort
While TCP port 0 is reserved and you're not supposed to use it, it is a
valid port.
|
2022-09-30 09:12:25 -04:00 |
Mike Salvatore
|
9f3aaf970f
|
Island: Remove disused/emtpy monkey_control package
|
2022-09-30 07:33:48 -04:00 |
VakarisZ
|
61d7050594
|
Merge pull request #2368 from guardicore/2268-update-nodes
2268 update nodes
|
2022-09-30 13:58:22 +03:00 |
vakarisz
|
7ed071b565
|
Common: Fix imports in ping_scan_event.py
|
2022-09-30 09:47:20 +03:00 |
Mike Salvatore
|
5ab47fbdd3
|
Merge pull request #2373 from guardicore/2267-tcp-scan-event
2267 tcp scan event
|
2022-09-29 19:06:32 -04:00 |
Kekoa Kaaikala
|
a267f02ca9
|
Island: Move param docstring to __call__ method
|
2022-09-29 19:47:32 +00:00 |
Kekoa Kaaikala
|
c1dcb285ae
|
UT: Properly group arrange/assert/act steps
|
2022-09-29 19:47:23 +00:00 |
Mike Salvatore
|
f94ef035d6
|
Merge pull request #2374 from guardicore/2267-island-event-queue-threadsafe
2267 island event queue threadsafe
|
2022-09-29 15:43:45 -04:00 |
Mike Salvatore
|
31c97faf98
|
Merge pull request #2375 from guardicore/2267-tcp-scanner-accept-iagenteventqueue
2267 tcp scanner accept iagenteventqueue
|
2022-09-29 15:41:48 -04:00 |
Mike Salvatore
|
c632b9b77b
|
Island: Rename dest -> target
|
2022-09-29 15:09:29 -04:00 |
Mike Salvatore
|
2aa79331e3
|
Island: Extract method to improve readablility
|
2022-09-29 15:05:46 -04:00 |
Mike Salvatore
|
052c31e8ff
|
Agent: Modify scan_tcp_ports() to accept an IAgentEventQueue
|
2022-09-29 14:45:24 -04:00 |
Kekoa Kaaikala
|
c06d06edc4
|
UT: Fix storageerror test
|
2022-09-29 18:34:46 +00:00 |
Kekoa Kaaikala
|
783cc06c0d
|
Common: Mitigate mypy errors from DIContainer
|
2022-09-29 18:34:46 +00:00 |
Kekoa Kaaikala
|
9a880123da
|
UT: Fix failing tests
|
2022-09-29 18:34:46 +00:00 |
Kekoa Kaaikala
|
d811c6548c
|
Island: Prefer existing OS data to ping OS data
Co-authored-by: Mike Salvatore <mike.s.salvatore@gmail.com>
|
2022-09-29 18:34:46 +00:00 |
vakarisz
|
9b30770777
|
Island: Fix ping scan handler to add machines IP
|
2022-09-29 18:34:46 +00:00 |
vakarisz
|
ff2b04c703
|
Common: Override target for PingScanEvent to more specific type hint
|
2022-09-29 18:34:46 +00:00 |
vakarisz
|
4d2a6083a1
|
Island: Fix a bug where failed ping scan created machines
|
2022-09-29 18:34:46 +00:00 |
vakarisz
|
3d80adbcd5
|
Common: Flatten the ping scan event
|
2022-09-29 18:34:46 +00:00 |
vakarisz
|
6aa69a10b6
|
Island: Setup ping scan event listener/handler
|
2022-09-29 18:32:51 +00:00 |
Kekoa Kaaikala
|
65d43575d1
|
UT: Make tests pass
|
2022-09-29 18:32:51 +00:00 |
vakarisz
|
168a5845fd
|
UT: Fix and rename unit tests in test_handle_ping_scan_event.py
|
2022-09-29 18:32:51 +00:00 |
vakarisz
|
b6d9f88dee
|
Island: Style improvements in handle_ping_scan_event.py
|
2022-09-29 18:32:50 +00:00 |
vakarisz
|
c807f97d18
|
Island: Rename handle_scan_data to handle_ping_scan_event
|
2022-09-29 18:32:50 +00:00 |