Commit Graph

28 Commits

Author SHA1 Message Date
Matthew Kienow 97f57cd96a
Get MSF config root dir rather than a fixed value 2019-01-10 12:29:08 -05:00
James Barnett 4ea2c5bc49
Update msfdb to use POST generate-token 2019-01-04 15:22:32 -06:00
Matthew Kienow ebc7a3a315
Replace sysrandom with ruby default securerandom 2018-12-26 13:40:44 -05:00
asoto-r7 c2c8066f09
msfdb: Reverted back to unless and nil? 2018-12-20 13:28:47 -06:00
asoto-r7 30b914e4f0
msfdb: Added verbosity to 'missing requirements' error 2018-12-20 12:07:35 -06:00
Matthew Kienow 4cc9959e3f
Move MSF API App and associated servlets
The modules interact with the DbManager, however, are not a part of it
and belong in a more meaningful location for web services.
2018-11-19 18:46:15 -05:00
Matthew Kienow c3a2b72836
Use Msf::Util::Helper.which method 2018-09-28 14:48:23 -04:00
Matthew Kienow 55cf17bf15
Add check for required commands 2018-09-28 13:41:03 -04:00
Matthew Kienow 14f2907d73
Update to handle new db_connect format 2018-08-31 23:12:23 -04:00
Matthew Kienow 5a14974f78
Prompt user to persist data service connection 2018-08-29 18:11:42 -04:00
Matthew Kienow d32297871a
Update data_services cmd to new db_connect cmd 2018-08-29 18:11:42 -04:00
Matthew Kienow f8bef79ba5
Add environment variable hash for cmd being run
Convert input to keyword argument
2018-08-29 18:11:31 -04:00
Matthew Kienow cb96b628b3
Improve usage help
Style correction to prefer single-quoted strings
2018-08-20 11:43:12 -04:00
Matthew Kienow d5b9826f9e
Add default workspace via web service 2018-08-15 16:40:40 -04:00
Matthew Kienow 75249d82d8
Improve web service status messages 2018-08-07 18:37:18 -04:00
Matthew Kienow d9eae8e113
Enhance init handling of existing database config 2018-08-07 17:37:01 -04:00
Matthew Kienow 9b93e0cfcd
Style correction to prefer single-quoted strings 2018-08-07 15:31:44 -04:00
Matthew Kienow f7a4593392
Make web service init and start more robust
Remove PID check code since thin will stop and cleanup the PID under
certain circumstances after it has started and a PID file is written.
Reuse web service online check for this purpose.
2018-08-07 15:29:41 -04:00
Matthew Kienow 956bc2fa4f
Prompt user before deleting all DB data 2018-08-06 17:44:44 -04:00
Matthew Kienow c6a976820f
Make web service init and start more robust 2018-08-06 16:26:36 -04:00
Matthew Kienow 0844a205f6
Correct predicate method names per style guide 2018-08-06 16:16:47 -04:00
Matthew Kienow 8a5d396fdc
Fix dependency issue 2018-08-06 14:27:16 -04:00
Matthew Kienow b4085e6a5f
Add required env to fix unexpected behavior 2018-08-03 18:43:50 -04:00
Matthew Kienow 70b29824bc
Output web service information to help user 2018-08-03 12:30:03 -04:00
Matthew Kienow be2ad2b947
Rework client authentication configuration file
Restore the md5 auth-method for the postgres DB, msftest user. Use the
default client authentication config to create roles and databases
before writing our own config.
2018-08-03 00:29:47 -04:00
Matthew Kienow ca1359bda3
Reword prompt from original script 2018-08-01 17:44:45 -04:00
Matthew Kienow 2c2af114c4
Fix database name typo in privs for development
Also updates authentication method to trust, but verify. Change made
to original script in parallel see rapid7/metasploit-omnibus/#73.
2018-08-01 17:42:03 -04:00
Matthew Kienow f458031798
Add enhanced msfdb with web service support
Derived from the msfdb script in the metasploit-omnibus repo.
2018-08-01 02:29:39 -04:00