/recursive-virustotal

Recursively calculates the hash of all files in a given path and checks them against the Virustotal threat database

Primary LanguagePython

recursive-virustotal

Recursively calculates the hash of all files in a given path and checks them against the Virustotal threat database. This script can be used in many different scenarios, my specific use case is in combination with NetworkMiner. NetworkMiner can extract files from pcap traffic files. It is possible to manually calculate the hash of individual files and copy/paste it into VirusTotal. To get a quick overview on suspicious files it is of course much faster to automate this process, which is why I decided to write this small script.

A detailed description and how to set up and use the script can be found on my blog

Update 13/03/2021: The VirusTotal API module used in this script can be installed via

pip install virustotal-api

Update 09/04/2021: The YAML parser used in this script can be installed via

pip install PyYAML

A user kindly pointed out that there was a wrong reference in the documentation on my website. This is now fixed; if the script did not run before because of a "ModuleNotFoundError" you might want to try again with the updated installation instructions.

usage: recursive-vt.py [-h] [-p PATH] [-a ALERTLV] [-r recursive]