Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 805 Bytes

File metadata and controls

38 lines (31 loc) · 805 Bytes

Test cases

Test case 01: Upload file to disk

  1. ``
  2. ``
  3. ``

Test case 02: Upload file to Mongo

  1. ``
  2. ``
  3. ``

Test case 03: Retrieve file from disk

  1. ``
  2. ``
  3. ``

Test case 03: Retrieve file from Mongo

  1. ``
  2. ``
  3. ``

Tests for writing/retrieving files to Mongo

  1. curl http://ipv4.download.thinkbroadband.com/50MB.zip --output /tmp/50MB.zip
  2. openssl dgst -sha256 /tmp/50MB.zip
  3. ENV=debug ./osquery-file-carve-server &
  4. osqueryi --flagfile conf/osquery/osquery.test.flags --json "SELECT * FROM carves WHERE path like '/tmp/50MB.zip' AND carve=1; SELECT * FROM carves WHERE path like '/tmp/%';"
  5. curl -X GET -k https://kolide.hackinglab.local:8000/download -d '{"file_carve_guid": "<GUID>"}'

References