Commit Graph

2723 Commits

Author SHA1 Message Date
Daniel Goldberg 7f58bd9693 Remove load_plugin interface. 2019-11-12 19:35:57 +02:00
Daniel Goldberg 69c66072af Turn get_instances into class method.
This leads to package_name and package_file both also being class methods.
Now, each plugin family can load itself.
Reimplemented Fingerprinters and PBAs to use this interface.
No more need for fingerprinter collector
2019-11-12 19:33:51 +02:00
Shay Nehmad aab8315cae
Merge pull request #483 from guardicore/482/js-linting
JS linting in Travis build
2019-11-12 18:16:46 +02:00
Shay Nehmad ad8be355a1 Update travis upper limit for JS from 500 to 30 2019-11-10 15:58:30 +02:00
Shay Nehmad 93a270f5c7 Removed unused imports 2019-11-10 15:57:57 +02:00
Shay Nehmad 0a019daf9a Make favicon work 2019-11-10 15:52:03 +02:00
Shay Nehmad d36ec06e91 Fixing code style issues to lower linter warnings number 2019-11-10 15:51:54 +02:00
Daniel Goldberg 87cedacb7d Really basic test harness for plugins 2019-11-09 21:20:10 +02:00
Daniel Goldberg 4e7269b4df Exception handling whe building objects 2019-11-09 10:21:48 +02:00
Shay Nehmad 3607547aea Fix some formatting issues 2019-11-08 17:42:42 +02:00
Shay Nehmad ad1e85f867 Fixed typo and added some documentation. 2019-11-08 16:30:43 +02:00
Shay Nehmad 77c7aae07c
Merge pull request #481 from guardicore/468/copyright-year
468/copyright year
2019-11-08 16:23:58 +02:00
Jeong YunWon e1f1331ab4 Remove Monkey.__ring_key__
which was required by old version of ring bug
2019-11-08 12:48:44 +09:00
Shay Nehmad 0acec95c86 Updated JS lint upper limit (currently 497) 2019-11-07 17:00:14 +02:00
Shay Nehmad fde8ac53e3 Moved npm i to after python checks 2019-11-07 16:44:00 +02:00
Shay Nehmad 1194bc0d06 Added npm install to make sure eslint will work (it needs babel) 2019-11-07 16:35:42 +02:00
Shay Nehmad f313a34cbb installing eslint 2019-11-07 16:29:10 +02:00
Shay Nehmad c2ba6ce46c Changed structure - everything is the same job 2019-11-07 16:24:36 +02:00
Daniel Goldberg 2ab885b9b1 Create concept of Plugin and have all current plugins (fingerprinters/PBAs) inherit from it.
Move plugin manager to their own package. (prep for tests)
2019-11-07 15:49:18 +02:00
Shay Nehmad 54fd1d7744 Trying to make the travis script work 2019-11-07 15:02:49 +02:00
Shay Nehmad a6aa0eb864 Trying to multi-language travis build 2019-11-07 14:58:52 +02:00
Shay Nehmad e4ab668997 Made "Powered by Guardicore" bigger 2019-11-07 12:58:41 +02:00
Shay Nehmad b87eb3d0d4 Added rainge to make sure our copyright year is always updated. 2019-11-07 12:58:25 +02:00
Shay Nehmad dcbe7b1ee0
Merge pull request #394 from guardicore/393/python-3
Python 3 🎉
2019-11-07 10:37:45 +02:00
Daniel Goldberg 3c194e1eb8 Add TODO doc 2019-11-05 21:21:44 +02:00
Daniel Goldberg 30f7d724b9 Merge branch '393/python-3' into feature/refactor_fingerprinting
# Conflicts:
#	monkey/infection_monkey/monkey.py
#	monkey/infection_monkey/network/ping_scanner.py
#	monkey/infection_monkey/network/tcp_scanner.py
2019-11-05 21:20:10 +02:00
Daniel Goldberg c6216325b6 Removed bad documentation 2019-11-05 21:11:55 +02:00
Daniel Goldberg b0d77e3c21 Rename fingerprinter_manager to collector 2019-11-05 21:11:55 +02:00
Daniel Goldberg 997125eadd Revert longish import 2019-11-05 21:11:52 +02:00
Daniel Goldberg fb330a45e9
Merge pull request #477 from guardicore/bugfix/circular_import
Prevent circular import with PBA
2019-11-05 20:57:39 +02:00
Shay Nehmad 372d62fb91 Fix imports in processing 2019-11-05 17:02:40 +02:00
Shay Nehmad 211a4e9d34 Update CONTRIBUTING.md 2019-11-05 13:59:42 +02:00
VakarisZ 63d0e57bb7 Added documentation on why we ignore errors when getting tcp banner 2019-11-05 13:11:15 +02:00
VakarisZ a7218e13d4 Merge remote-tracking branch 'upstream/393/python-3' into 393/python-3 2019-11-05 12:39:33 +02:00
VakarisZ fc063a5378 Fixed mysql finger printer py3 bugs 2019-11-05 12:37:51 +02:00
Shay Nehmad c69766650c Update upper limit to actual current amount of linter warnings 2019-11-05 12:22:55 +02:00
Shay Nehmad bbdc12a412 Update .travis.yml 2019-11-05 12:19:46 +02:00
Shay Nehmad d52d00e5d9 Trying to make the test work 2019-11-05 12:13:38 +02:00
Shay Nehmad ea5ae67891 Updated flake8 to fail if number of warnings is too high 2019-11-05 12:05:45 +02:00
Daniel Goldberg 48740238e2
Merge branch '393/python-3' into bugfix/circular_import 2019-11-05 10:52:31 +02:00
Shay Nehmad d5bc218996
Merge pull request #448 from VakarisZ/deployment_scripts_python3
Deployment scripts python3
2019-11-05 10:43:59 +02:00
Shay Nehmad c68ea48b0b Added unit tests guide to the readme. 2019-11-05 10:19:39 +02:00
VakarisZ 88b8d2ce5a Merge branch '393/python-3' into deployment_scripts_python3
# Conflicts:
#	monkey/monkey_island/cc/ui/package-lock.json
#	monkey/monkey_island/cc/ui/package.json
#	monkey/monkey_island/requirements.txt
2019-11-04 16:06:43 +02:00
Shay Nehmad 2773002af7
Merge pull request #470 from guardicore/393/python-3-fix-linter-warnings
[WIP] 393/python 3 fix linter warnings
2019-11-04 15:29:48 +02:00
Shay Nehmad 38c45ccc72
Merge branch 'develop' into 393/python-3 2019-11-04 15:29:27 +02:00
VakarisZ 7de03d8db0
Merge pull request #475 from VakarisZ/py3_logging_improvements
Py3 logging improvements
2019-11-04 12:29:31 +02:00
Shay Nehmad a125df6345
Merge branch '393/python-3' into 393/python-3-fix-linter-warnings 2019-11-04 11:45:33 +02:00
Shay Nehmad bcf2d964d7 Moved representations to services 2019-11-04 11:44:25 +02:00
Shay Nehmad c778ae7aa1 Changed import to `import common.data.zero_trust_consts as zero_trust_consts`
Looks better
2019-11-04 11:27:34 +02:00
Daniel Goldberg cd716eb1c8 Remove unused imports. Removed bad asserts 2019-11-03 15:07:34 -05:00