AttackForge Enterprise & AttackForge Core
Powered By GitBook
DownloadVulnerabilityEvidence
This method can be used for the following: Download a vulnerability evidence file for a project user has access to.

Parameters

The following URL, Headers and Parameters are required for requests to this API endpoint. Where a parameter is optional, it will be indicated. Otherwise treat all parameters as mandatory.

Headers

1
GET /api/ss/vulnerability/:id/evidence/:file HTTP/1.1
2
Host: demo.attackforge.com
3
X-SSAPI-KEY: APIKey
4
Content-Type: application/json
5
Connection: close
Copied!

Query

id (string)
Identifier for the vulnerability.
Example:
1
GET /api/ss/vulnerability/5f5ebf3b31ff1d08c1e5fa91/evidence/:file HTTP/1.1
Copied!
file (string)
Storage name for the evidence file.
Example:
1
GET /api/ss/vulnerability/:id/evidence/o23kuixb8c34fm4gbehndpwzuemegvufjzc7jfkh5xlrmlswl4smfyslj65vuupcv5cc21hizhiiysa1bh5ibiwio17vzpzr63n6xtfh9yvzso4ete6qyh55ez5o6in1 HTTP/1.1
Copied!

Example

The following example is a cURL request to get an evidence file for a vulnerability on a project.

Request

Include API Token instead of stars in 'X-SSAPI-KEY: ***************************************' parameter.
1
curl -X GET 'https://demo.attackforge.com/api/ss/vulnerability/5f5ebf3b31ff1d08c1e5fa91/evidence/o23kuixb8c34fm4gbehndpwzuemegvufjzc7jfkh5xlrmlswl4smfyslj65vuupcv5cc21hizhiiysa1bh5ibiwio17vzpzr63n6xtfh9yvzso4ete6qyh55ez5o6in1' -H 'Host: demo.attackforge.com' -H 'X-SSAPI-KEY: ***************************************' -H 'Content-Type: application/json' -H 'Connection: close'
Copied!

Response

Response contains binary data. If using curl, use option --output to save the binary response as a file e.g.
1
curl <as above> --output image.png
Copied!
Last modified 1yr ago