Mike Salvatore
6ffc527f31
add pre-commit configuration
...
pre-commit (https://pre-commit.com/ ) is a tool that helps you easily
manage pre-commit hooks. We are using this largely for quality control
by running tools like flake8 and black.
2021-04-05 10:21:15 -04:00
Shreya
278326e4e4
Fix W293 warnings
2021-04-05 17:46:43 +05:30
Shreya
6be3462678
Add configuration for black
2021-04-05 07:53:03 -04:00
Mike Salvatore
ecfc59cfd7
ci: fail the build if code is not formatted with black
2021-04-05 07:53:03 -04:00
Shreya
480f6ccc7f
Modify configuration for flake8
2021-04-05 15:46:45 +05:30
Mike Salvatore
e616fcdf50
Merge branch 'appimage' into develop
2021-04-04 21:53:06 -04:00
Mike Salvatore
f7cc01811c
build: address shellcheck findings in build_appimage.sh
2021-04-04 21:28:04 -04:00
Mike Salvatore
ed3d55c8aa
build: run `apt upgrade` in appimage script
2021-04-04 21:08:48 -04:00
VakarisZ
de2581d323
Extended exploiter report info class to have all possible values that exploit processors could add
2021-04-02 12:00:04 +03:00
VakarisZ
72a97e6465
Small style fixes and improvements
2021-04-02 11:59:28 +03:00
Mike Salvatore
bbe075bca5
build: remove unused monkey_island.desktop
2021-04-01 12:28:39 -04:00
Mike Salvatore
5b1296e05d
build: Add README with instructions for appimage builder
2021-04-01 12:25:34 -04:00
Mike Salvatore
8278e0eb6b
build: improve appimage build script quality by addressing review comments
2021-04-01 12:25:06 -04:00
Mike Salvatore
74f1dd1af5
Add PostgreSQL finderprinter to CHANGELOG.md
2021-03-31 13:51:31 -04:00
Mike Salvatore
7d0de002c7
Merge pull request #892 from shreyamalviya/postgresql-fp
...
PostgreSQL Fingerprinter
2021-03-31 13:26:42 -04:00
Mike Salvatore
05a368e534
Update CHANGELOG.md to include AppImage changes
2021-03-31 12:07:20 -04:00
Mike Salvatore
3d938f2536
cc: Fix come incorrect import paths
2021-03-31 11:55:21 -04:00
Mike Salvatore
2c75eab467
build: remove separate pyjwt `pip install`
...
This line was a workaround for an issue resolved by ed589bd
.
2021-03-31 11:30:55 -04:00
Mike Salvatore
b0af8b1b97
build: create appimage-comaptible server_config.json on start
2021-03-31 08:27:41 -04:00
Mike Salvatore
412aa2ba35
build: remove unnecessary includes from monkey_island_builder.yml
2021-03-31 08:27:41 -04:00
Mike Salvatore
5e56257051
build: do not pull agent helper binaries during appimage build
2021-03-31 08:27:41 -04:00
Mike Salvatore
7910d9be52
build: install nodejs 12 in appimage
2021-03-31 08:27:41 -04:00
Mike Salvatore
a97bd19358
build: remove unnecessary comments from appimage build
2021-03-31 08:27:41 -04:00
Mike Salvatore
3c113f7a89
build: work around limitations in appimage-builder
...
See https://github.com/AppImageCrafters/appimage-builder/issues/93 for
more information.
2021-03-31 08:27:41 -04:00
Mike Salvatore
eae5881b5f
build: prevent PyInstaller from being installed into the appimage
2021-03-31 08:27:41 -04:00
Mike Salvatore
1ac67cfe54
build: create ~/.monkey_island with 0700 permissions
2021-03-31 08:27:41 -04:00
Mike Salvatore
921c4d01ca
cc: resolve some flake8 warnings
2021-03-31 08:27:41 -04:00
Mike Salvatore
1fad6b4666
cc: remove unnecessary `config` property from environment_singleton
...
Introduced in b0d478473fe
2021-03-31 08:27:41 -04:00
Mike Salvatore
b5e8d895c8
cc: use data_dir when running monkey agent locally from island
2021-03-31 08:27:41 -04:00
Mike Salvatore
e1209dcb4c
cc: add data_dir_abs_path property to EnvironmentConfig
...
EnvironmentConfig needs to handle environment variables and '~' in its
`data_dir` property. Other components that consume `data_dir` need
environment variables and '~' resolved to an absolute path. Add a
property called `data_dir_abs_path` that calculates the absolute path
from `data_dir`. Since `data_dir` remains unchanged, the
EnvironmentConfig can be saved to file without modifying the `data_dir`
option in the file.
2021-03-31 08:27:41 -04:00
Mike Salvatore
20a3d31852
build: add data_dir to standard server config in appimage build
2021-03-31 08:27:41 -04:00
Mike Salvatore
29c9c72ef3
cc: rename server_config_data_dir.json -> server_config_with_data_dir.json
2021-03-31 08:27:41 -04:00
Mike Salvatore
45367bb051
cc: add encrypt/decrypt test
2021-03-31 08:27:41 -04:00
Mike Salvatore
fdeec3a634
cc: rename data_dir parameter in encryptor to password_file_dir
2021-03-31 08:27:41 -04:00
Mike Salvatore
115368f83d
cc: rename DATA_DIR constant in test to WITH_DATA_DIR
2021-03-31 08:27:41 -04:00
Mike Salvatore
044c656543
cc: rename encryptor() -> get_encryptor()
2021-03-31 08:27:41 -04:00
Mike Salvatore
a09cd8f497
cc: expanduser in data_dir path in Encryptor
2021-03-31 08:09:32 -04:00
Mike Salvatore
d265238107
cc: format encryptor.py with black
2021-03-31 08:09:32 -04:00
Mike Salvatore
3f6c268f40
cc: allow encryptor to store key file in variable locations
2021-03-31 08:09:32 -04:00
Mike Salvatore
438a2701d4
cc: add `data_dir` property to EnvironmentConfig
2021-03-31 07:50:12 -04:00
Mike Salvatore
2d971d95fc
build: select server and logger config at runtime in appimage
2021-03-31 07:37:49 -04:00
VakarisZ
64018eb373
Extracted home environment mocking into a reusable fixture and added a todo, to move it to our fixture list
2021-03-31 07:37:49 -04:00
VakarisZ
ef1ef3475b
Extracted island argument parsing into a separate file
2021-03-31 07:37:49 -04:00
Mike Salvatore
21e0b5170b
cc: explicitly cast tmpdir to str in test_island_logger.py
2021-03-31 07:37:49 -04:00
Mike Salvatore
1f57610005
monkey_island.py: Add TODO to refactor argument handling
2021-03-31 07:37:49 -04:00
Mike Salvatore
e6bf085d12
address some flake8 errors
2021-03-31 07:37:49 -04:00
Mike Salvatore
5b781c50a4
cc: rename DEFAULT_LOGGING_CONFIG_PATH -> DEFAULT_LOGGER_CONFIG_PATH
2021-03-31 07:37:49 -04:00
Mike Salvatore
74e0dfddc5
cc: expand "~" in log file configuration
2021-03-31 07:37:49 -04:00
Mike Salvatore
8b3703816d
run black to format monkey_island.py
2021-03-31 07:37:49 -04:00
Mike Salvatore
e8bb2e6be2
cc: allow logger config to be specified at runtime
2021-03-31 07:37:49 -04:00