Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

Hash Scanner

To run this program, we need to perform following instruction.

Watch this tutorial to use this

https://youtu.be/lq_PSmZNY4M

Requirement

Python 3.8

API Reference

Hash Lookups

GET https://api.metadefender.com/v4/hash/{hash}
ParameterTypeDescription
api_keystringRequired. Your API key
hashstringRequired Generated Hash

Get Data Id

POST https://api.metadefender.com/v4/file
ParameterTypeDescription
api_keystringRequired. Your API key
Content-Typestringapplication/octet-stream
filefilefile

Analyze file using Data Id

GET https://api.metadefender.com/v4/file/{data_id}
ParameterTypeDescription
api_keystringRequired. Your API key
x-file-metadatastring0
data_idstringRequired.data_id

Flags

CommandDetail
-f, --fileSpecify file to be scanned
-k, --keyUnique API token; required
-hash, --hashspecify hash function (md5, sha1, sha256)
-m, -metaget metadata for scanned file
-n, --nameflag to preserve file name in scan
-p, --ppassword for password protected files
-s, --shareallows file scans to be share or not
-w, --workflowactive workflows, allowed values: mcl-metadefender-rest-sanitize-disabled-unarchive

Run Locally

Clone the project

 git clone https://github.com/prateekcode/HashScanner

Go to the project directory

cd HashScanner

Run the Program as

 python3 hash_scanner.py -f samplefile.txt -k YOUR_API_KEY

Author

@prateekcode

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages