RightClickVirusTotal is a Python program that provides a simple local interface for the VirusTotal API, via the vt-py library.
Designed to be add to the Windows context menu, it allows you to easily check any files for viruses before running them.
Now cross-platform! Checkout the latest releases for Windows and Linux specific builds.
Demo of Windows GUI
Demo of Universal GUI
Screenshot of Universal CLI
There is also now a CLI version, with builds for both Windows and Linux:
- Utilizes the VirusTotal API to upload files and retrieve analysis results.
- Displays comprehensive statistics on the file's detection status, including harmless, malicious, suspicious, and undetected classifications.
- Built with a user-friendly graphical interface using the Tkinter library.
Note: Before using the program, make sure to obtain a valid VirusTotal API key (these are free for basic personal use).
There are three versions of RightClickVirusTotal, these are:
- Universal_CLI - A Command Line Interface version to be used in the terminal. Use this if most of your work is does in a terminal.
- Universal_GUI - A Graphical User Interface version that can be used anyway a TKinter GUI can be launched, Windows, Linux or OSX. Use this if you want a GUI and you're not using Windows.
- Windows_GUI - A Graphical User Inferface version with specific features and optimisations for Windows 10/11. Use this if you want a good GUI and Right Click functionality on Windows.
Unlike the Universal Versions, Windows GUI can be run with no arguments. Opening it without arguments and admin permissions will open the program, which will then relaunch and request admin permissions. Then you are presented with two windows that look like this:
Here you can input your VirusTotal API key, and the program will add a shortcut to the programs current location, meaning if you move the .exe the shortcut will no longer work, so only
do this once you have placed it where you want to keep it, to the Windows Right Click Context Menu like shown in the demo at the top of the page. Then you can launch the program from any
folder in file explorer by simply right clicking and selecting Upload to VirusTotal
.
The usage instructions for the Universal Versions below are also valid for the Windows GUI.
Arguments must be provided to get the program to do anything, otherwise a usage error will be printed (for the CLI) and program will exit.
The below example is for the Linux executable, but arguments are provided the same regardless of the platform.
./RightClickVirusTotal_CLI_Universal "VirusTotalAPIKey" "FilePath"
Ensure you replace the first argument, VirusTotalAPIKey, with your own API key and keep the quotation marks to ensure it is passed as a string. Then the second argument, FilePath, should be the whole path to the file, again also in quotes.
For example on Linux:
./RightClickVirusTotal_CLI_Universal "0010101010101abcdefq" "/home/smp/Documents/RightClickVirusTotal/realvirus.txt"
- None known.
Where can I get a VirusTotal API Key?
Create a free account over at VirusTotal, then click on your profile icon in the top right corner of the homepage, and select "API Key".
Why is <insert RightClickVirusTotal build name> being detected as a virus by my anti-virus and VirusTotal?
RightClickVirusTotal is both unsigned and compiled with PyInstaller, so it can match anti-virus patterns used to detect malware. Unfortunately if it's easy to use for solo-devs it also can be used to make malware. These are false positives. If you are concerned at all, please review the source code and build it yourself using the instructions below!
Why do some files take so long to analyse?
If a file doesn't already exist in the VirusTotal database, it needs to be scanned and analysed this can, at times, take up to two minutes or more depending on the file size. It is also a limitation of the free API access, when a file is being analysed I can only check in with VirusTotal API every 15 seconds (4 lookups/min).
Made and built using Python 3.11.2
-
Open powershell and run
pip install pyinstaller ; pip install tk ; pip install vt-py ; pip install asyncio ; pip install pillow
-
Navigate to a directory to store the project in and run
git clone https://github.com/smp46/RightClickVirusTotal.git ; cd RightClickVirusTotal
-
Run the following command to build the executable:
pyinstaller --onefile --noconsole --icon=imgs/rcvt.ico --add-data="imgs/;imgs" .\RightClickVirusTotal_GUI_Windows.py
This command instructs PyInstaller to create a single executable file (
RightClickVirusTotal_GUI_Windows.exe
) that contains your program, its dependencies and resources. -
Wait for PyInstaller to finish the build process.
-
Once the build process is complete, you will find a new
dist
directory in the same location as your program file. -
Inside the
dist
directory, you will find the executable file (RightClickVirusTotal_GUI_Windows.exe
). -
Move this file to anywhere you want to 'install' it.
-
Make sure you have PyInstaller installed. If not, you can install it using pip by running the following command:
pip install pyinstaller
-
Install other required dependencies through pip:
- vt-py
- colorama
-
Open your terminal or command prompt.
-
Navigate to the directory where
RightClickVirusTotal_CLI_Universal.py
is located. -
Run the following command to build the executable:
pyinstaller --onefile RightClickVirusTotal_CLI_Universal.py
This command instructs PyInstaller to create a single executable file (
RightClickVirusTotal_CLI_Universal
) that contains your program and its dependencies. -
Wait for PyInstaller to finish the build process.
-
Once the build process is complete, you will find a new
dist
directory in the same location as your program file. -
Inside the
dist
directory, you will find the executable file.
An automatic method is in development for the GUI_Windows version
-
Open the Registry Editor by pressing Win + R, typing "regedit" in the Run dialog, and pressing Enter.
-
In the Registry Editor, navigate to the following key:
Computer\HKEY_CLASSES_ROOT\*\shell\
-
Right-click on the "shell" key, choose New, and then Key. Give the new key a name that will represent your program (e.g., "Upload to VirusTotal").
-
With the newly created key selected, right-click on the right-side pane, choose New, and then Key. Name this key "command".
-
Select the "command" key you just created, and in the right-side pane, double-click on the
(Default)
value. -
In the Edit String dialog box, enter the path to your executable followed by your API Key in quotes and "%1" (including the quotes). For example:
"C:\Path\To\Your\Program.exe" "<APIKEY>" "%1"
Make sure to replace"C:\Path\To\Your\Program.exe"
with the actual path to your executable. -
Click OK to save the value.
-
Close the Registry Editor.
After following these steps, you should be able to right-click on a file in Windows Explorer, navigate to the context menu option you created (e.g., "Upload to VirusTotal"), and your program will be launched with the file path as an argument.
Please note: Modifying the Windows Registry can have unintended consequences if not done correctly. Therefore, it's always a good idea to create a backup of your registry or create a system resore point.