Upload a sample to the Dr.Web vxCube server

To upload a sample to the server, send the POST samples request:

curl -X POST https://vxcube.drweb.com/api-2.0/samples \

-F "file=@testfile.pdf" \

-H "Authorization: api-key aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"

In response, you receive the Sample object that contains data about the uploaded file including the file format identified automatically and a list of supported platforms. Use the received data for the further file analysis.

Response:

{

   "id": 6784,

   "size": 10881846,

   "name": "testfile.pdf",

   "is_x64": null,

   "format_name": "pdf",

   "upload_date": "2019-02-08T04:08:15.162343+00:00",

   "md5": "34fb8ae3c01653985085ee7e2f749ea5",

   "sha1": "00a610100a3516f4d0daa33e7de317d2ddb6c2c6",

   "sha256": "11bd131be00cbe1c43b4444ec4300dc7651805ea36393b1cca1675983dc275bc",

   "platforms": [

       "acrobat_xp_10",

       "acrobat_7_32_11",

       "acrobat_7_64_15",

       "acrobat_10_64_15"

   ]

}