Commit Graph

1754 Commits

Author SHA1 Message Date
Daniel Goldberg d1148a18f3 Remove warning on binding only to localhost 2019-05-11 16:03:14 +03:00
Daniel Goldberg 1aab83c79e Merge branch 'develop' of https://github.com/guardicore/monkey into develop 2019-05-11 14:56:20 +03:00
Daniel Goldberg a0e389df02
Merge pull request #315 from guardicore/change-aws-error-to-warning
Update aws_instance.py
2019-05-10 17:13:44 +03:00
Daniel Goldberg ab890e7baa
Struts2 ignores certificate errors, updated schema (#318)
Struts2 ignores certificate errors, updated schema
2019-05-10 17:11:45 +03:00
Daniel Goldberg fb07f2b6ea
Merge pull request #319 from VakarisZ/deployment_fix
MongoDB installation script added to deployment
2019-05-10 17:11:19 +03:00
VakarisZ b86ab2a940 MongoDB installation script added 2019-05-09 16:56:01 +03:00
VakarisZ 861750be5b Struts2 ignores certificate errors, updated schema 2019-05-09 12:23:44 +03:00
Shay Nehmad cfbf14fd67 Update aws_instance.py 2019-05-08 13:50:23 +03:00
Shay Nehmad df049ef842 Fixed report page not using the new API
Even though all monkeys have finished, the report page still used the dead=False check instead of is_dead. So even though all monkeys were dead or MIA the report page said that some monkeys are still runnning.
2019-05-07 18:59:07 +03:00
Shay Nehmad 963305db6e Added usage documentation to the unit tests 2019-05-07 17:36:22 +03:00
Shay Nehmad 5ec82647e4 Increased expiry time to fit production scenarios 2019-05-07 17:32:03 +03:00
Shay Nehmad 26bbf07d75 Deleted unused file (early implementation idea) 2019-05-07 17:31:38 +03:00
Shay Nehmad 29b7bb1adf Added documentation 2019-05-07 17:31:15 +03:00
Shay Nehmad bf3b2df253 Added section markers to monkey model 2019-05-07 17:21:05 +03:00
Daniel Goldberg 75f26f921e
Merge pull request #314 from guardicore/improvment/fix-gitignore
minor fixes, added vim swp files to gitignore
2019-05-07 16:16:01 +03:00
Shay Nehmad 81e49b45ce Small fix
Overshadows local
2019-05-07 15:59:16 +03:00
Shay Nehmad dc8f9294cd Added documentation about mongo connection setup 2019-05-07 15:58:44 +03:00
Shay Nehmad 00a4ffd028 The bug was found, TTL now works!
should have been utcnow(). see  https://stackoverflow.com/questions/55994379/mongodb-ttl-index-doesnt-delete-expired-documents

Feature was tested locally and works!
2019-05-07 15:58:05 +03:00
Shay Nehmad 0e4dbfb078 Replacing existing code with the new model API
Only for is_dead calls
2019-05-07 15:57:11 +03:00
Shay Nehmad 3c6cda03af Added get_single_monkey_by_id API to the monkey model
Useful in many cases in the code.
Also added unittest for this method which passed.
2019-05-07 15:56:27 +03:00
VakarisZ fd551a49b1 Matrix reset bugfix 2019-05-07 14:49:17 +03:00
Shay Nehmad 295525dfed Extracted models to files, created TestingEnv, and added unit testing for Monkey.is_dead
The init of models checks the env and sets up the DB connection.
2019-05-07 13:54:17 +03:00
VakarisZ 079b5b75b0 UI code style improved 2019-05-07 12:55:51 +03:00
Shay Nehmad 467e43aa1a Added PyCharm ignore inspection to PyInstaller import and updated gitignore 2019-05-07 12:05:22 +03:00
Shay Nehmad 243a0ba961 chmod +x install_mongo 2019-05-07 12:04:12 +03:00
Shay Nehmad 0602a3bc83 Renamed collection from TTL to MonkeyTTL 2019-05-07 11:51:17 +03:00
VakarisZ ef68bd9201 Merge branch 'attack_configuration' into attack_report 2019-05-07 11:05:34 +03:00
VakarisZ 4c0f73cb91 UI code style improved, reset_db fixed 2019-05-07 11:04:35 +03:00
VakarisZ 860b4eb813 Requirements fix 2019-05-06 15:28:46 +03:00
VakarisZ ae074c6914 Merge remote-tracking branch 'upstream/develop' into attack_configuration 2019-05-06 15:25:51 +03:00
VakarisZ 7f5c07c1fd Refactored fingerprint scanners to add port on init 2019-05-06 14:57:17 +03:00
Shay Nehmad 1018906602 Added models using mongoengine and started using them in the code, and added TTL field
TTL doesn't get expired for some reason, trying to solve in https://stackoverflow.com/questions/55994379/mongodb-ttl-index-doesnt-delete-expired-documents
2019-05-05 20:50:11 +03:00
Shay Nehmad fd2e0887ff Refactor Environment to enable access to mongo url 2019-05-05 20:48:05 +03:00
Shay Nehmad 03420aae50 Update const of timeout 2019-05-05 20:47:36 +03:00
VakarisZ 44077e6bfe Merge branch 'attack_configuration' into attack_report
# Conflicts:
#	monkey/infection_monkey/monkey.py
#	monkey/monkey_island/cc/services/attack/attack_config.py
#	monkey/monkey_island/cc/services/attack/attack_telem.py
#	monkey/monkey_island/cc/ui/src/components/Main.js
2019-05-03 11:23:25 +03:00
VakarisZ c3aa316c07 Added 'should_exploit' configuration field, minor fixes 2019-05-03 10:43:46 +03:00
VakarisZ cdd3270730 Attack configuration page moved into island configuration 2019-05-02 17:11:30 +03:00
itay b560f4c58f move bson to beginning of requirements
add requests to requirements
2019-04-30 15:22:30 +03:00
VakarisZ c055820a0d Merge branch 'attack_configuration' of https://github.com/VakarisZ/monkey into attack_configuration 2019-04-29 09:55:15 +03:00
Daniel Goldberg 916478ee63 Fix variable quoting 2019-04-28 19:57:12 +03:00
Shay Nehmad 99bc61f9d9 Added a decorator in which the "timer start" for the timeout can be implemented 2019-04-25 14:45:37 +03:00
Shay Nehmad 1a5ebf8dbd chmod +x install_mongo 2019-04-24 15:16:28 +03:00
Shay Nehmad 790c8fd079 Added PyCharm ignore inspection to PyInstaller import and updated gitignore 2019-04-24 14:16:38 +03:00
Shay Nehmad 52a1149b0f
Merge pull request #312 from guardicore/master
Back-merge Master into Develop
2019-04-24 10:46:26 +03:00
Shay Nehmad 08a7b1f91f
Merge branch 'develop' into master 2019-04-24 10:46:11 +03:00
Shay Nehmad 9613a57e10
Merge pull request #303 from guardicore/hotfix/281-aws-roles-hotfix-for-amazon
Hotfix/281 aws roles hotfix for amazon.
Approved by me and @acepace  👍
2019-04-24 10:43:22 +03:00
Shay Nehmad 2fae4905fe Added some documentation 2019-04-24 10:41:52 +03:00
Shay Nehmad 1f75b72a97 Improved c'tor of AwsInstance 2019-04-23 20:23:48 +03:00
Shay Nehmad 6b2eb126b5 Deleted ENCRYPTED_CONFIG_STRINGS 2019-04-23 19:44:47 +03:00
Shay Nehmad 9e49721bec Deleted any and all remainders of AWS access key/secret key from the project 2019-04-23 19:42:07 +03:00