This is a simple Python program that allows you to scan a file for viruses using the VirusTotal API.
- Python 3.x
- PySimpleGUI
- requests
-
Sign up for a VirusTotal API key.
-
Clone this repository to your local machine:
git clone https://github.com/YOUR_USERNAME/virus-scanner.git
-
Install the required Python packages:
pip install PySimpleGUI requests
- Open the command prompt by pressing the Windows key + R and typing
cmd
, then press Enter. - Type
setx /M VT_API_KEY <your-api-key>
and press Enter. This will set theVT_API_KEY
environment variable to your API key. - Verify that the environment variable has been set correctly by typing
echo %VT_API_KEY%
and pressing Enter. This should print the value of theVT_API_KEY
environment variable.
- Open a terminal window.
- Type
export VT_API_KEY=<your-api-key>
and press Enter. This will set theVT_API_KEY
environment variable to your API key. - Verify that the environment variable has been set correctly by typing
echo $VT_API_KEY
and pressing Enter. This should print the value of theVT_API_KEY
environment variable.
To run the program, navigate to the directory where the scanner.py
script is located and run:
python scanner.py
The program will open a window with a button to select a file for scanning. Once you select a file and click the "Scan" button, the program will send the file to VirusTotal for scanning and print out the results.
If you find a bug or have a feature request, please open an issue on GitHub. Any assistance in improving the script will be helpful.
This project is licensed under the MIT License. See the LICENSE file for details.