Commit Graph

4807 Commits

Author SHA1 Message Date
Mike Salvatore c40f7bf6c9 Reformat all python with black v20.8b1 2021-04-06 09:20:18 -04:00
Shreya 7343b50135 Add configuration for black 2021-04-06 09:15:35 -04:00
Mike Salvatore d0e1239b27 ci: fail the build if code is not formatted with black 2021-04-06 09:15:35 -04:00
Shreya Malviya c7a241e776
Merge pull request #1068 from guardicore/report_refactoring
Report refactoring
2021-04-06 18:43:59 +05:30
Shreya 7973a35338 Fix unit tests 2021-04-06 18:31:02 +05:30
Shreya fa0729881e Remove unused imports 2021-04-06 18:12:03 +05:30
Mike Salvatore 47b74673d7
Merge pull request #1078 from guardicore/flake8
Flake8 improvements
2021-04-06 07:15:01 -04:00
Mike Salvatore b94568f976 ci: add comment about what flake8 C901 warnings are 2021-04-06 06:59:03 -04:00
VakarisZ 0b34d30fd6 Improved exploiter descriptors and usage of them in report.py 2021-04-06 11:35:41 +03:00
VakarisZ 6685b24da4 Removed unused annotations import 2021-04-06 10:16:05 +03:00
VakarisZ 87cec0036d Fixed report to show display names instead of class names of exploiters where needed 2021-04-06 10:11:34 +03:00
Mike Salvatore 46be7ae0d4 agent: resolve E741 flake8 warnings 2021-04-05 14:48:33 -04:00
Mike Salvatore 07afa27ec1 ci: add C901 to flake8's `extend-ignore` list
Issue #1076 has been created to track the task of resolving C901 errors
and removing C901 from the ignore list.
2021-04-05 14:44:42 -04:00
Mike Salvatore c1929c2bd3 ci: remove dlint from travis
Issue #1075 has been created to track the task to add this back in and
integrate with pre-commit
2021-04-05 14:26:24 -04:00
Mike Salvatore a7f8efa102 ci: fail travis build if flake8 finds any issues 2021-04-05 13:45:18 -04:00
Mike Salvatore 8ed4224341 build: Move flake8 config to `.flake8` 2021-04-05 13:38:31 -04:00
Mike Salvatore 575b214c8e build: setup pre-commit in deploy_linux.sh 2021-04-05 13:32:13 -04:00
Mike Salvatore c1d4c7a0d2 docs: add documentation about pre-commit 2021-04-05 12:18:50 -04:00
Shreya 3e419478af Fix F841 warnings 2021-04-05 20:33:19 +05:30
Shreya d8e1be7d6f Fix F401 warnings 2021-04-05 20:33:19 +05:30
Shreya d0168dfb9e Fix E722 warnings 2021-04-05 20:33:19 +05:30
Shreya 7bfdc3c7e5 Fix W605 warnings 2021-04-05 20:33:17 +05:30
Mike Salvatore 4966aaf213 ci: freeze versions of certain packages in travis build
Fix the versions of black, flake8, and isort in travis so that the same
versions are being used to pass/fail the build as developers are using
in their pre-commit hooks
2021-04-05 10:22:27 -04:00
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