To run this program, we need to perform following instruction.
Python 3.8
GET https://api.metadefender.com/v4/hash/{hash}
Parameter | Type | Description |
---|---|---|
api_key |
string |
Required. Your API key |
hash |
string |
Required Generated Hash |
POST https://api.metadefender.com/v4/file
Parameter | Type | Description |
---|---|---|
api_key |
string |
Required. Your API key |
Content-Type |
string |
application/octet-stream |
file |
file |
file |
GET https://api.metadefender.com/v4/file/{data_id}
Parameter | Type | Description |
---|---|---|
api_key |
string |
Required. Your API key |
x-file-metadata |
string |
0 |
data_id |
string |
Required.data_id |
Command | Detail |
---|---|
-f, --file | Specify file to be scanned |
-k, --key | Unique API token; required |
-hash, --hash | specify hash function (md5, sha1, sha256) |
-m, -meta | get metadata for scanned file |
-n, --name | flag to preserve file name in scan |
-p, --p | password for password protected files |
-s, --share | allows file scans to be share or not |
-w, --workflow | active workflows, allowed values: mcl-metadefender-rest-sanitize-disabled-unarchive |
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