bcoles
9dcaf93b29
Replace deprecated File.exists? with File.exist?
2023-03-05 14:30:47 +11:00
Dean Welch
c143124344
Add feature to set the status of ticket/ccache via klist
2023-01-25 13:28:43 +00:00
Jeffrey Martin
d240292253
move web service api code into library path
2021-08-09 12:22:43 -05:00
Alan Foster
7fe97cfda2
Add health check functionality
2021-04-16 01:59:22 +01:00
dwelch-r7
390b08d3d8
Fix namespacing for Route servlet
2020-12-18 11:00:55 +00:00
dwelch-r7
f4e0278125
Add remote data service support for autoroute
2020-12-18 11:00:55 +00:00
dwelch-r7
fb638e909a
Replace self with the explicit Module name
2020-12-11 11:44:39 +00:00
dwelch-r7
1617b3ec9b
Use zeitwerk for lib/msf/core folder
2020-12-07 10:31:45 +00:00
Jeffrey Martin
03a30d80ef
creds need web service to support request by :id
2020-10-01 11:13:38 -05:00
Adam Galway
4918ecf826
replaced get_service calls with services calls
2020-09-16 12:29:15 +01:00
Jeffrey Martin
1e348e0a90
add root path of endpoints that accept :id in path
...
When requesting all records of a type :id is not supplied. A behavior change
in `sinatra` now report a `param` of the missing object with value `nil`.
Since this parameter would be used as a search term further down the stack and
most objects cannot have `:id` = `nil` exposing the additional path is needed.
2020-07-31 11:56:52 -05:00
Adam Galway
8e3add3f5f
simplifies get host id, renames endpoints & clean
2020-04-28 13:33:54 +01:00
Adam Galway
0bd43096f1
PRC return tags for del & add, simplified DB call
2020-04-23 17:01:32 +01:00
Adam Galway
789b5dec00
adds tag functionality for hosts
2020-04-22 16:47:23 +01:00
dwelch-r7
dfaba0a98e
Add endpoints for report_web_*
2019-11-15 16:33:28 +00:00
Aaron Soto
822f5357a2
Land #10675 , DB manager for payloads: Resolve conflicts, add 'create!' to trigger database write
2019-03-04 14:58:03 -06:00
James Barnett
b98133cded
Dont assign unique file name when theres no file on disk
2019-01-25 16:36:17 -06:00
James Barnett
fd6527bac8
Prepend loot filenames with unique string
...
This should help prevent accidentally overwriting files with the same name
2019-01-16 15:20:41 -06:00
James Barnett
dc7d611780
Base64 encode the data field for each loot operation
2019-01-15 18:01:43 -06:00
James Barnett
5c308b1448
Remove nested loot object from host JSON
...
The code on the framework side that was utilizing this was removed
a while ago. It was never actually being used anywhere, and was causing
issues with getting host objects back when the loot contained
non-UTF-8 characters
2019-01-15 16:45:04 -06:00
Erin Bleiweiss
d18c6bd158
Land #11188 , Correct authentication logic in host and event servlets
2019-01-10 13:09:26 -06:00
Brent Cook
f125526e09
Land #11207 , implement db_import for web service
2019-01-10 10:28:29 -06:00
Matthew Kienow
d117e6a1d1
Land #11142 , use POST for API token generation
2019-01-08 11:59:30 -05:00
James Barnett
466b0004e1
Land #11163 , add API endpoint for retrieving Mdm::Events
2019-01-08 09:26:53 -06:00
James Barnett
69ee3a4a26
Land #11187 , Conform LoginServlet to API standards
2019-01-07 17:03:39 -06:00
James Barnett
f23142c19c
Land #11183 , add authentication to LoginServlet endpoints
2019-01-07 17:02:31 -06:00
Erin Bleiweiss
6641c606b2
Add support for db import from remote data service
2019-01-07 14:32:27 -06:00
James Barnett
60681e4385
Use POST for token generation
2019-01-04 15:22:32 -06:00
James Barnett
0281ddf78c
Remove vuln_refs from Vuln JSON schema
...
This object is just a pointer between Vulns and refs. We don't need to surface it
2019-01-04 15:10:20 -06:00
James Barnett
e9931fa70e
Fix bug when updating Mdm::Vuln.refs
2019-01-04 15:10:19 -06:00
Matthew Kienow
4fc65b39a1
Make position of warden call the same as others
...
Minor correction for consistent usage since a previous refactoring moved
the authenticate call into the begin block.
2018-12-31 16:38:26 -05:00
Matthew Kienow
7b22527f8f
Make error message use same language as others
2018-12-31 16:37:08 -05:00
Matthew Kienow
05d810ac23
Add support for GET with ID in the path
2018-12-31 15:46:00 -05:00
Matthew Kienow
0e56c30ab2
Use data object wrapper for JSON response
2018-12-31 15:43:16 -05:00
Matthew Kienow
12f4222b2e
Fix to ensure authentication
2018-12-28 16:29:33 -05:00
Matthew Kienow
34e99c3857
Modify GET error message to match other servlets
2018-12-26 22:45:33 -05:00
Matthew Kienow
b5bc65c3bd
Add GET handler to query events
2018-12-21 22:18:10 -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
3f9b2dadc8
Remove unnecessary single object selection
2018-12-14 11:20:19 -05:00
Matthew Kienow
4cefb8d06e
Fix typo
2018-12-14 11:19:40 -05:00
Matthew Kienow
e144cc6738
Move under Msf::WebServices namespace
2018-11-26 12:58:10 -05: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
c7badd5c37
Add method comments
2018-09-20 20:07:45 -04:00
Matthew Kienow
9d3d9c3ad6
Change parameter version to Symbol
2018-09-20 19:58:04 -04:00
Matthew Kienow
4acf695de9
Remove debug output and unused code
2018-09-20 18:05:36 -04:00
Matthew Kienow
8bd9faad22
Initial JSON-RPC servlet and support architecture
2018-09-20 17:39:33 -04:00
Erin Bleiweiss
58b3f63c1a
Update to reflect new JSON models
2018-07-31 15:57:26 -05:00
Erin Bleiweiss
ffe4dbcc19
refactor out of db_manager and into web_services
2018-07-24 15:25:23 -05:00