IMPORTANT ANNOUNCEMENT: On May 6, 2024, Carbon Black User eXchange (UeX) and Case Management will move to a new platform!
The Community will be in read-only mode starting April 19th, 7:00 AM PDT. Check out the blog post!
You will still be able to use the case portal to create and interact with your support cases until the transition, view more information here!

EDR: How to get raw binary documents via Curl

EDR: How to get raw binary documents via Curl

Environment

  • EDR Server: 6.x and higher

Objective

Query the EDR server for raw binary document information.

Resolution

  1. Log into the master server via ssh/terminal
  2. Run this query with the MD5 in all uppercase
curl 'http://localhost:8080/solr/cbmodules/select?q=md5:<Md5Hash>&rows=5&indent=true' > md5_binary.txt
Example:
curl 'http://localhost:8080/solr/cbmodules/select?q=md5:D78B79745706256950D42EFFA5485627&rows=5&indent=true' > D78B79745706256950D42EFFA5485627_binary.txt

Additional Notes

  • Common Errors:
    • "The requested resource is not available": Curl command was run on the incorrect server/node.
    • "numFound=0": Incorrect or missing unique id,  incorrect server/node or md5 hash is lowercase.
  • Send the resulting text document to Carbon Black's Alliance servers by appending:
&& /usr/share/cb/cbpost /<pathtofile>/<filename.txt>
Example:
curl 'http://localhost:8080/solr/cbmodules/select?q=md5:D78B79745706256950D42EFFA5485627&rows=5&indent=true' > D78B79745706256950D42EFFA5485627_binary.txt && /usr/share/cb/cbpost ./D78B79745706256950D42EFFA5485627_binary.txt

Related Content


Labels (1)
Tags (2)
Was this article helpful? Yes No
No ratings
Article Information
Author:
Creation Date:
‎12-14-2018
Views:
1179
Contributors