Commit Graph

2975 Commits

Author SHA1 Message Date
Daniel Goldberg f7c9cfe7a6 Update debian installation to use python3 2020-01-20 08:22:57 +02:00
Shay Nehmad 2a09d54ed1 Fixed dict bugs + server config 2020-01-19 21:45:31 +02:00
Shay Nehmad 6815433a85 Using the dispatcher instead of naming the functions one by one + optimize imports 2020-01-19 21:39:36 +02:00
Shay Nehmad 3496a78f6c Added generic collector processing functions, a dispatcher (name to function) with unit tests, and moved AWS to collector from regular sysinfo 2020-01-19 21:36:01 +02:00
Shay Nehmad 9583956683 Optimised imports and added some documentation 2020-01-19 18:14:59 +02:00
Shay Nehmad d52672f4d7 Added some documentation 2020-01-19 16:28:04 +02:00
Shay Nehmad 422fe6ff06 Added GCP instance as well 2020-01-19 16:22:28 +02:00
Shay Nehmad 1477190d10
Merge pull request #524 from guardicore/bugfix/handle_missing_curl_wget
Bugfix/handle missing curl wget fixes #503
2020-01-19 11:51:47 +02:00
VakarisZ c8618e91cd Added bootloader endpoint, fixed c code to be able to be included into pyinstaller 2020-01-17 12:02:18 +02:00
Daniel Goldberg 1cb66b46fa Remove warnings 2020-01-16 19:57:20 +02:00
Daniel Goldberg 9493cad5e6 Use exists function for deploy_linux.sh. 2020-01-16 19:54:02 +02:00
VakarisZ 4e150ea922 Added bootloader c file 2020-01-14 10:15:56 +02:00
VakarisZ 65aff1df52 Fixed a bug that caused some machines not to launch the latest binary,
removed unused ubuntu machine
2020-01-10 17:48:27 +02:00
VakarisZ f46635ab6c Added cpp file that creates a file (for testing) 2020-01-10 14:31:27 +02:00
Shay Nehmad 26355540bd Update system_info_collectors_handler.py 2020-01-08 21:06:02 +02:00
Shay Nehmad 41fa1d3e3f Made collect an abstract method 2020-01-08 14:08:53 +02:00
Shay Nehmad a3d81a0086 Renamed PlannedShutdown to PlannedShutdownException 2020-01-08 14:00:12 +02:00
Shay Nehmad 875cf3318d Fixed circular import 2020-01-08 12:21:38 +02:00
Shay Nehmad 676d46307b Using the generic CloudInstance class to determine environment 2020-01-08 11:20:49 +02:00
Shay Nehmad b9d2614271 CR: Moved AWS classes to own package, create generic CloudInstance class 2020-01-08 11:09:52 +02:00
VakarisZ 91c05ae0f4 dangling comma removed from StartOverPage 2020-01-08 09:19:29 +02:00
VakarisZ b130dd35ec double quotes to single quotes in StartOverModal 2020-01-08 08:57:25 +02:00
VakarisZ 18731a430b Fixed start over modal and start over page, added stylesheet 2020-01-07 16:06:50 +02:00
VakarisZ 34618e1e1e
Merge pull request #523 from guardicore/ssh_keys_palintext_fix
Plaintext ssh keys in logs
2020-01-07 11:18:40 +02:00
VakarisZ 95a42232bb Copied modal into a separate react component 2020-01-06 11:02:36 +02:00
Shay Nehmad fdb54f6b8d Extracted function in EnvCollector for reuse in other parts of the Monkey 2020-01-05 16:23:22 +02:00
Shay Nehmad c0331f84ff Added system info collectors as plugins and the first plugin - EnvironmentCollector 2020-01-05 15:49:05 +02:00
Shay Nehmad 974e2205d1 Bugfix in error handling - func_name does not exist 2020-01-05 15:47:37 +02:00
Daniel Goldberg 5c7cc5117a Fix typo 2020-01-05 10:08:48 +02:00
Daniel Goldberg 768a103c0a Shell formatting 2020-01-04 22:55:00 +02:00
Daniel Goldberg 6c90184010 Double quote to prevent globbing. Not worriessome but why not 2020-01-04 22:54:25 +02:00
Daniel Goldberg 98018251ac Added error handling for pushd failing. 2020-01-04 22:52:56 +02:00
Daniel Goldberg fe97a8f8e3 Fixed SC2155
https://github.com/koalaman/shellcheck/wiki/SC2155
2020-01-04 22:51:08 +02:00
Daniel Goldberg f15abda2ff 1 - Formatted shell script
2 - Added option to download with either curl or wget
2020-01-04 22:50:34 +02:00
Daniel Goldberg dacd469aa9 Double quote to prevent globbing 2020-01-04 22:40:22 +02:00
Daniel Goldberg 6c26933bf8 Set return value to valid return value 2020-01-04 22:37:51 +02:00
VakarisZ a946fc1f31 Hid plaintext ssh keys in logs 2020-01-03 18:28:17 +02:00
Shay Nehmad 723b5b47a5 WIP - adding the environment collector as a plugin, still some work to do 2020-01-02 14:58:40 +02:00
VakarisZ 7af8104434
Merge pull request #511 from guardicore/404_page
404 page added
2020-01-02 12:53:04 +02:00
VakarisZ 9c81ccf6bd Removed unnecessary semicolon in NotFoundPage 2020-01-02 12:38:47 +02:00
Shay Nehmad 718291d573 Tested the AzureInstance class
Tested on Azure instance and non-cloud instace. Seems to work . Unit tests aren't relevant here
2020-01-02 12:16:48 +02:00
VakarisZ 63c4492174
Merge pull request #513 from guardicore/duplicate_credentials
Refactored credential saving to check if credentials already exist
2020-01-02 10:23:10 +02:00
Shay Nehmad 81b44f0ebb WIP - created azure instance class 2020-01-01 17:01:06 +02:00
Shay Nehmad fb0fea6f6a Improved the monkey start function structure a bit, extracted to functions
Prep work for changing system info collection to modular system
2020-01-01 15:33:02 +02:00
Daniel Goldberg 56d601967b fix permissions on script 2019-12-29 12:38:15 +00:00
Shay Nehmad a98ea150b5
Merge pull request #518 from guardicore/hotfix/add-tls-version-to-powershell-script-http-pba
Added TLS version to powershell command.
2019-12-26 16:13:44 +02:00
Shay Nehmad 9ab80362de Added TLS version to powershell command. 2019-12-26 16:08:55 +02:00
Shay Nehmad 52eced33e2
Merge pull request #517 from guardicore/feature/515-add-curl-pba
Replaced ping with curl/wget and Invoke-WebRequest
2019-12-25 12:52:56 +02:00
Shay Nehmad 6e9ee4158d We chose HTTPS 2019-12-25 10:57:17 +02:00
Shay Nehmad ab57b5895e Replaced CreateProcessAsUser with CreateProcessWithLogonW to get over the "0xc0000142" error code and added -UseBasicParsing to get over the IE Engine inconfigured error
This will be heavily documented in a tweet sometime
2019-12-24 19:08:52 +02:00