Commit Graph

139 Commits

Author SHA1 Message Date
Matthew Kienow 8c29319b25 Add session_events method 2019-01-08 14:02:40 -05:00
James Barnett 466b0004e1 Land #11163, add API endpoint for retrieving Mdm::Events 2019-01-08 09:26:53 -06:00
Matthew Kienow 7e10b38421 Add events method 2018-12-21 21:37:42 -05:00
Matthew Kienow eec7a3dafc Remove debug code 2018-12-14 13:33:16 -05:00
Matthew Kienow b6cdf7aa9d Add update_session method 2018-12-14 12:04:55 -05:00
Matthew Kienow a8ed971f12 Move convert_msf_session_to_hash to data proxy 2018-12-14 11:46:12 -05:00
Jeffrey Martin 1eb4a79410 adjust error message on impart 2018-11-21 14:42:48 -06:00
Matthew Kienow 2571c8cd86 Use data_service_operation block to perform work 2018-11-12 23:45:29 -05:00
Matthew Kienow eb9dd311ce Add check that data service is active 2018-10-25 23:07:31 -04:00
Matthew Kienow 2f8aacbf8d Remove debug output 2018-10-25 14:44:11 -04:00
Matthew Kienow 64f8852797 Use data_service_operation block to perform work
This fixes the session report issue when the database is disabled,
because no exceptions are thrown from the DataProxy under these
conditions.
2018-10-25 14:38:13 -04:00
Matthew Kienow 7f8aeeb498 Raise RuntimeError rather than Exception 2018-10-25 14:29:24 -04:00
Matthew Kienow 8e2d6a62b1 Add block process data service operation method 2018-10-25 14:24:47 -04:00
Green-m 3c5aa93a0d Fix for style consistency. 2018-10-24 15:17:37 +08:00
Green-m 129425ca94 Fix session report bug when database disabled. 2018-10-24 14:48:03 +08:00
James Barnett 68aca395a4 Remove debug logging 2018-08-21 15:06:30 -05:00
James Barnett f05844d8f4 Refactor options handling and help printing 2018-08-15 11:48:03 -05:00
James Barnett 387d784ddc Implement db_disconnect for remote data service
And a couple of fixes for db_connect for remote data services
2018-08-07 14:03:38 -05:00
James Barnett eb240892fc Fix but with origin display in console
Also prevent adding workspace to opts when id is present
2018-07-31 14:03:53 -05:00
James Barnett d1f09ca81c Add path selection for GET requests
Also remove instances where workspace is passed for
single object lookups since it is no longer required
2018-07-30 13:56:34 -05:00
James Barnett eccd223a3e Merge branch 'master' into conform_to_api_standards 2018-07-24 12:11:14 -05:00
James Barnett c7ea24e856 Pass symbols for credential types 2018-07-20 13:17:57 -05:00
James Barnett 65d42380d3 Merge branch 'master' into remote_creds_data 2018-07-19 16:25:06 -05:00
James Barnett 59962c5273 Merge branch 'master' into conform_to_api_standards 2018-07-19 09:26:17 -05:00
James Barnett 026ddad9d8 Remove more unused code 2018-07-18 12:44:27 -05:00
James Barnett 846df018e0 Minor code cleanup. Remove unused methods 2018-07-18 11:51:43 -05:00
James Barnett d3eb71e8e5 Implement invalidate_login 2018-07-09 16:15:40 -05:00
Matthew Kienow 77a0b74f76 Add delete option to data_services cmd 2018-07-05 16:40:55 -04:00
James Barnett 9f2f61c481 Implement create_credential_and_login in the dataproxy 2018-06-14 13:28:03 -05:00
James Barnett 9aaa7ce142 Enable cracked credential creation via data proxy 2018-06-12 16:00:02 -05:00
James Barnett d1e0bcf946 WIP: add endpoint for Credential::Login 2018-05-31 15:33:11 -05:00
James Barnett 7bcf28440f Merge branch 'local_api_docs' into remote_creds_data 2018-05-29 12:52:15 -05:00
James Barnett a595dff6a8 Add remote creds update 2018-05-25 16:02:25 -05:00
Brent Cook 835281c7cc Land #9979, Add inactive list option to sessions command 2018-05-25 03:28:22 -05:00
James Barnett a107336ad5 Move cred delete to DBManager 2018-05-23 16:47:56 -05:00
Matthew Kienow 4ecc1ff551 Modify loots, notes and services search methods
Modify loots and services method signatures. Remove workspace as a
positional argument, move into opts hash argument and update callers.
Made host search for these models more uniform. Update find_or_create
methods to handle difference in opts between find and report
operations.
2018-05-21 17:37:51 -04:00
Matthew Kienow 6b1113d38d Fix incorrect rescue argument 2018-05-17 12:46:41 -04:00
Matthew Kienow 02566071be Implement find_or_create DataProxy methods 2018-05-14 17:09:20 -04:00
Matthew Kienow 06e178cba2 Add functionality to retrieve sessions 2018-05-05 00:39:56 -04:00
christopher lee 038fe03777 Merge branch 'master' into ms-2962 2018-05-02 15:31:57 -05:00
christopher lee a7ec7b52b7 Fix error on data server due to unexpected report_exploit call 2018-05-02 14:59:02 -05:00
christopher lee 516b61ebaa Merged master 2018-04-26 16:02:56 -05:00
christopher lee e97693d056 Cleanup 2018-04-26 16:01:15 -05:00
Matthew Kienow c79e39377e Narrow rescue scope to StandardError 2018-04-26 14:55:41 -04:00
James Barnett a5172e066d Land #9926, check remote data service before connecting
This PR adds a check prior to connecting to a remote data service
to verify it is online and returning expected data. This prevents
crashes that were occurring when unexpected responses were returned
2018-04-25 14:07:33 -05:00
christopher lee 071a191055 Merge master + workspace removal from http remote data service 2018-04-25 13:39:46 -05:00
Matthew Kienow 43edf46c43 Fix set data service for no database YAML case 2018-04-24 18:34:16 -04:00
Matthew Kienow 359ef27834 Narrow rescue scope to StandardError 2018-04-24 17:19:54 -04:00
Matthew Kienow f66029d129 Validate remote data service instance
Adds simple data service instance validation when registering and
setting a data service.
2018-04-24 16:54:10 -04:00
Matthew Kienow 01dd79173b Add data proxy and service for online check 2018-04-24 15:11:16 -04:00