Mike Salvatore
78ca2c25b1
deploy: Remove unnecessary recursive chmod
2021-04-28 12:18:26 -04:00
Mike Salvatore
9ad694fddf
Merge pull request #1106 from guardicore/pipenv
...
Requirement migration to pipenv
2021-04-26 11:37:05 -04:00
Mike Salvatore
afa412ca47
agent: Add note to readme to run build_linux.sh with `pipenv run`
2021-04-26 10:47:00 -04:00
Shreya
9b38303346
Rearrange functions' order in `monkey_island/cc/resources/pba_file_upload.py` to follow stepdown rule
2021-04-26 16:07:53 +05:30
Shreya
4f94e9de74
Break PBA file deletion into functions: attempt to delete PBA file in another function
2021-04-24 13:18:00 +05:30
Shreya
4854c9cfc9
Attempt to remove custom PBA file when resetting config only if filename exists in DB
2021-04-24 13:18:00 +05:30
Mike Salvatore
df67ba554e
agent: Add pyinstaller-hooks-contrib and importlib-metadata to Pipfile
...
Pipenv fails to install these dependencies in the
cdrx/pyinstaller:python3 container when pyinstaller is installed from
our fork. Adding them to the Pipfile ensures they get installed and
resolves the issue.
2021-04-23 11:20:13 -04:00
VakarisZ
fd8ef7f39e
Refactored test_telems to exported_telems and moved them from the test folder, because they are generated in production
2021-04-23 08:39:19 -04:00
VakarisZ
8121f08aa9
Refactored test_telems to exported_telems and moved them from the test folder, because they are generated in production
2021-04-23 11:12:14 +03:00
Mike Salvatore
3b32ef2f4a
Remove PostgreSQL fingerprinter
...
Issue #1077
2021-04-22 10:33:06 -04:00
Mike Salvatore
6a54c1e85a
agent: Add sys_platform == win32 to Pipfile
2021-04-22 09:50:30 -04:00
Mike Salvatore
6412391ff8
docs: Add pipenv instructions to manual monkey setup guide for Windows
2021-04-22 09:50:30 -04:00
Mike Salvatore
57d6552433
docs: Add pipenv instructions to manual monkey setup guide for Linux
2021-04-22 09:50:30 -04:00
VakarisZ
0120c027b0
Fixed run server bat script
2021-04-22 09:50:30 -04:00
Mike Salvatore
051621bdfa
Modify monkey_island/linux/run.sh to use pipenv
2021-04-22 09:50:30 -04:00
VakarisZ
c2024d06f6
Fixed requirements to use cryptography 2.5, so that linux builds of agents on ubuntu12 could install requirements
2021-04-22 09:50:29 -04:00
VakarisZ
ffb761ef4b
Updated monkey pipfile and pipfile.lock in attempt to fix brokend jenkins build
2021-04-22 09:50:29 -04:00
VakarisZ
c00754a3a4
Moved dev requirements of black, coverage, flake and others to dev dependencies of the island to be a single source of truth
2021-04-22 09:50:29 -04:00
VakarisZ
00e9940a0b
Using pymssql v2.2.0 or later results in the following error message:
...
ImportError: /tmp/_MEISNYzdG/pymssql/_pymssql.cpython-37m-x86_64-linux-gnu.so: ELF load command address/offset not properly aligned
2021-04-22 09:50:29 -04:00
VakarisZ
7f928fa90d
Migrated from monkey agents requirements.txt to pipenv requirements
2021-04-22 09:50:29 -04:00
VakarisZ
eca26b596b
Fixed island requirements frozen in PipFile to better correlate with already deleted requirements.txt
2021-04-22 09:50:29 -04:00
VakarisZ
465023b64d
Removed cryptography dependency from infection monkey agent dependencies and added eggs to git dependencies
2021-04-22 09:50:29 -04:00
VakarisZ
33de5aac60
Converted island requirement.txt file to pipenv files
2021-04-22 09:50:29 -04:00
VakarisZ
0f5cda52c2
Merge pull request #1113 from guardicore/import-fix
...
Fixed a broken import in mitigation.py
2021-04-22 11:44:14 +03:00
VakarisZ
26e10e9ed2
Fixed a broken import in mitigation.py
2021-04-22 11:33:14 +03:00
VakarisZ
ffec6f6e8a
Merge pull request #1112 from guardicore/import-fix
...
Import fix
2021-04-22 11:24:17 +03:00
VakarisZ
2480dc8cdb
Fixed a broken import in attack_mitigations.py
2021-04-22 11:13:18 +03:00
Mike Salvatore
7c452d0c6f
tests: Remove debug print statement in conftest.py
2021-04-21 08:03:01 -04:00
Mike Salvatore
a42e6312b1
tests: Remove unnecessary server configs
2021-04-21 08:00:24 -04:00
Mike Salvatore
753c0586c1
cc: Move config files and other testing resources to tests/ dir
2021-04-20 11:27:30 -04:00
Shreya
c37ae1e0ea
Modify pytest configuration
...
Shift it from monkey/pytest.ini to pyproject.toml.
Add conftest.py in tests/ to add monkey directory to sys.path so test files recognize paths.
2021-04-19 17:36:09 +05:30
Shreya
4680193375
Put unit test files in the right directories
...
Some test files were in their own "tests/" directory. Deleted the extra "tests/" directories.
2021-04-19 13:54:48 +05:30
Shreya
a2115e4254
Fix imports for unit test files
2021-04-19 13:54:48 +05:30
Shreya
f8936f61bb
Move all tests for monkey_island/cc/services/reporting/report.py to one file
2021-04-19 13:54:48 +05:30
Shreya
c08dbf9376
Move conftest files to tests/ directory
2021-04-19 13:54:48 +05:30
Shreya
fa21336ff2
Move all unit test files to a separate directory
2021-04-19 13:54:48 +05:30
Mike Salvatore
57f8f200b1
Merge pull request #1101 from guardicore/appimage-v2
...
Appimage v2
2021-04-16 07:45:19 -04:00
Mike Salvatore
5a1a5fc6fe
cc: Set cwd when executing monkey binary from the island
...
Since AppImages are read-only filesystems, the agent cannot create any
files in `./`. Therefore, setting cwd in the `subprocess.Popen()` call
will change CWD to a writable directory if `data_dir` is set.
2021-04-15 12:19:09 -04:00
Mike Salvatore
d507e6f617
Merge pull request #1098 from guardicore/eslint
...
Add eslint
2021-04-15 07:29:51 -04:00
VakarisZ
be693edb55
Merge pull request #888 from VakarisZ/typescript_support
...
Typescript support implemented
2021-04-15 12:43:15 +03:00
Mike Salvatore
3b4bd7b08c
cc: Upload custom PBAs to data_dir instead of MONKEY_ISLAND_ABS_PATH
2021-04-14 11:02:25 -04:00
Shreya
025cb7851c
Rename blackbox endpoint classes to match filenames
2021-04-14 15:33:02 +05:30
VakarisZ
ea61961ff4
Moved some packages to dev dependencies instead of prod in package.json
2021-04-14 11:05:43 +03:00
VakarisZ
448d846362
Moved dev UI dependencies from prod and changed typescript target to es6
2021-04-14 10:29:34 +03:00
VakarisZ
50c5fdb9fc
Typescript support implemented
2021-04-14 10:29:34 +03:00
Shreya
6d43ce900c
Rename blackbox test files under monkey_island/cc/resources/blackbox/
2021-04-14 10:47:00 +05:30
Shreya
86c4f9f63d
Rename directory "test" to "blackbox" in monkey_island/cc/resources/
2021-04-14 10:47:00 +05:30
Shreya
26684bbb4e
Rename files having endpoints for blackbox tests
2021-04-13 10:53:19 +05:30
Shreya
5469c7cc41
Match unit tests' class names and file names
...
Renamed class/file name depending on which was more applicable
2021-04-13 10:43:05 +05:30
Shreya
6e92127807
Rename unit test files from *_test.py to test_*.py
2021-04-13 10:43:05 +05:30