A simple tool that scans a file against OPSWAT API.
- Calculates the hash of the file specified by the user (up to 140MB in size)
- Performs a hash lookup against metadefender.opswat.com and checks if there are previously cached results for the file
- If results found then skips to 6
- If results not found then uploads the file and receives a
data_id
- Repeatedly polls on the
data_id
to retrieve results, until scanning is done - Displays results including overall status and results by engine
- Clone or download the repo: https://github.com/dhwei90/OPSWAT.git
- Set your API key in
.env
asAPIKEY
- Place your file to be scanned in the repo directory
- Install npm packages:
npm i package.json
- Execute application:
node index.js
- At the prompt, type in name of the file to be scanned, or press "q" to quit application: e.g.
filesToScan/samplefile.txt
- Hit enter and wait for check results