Commit Graph

449 Commits

Author SHA1 Message Date
James Barnett f8317d3ae2 Address code review comments
- Don't document unsupported session POST
- Hide unimplemented loot/id and session/id GET methods
- Fix URL for msf doc
- Add missing workspace parament to vuln-attempts
- Remove unneccessary code for hosting the doc UI
2018-05-29 12:24:53 -05:00
James Barnett acf4c2bd08 Merge branch 'master' into local_api_docs 2018-05-29 10:37:27 -05:00
Brent Cook 835281c7cc Land #9979, Add inactive list option to sessions command 2018-05-25 03:28:22 -05:00
Matthew Kienow 7ec5c06738 Change kind_of? to is_a? 2018-05-23 17:40:52 -04:00
Matthew Kienow 2c92e85494 Fix report_session_event with remote data service
Modify DBManager method to allow session ID retrieval from a Hash
2018-05-23 15:05:22 -04:00
James Barnett b83ee106f7 Merge branch 'master' into local_api_docs 2018-05-23 10:06:12 -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
James Barnett 84a8f2100b Merge branch 'master' into local_api_docs 2018-05-16 13:27:28 -05:00
James Barnett fc079138fd Service API doc second pass 2018-05-15 14:34:15 -05:00
Matthew Kienow f482995f74 Minor changes to be similar to other servlets 2018-05-14 17:40:37 -04:00
Matthew Kienow 4b13fbb5a3 Add workaround for race condition in report_host
Modify to use DBManager methods rather than DataProxy
2018-05-14 17:36:33 -04:00
Matthew Kienow 262e791dcc Make find_or_create_host opts more consistent
Modify to use DBManager methods rather than DataProxy
2018-05-14 17:35:18 -04:00
Matthew Kienow 25fdc02902 Modify to use find_or_create_host 2018-05-14 17:29:57 -04:00
James Barnett 0f33bd08c7 Update swagger UI files 2018-05-08 12:26:46 -05:00
Matthew Kienow 06e178cba2 Add functionality to retrieve sessions 2018-05-05 00:39:56 -04:00
James Barnett a5b9cc8cb8 Add Msf endpoint API doc 2018-05-03 17:16:04 -05:00
James Barnett 40c978e040 First pass at Vuln Attempt API doc 2018-05-03 16:59:30 -05:00
James Barnett 728850c61a First pass at Session Event API doc 2018-05-03 16:00:56 -05:00
James Barnett a11c7220b6 First pass at Event API doc 2018-05-03 14:20:23 -05:00
James Barnett 249db505c8 First pass at Credential API doc
Also get the workspace from the query string for credentials
2018-05-02 16:47:39 -05:00
James Barnett 6bc4e2d622 First pass for Nmap api doc 2018-05-02 15:44:07 -05:00
christopher lee 038fe03777 Merge branch 'master' into ms-2962 2018-05-02 15:31:57 -05:00
James Barnett e3c913e104 First pass for Exploit API doc
Also fixed a few formatting issues in other docs
2018-05-02 14:47:17 -05:00
James Barnett 5e9bbb4bef Merge branch 'master' into local_api_docs 2018-05-02 11:48:13 -05:00
James Barnett e1827bb2c3 DbExport API doc first pass 2018-05-02 11:40:56 -05:00
James Barnett fd8d30812e Add swagger-ui to view formatted API docs 2018-05-02 10:27:56 -05:00
James Barnett d5838e6411 First pass at sessions api doc 2018-04-30 16:17:27 -05:00
James Barnett d89f403368 First pass for vuln api doc 2018-04-30 13:41:31 -05:00
christopher lee 41307e62f8 remove puts 2018-04-27 15:50:21 -05:00
christopher lee 0a73a5007c Removed duplicated online test 2018-04-27 09:37:17 -05:00
James Barnett 5d32a3264d Workspace API Doc first pass. 2018-04-26 17:55:39 -05:00
James Barnett 5d43e0527f Notes API doc first pass 2018-04-26 17:42:03 -05:00
christopher lee 9c7db375bf Fix broken tests after latest merge with master 2018-04-26 16:39:56 -05:00
christopher lee 516b61ebaa Merged master 2018-04-26 16:02:56 -05:00
James Barnett 49baa2ce41 Initial pass for Services api doc 2018-04-26 14:38:16 -05:00
Matthew Kienow c79e39377e Narrow rescue scope to StandardError 2018-04-26 14:55:41 -04:00
James Barnett f46a3325fc Add loot api docs 2018-04-26 11:24:05 -05:00
James Barnett f5c35843a8 Move swagger docs to separate files 2018-04-26 11:08:11 -05:00
James Barnett cc460e5b95 Finish documenting host endpoints 2018-04-26 10:39:27 -05: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
James Barnett df9df01f19 First pass on swagger/blocks documentation 2018-04-25 12:58:29 -05:00
Brent Cook 3eac989fb0 Land #9886, ignore unused tags on host import 2018-04-25 03:41:55 -05:00
Matthew Kienow 0d284197cb Add MsfServlet to host endpoint for online check 2018-04-24 15:01:17 -04:00
James Barnett e5513409db Include :workspace in db_import opts 2018-04-24 13:53:55 -05:00
James Barnett f4a949e649 Fix bug creating sessions when connected to remote data service 2018-04-19 16:19:39 -05:00
James Barnett 31be847213 Add workspace when reporting vuln_attempt 2018-04-19 11:09:13 -05:00
James Barnett aa40ef1789 Grab session_dto workspace from host 2018-04-18 17:38:42 -05:00
James Barnett 81d00fa5b7 Fix edge cases in workspace update 2018-04-18 12:56:38 -05:00
James Barnett d4a2703ff1 Dont stop host parsing if id tag found
Also make clarify 'bl' variable name.
2018-04-18 10:12:12 -05:00