This script allows you to perform a scan on a file or a MD5 hash using the VirusTotal API. It returns the scan results showing if the file or hash is malicious or not.
- Bash
- curl
- jq
- A VirusTotal API key
-
Clone the repository to your local machine:
git clone https://github.com/cfpandrade/virus-total-scan.git
-
Navigate to the project directory:
cd virus-total-scan
-
Edit the script and replace the
VIRUSTOTAL_API_KEY
variable with your VirusTotal API key. -
Make the script executable:
chmod +x virustotal
-
Move the script to the
/usr/bin
directory:sudo mv virustotal /usr/bin/
To scan a file, run:
virustotal /path/to/file
To scan a MD5 hash, run:
virustotal <MD5 hash>
This project is licensed under the MIT License - see the LICENSE file for details.