Daniel Goldberg
31a60b12ff
Fix typing in factory method
2019-11-12 20:11:16 +02:00
Daniel Goldberg
e9538e9a42
Bugfix, also change PBA interface
2019-11-12 19:39:58 +02:00
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
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
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
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
Daniel Goldberg
029c3bb24d
Change property names. Add type hints
2019-11-03 15:07:26 -05:00
Daniel Goldberg
0044eb393b
Formatting fail
2019-11-03 14:51:33 -05:00
Daniel Goldberg
37704e3eeb
Slightly cleaner usage of importlib, making sure we import the correct module
2019-10-31 10:39:33 -04:00
Daniel Goldberg
9c40b4a022
Refactor PBA to use generic plugin
2019-10-31 10:39:33 -04:00
Daniel Goldberg
1df3e30003
Refactor plugin loading into independent module
2019-10-31 10:39:33 -04:00
Daniel Goldberg
1a874762b1
Add pyinstaller hook since we are now not importing anything.
...
This is currently messy as there is no plugin directory for fingerprinters
2019-10-31 10:39:33 -04:00
Daniel Goldberg
8edb55723c
Introduce fingerprint manager to avoid having to explictly import classes in configuration.
...
Similar to PBA manager.
2019-10-31 10:39:33 -04:00
Daniel Goldberg
ab591fcf4c
Remove HostScanner and HostFinger to their own files
2019-10-31 10:39:33 -04:00
VakarisZ
e5715f5a7e
Removed unnecessary logging of config in BB and MSSQL unhandled error
2019-10-31 12:11:22 +02:00
VakarisZ
1f5acbc287
Another white screen fix
2019-10-31 10:48:02 +02:00
Daniel Goldberg
2517ab0284
Move get_interface_to_target to network, helping prevent a circular import
...
between pba.py and exploiter modules.
2019-10-30 20:23:19 -04:00
VakarisZ
ac63797f45
Blank screen fix corrected
2019-10-30 15:11:50 +02:00
VakarisZ
a6e61215f3
SSH banner read timeout exception (tunneling) bugfix
2019-10-30 14:45:30 +02:00
VakarisZ
dba52fcbed
BB tests bugfix of not refreshing JWT
2019-10-30 14:38:17 +02:00
VakarisZ
ec5de408b2
Blank screen (JWT token expiration) bugfix
2019-10-30 12:38:14 +02:00
Shay Nehmad
811b2b28f5
Merge pull request #473 from shivank1234/406/use-js-file-saver
...
406/use js file saver
2019-10-30 10:23:30 +02:00
Shivank
933dc9c378
Second File-saver patch
2019-10-30 11:06:25 +05:30