API
The lb
(load balancer) will process requests for both the ui
(frontend) and the web
(API) containers. It is exposed on port 80 by default. Requests that prepend /api
to the URL will route requests to the web
container and all other URLs will be routed to the ui
container. Additionally, there is an admin
container that is exposed on its own port (5001) and is not load-balanced.
Here are the available API endpoints:
admin
(port 5001)
admin
(port 5001)GET
http://0.0.0.0:5001/v1
Path Parameters
string
GET
http://0.0.0.0:5001/v1/id/files
Path Parameters
string
GET
http://0.0.0.0:5001/v1/id/results
Path Parameters
string
GET
http://0.0.0.0:5001/v1/ids
Path Parameters
string
GET
http://0.0.0.0:5001/v1/info
Path Parameters
string
GET
http://0.0.0.0:5001/v1/logs/:id
Path Parameters
string
web
(port 80)
web
(port 80)GET
http://0.0.0.0/api/v1
Path Parameters
string
GET
http://0.0.0.0/api/v1/delete/:sess_id
Deletes files and id directories associated with a session. The last session ID and request ID will be reset if they referred to this session.
Path Parameters
sess_id
string
Session ID
/api/v1/id/:sess_id/:req_id/:tool/:pcap/:counter/:filename
GET
http://0.0.0.0/api/v1/id/:sess_id/:req_id/:tool/:pcap/:counter/:filename
Serves up the results from a file produced by a tool given a specific PCAP uploaded for rendering.
Path Parameters
filename
string
Filename to serve up that is returning results from the tool.
counter
number
Which result file number to get, if only one use 1
pcap
string
The name of the PCAP file
tool
string
The tool to get results from
req_id
string
The ID of the file request
sess_id
string
The ID of the session
/api/v1/ids/:sess_id
GET
http://0.0.0.0/api/v1/ids/:sess_id
Returns a list of all IDs and info about them for this session ID.
Path Parameters
sess_id
string
Session ID
GET
http://0.0.0.0/api/v1/info
Path Parameters
string
GET
http://0.0.0.0/api/v1/raw/:tool/:counter/:sess_id/:req_id
Returns the raw JSON results from a tool.
Path Parameters
req_id
string
The ID of the file request.
sess_id
string
Session ID
counter
number
A tool might have more than 1 result, otherwise use 0.
tool
string
Name of the tool to get results for.
/api/v1/results/:tool/:counter/:sess_id/:req_id
GET
http://0.0.0.0/api/v1/results/:tool/:counter/:sess_id/:req_id
Returns the results from a tool for rendering.
Path Parameters
req_id
string
The ID of the file request.
sess_id
string
Session ID
counter
number
A tool might have more than 1 results, otherwise use 0.
tool
string
Name of the tool to get results for.
/api/v1/status/:sess_id/:req_id
GET
http://0.0.0.0/api/v1/status/:sess_id/:req_id
Return the status of all tools for a request ID.
Path Parameters
req_id
string
The ID of the file request.
sess_id
string
Session ID
/api/v1/stop/:sess_id/:req_id
GET
http://0.0.0.0/api/v1/stop/:sess_id/:req_id
Stops jobs of a request ID.
Path Parameters
req_id
string
The ID of the file request.
sess_id
string
Session ID
GET
http://0.0.0.0/api/v1/tools
Path Parameters
string
POST
http://0.0.0.0/api/v1/upload
Upload a PCAP file.
Request Body
file
object
The file to upload
sessionId
string
Session ID
ui
(port 80)
ui
(port 80)GET
http://0.0.0.0/
Path Parameters
string
POST
http://0.0.0.0/express-upload
Processing uploading a file and passes it on the API.
Path Parameters
file
object
File to upload.
Last updated