JaggedGem / virus-total-antivirus

MIT License
1 stars 0 forks source link

Automatic Virus Detection and Cleanup

This Python project automates the detection of new files in the specified folders, leveraging VirusTotal's V3 API to check for potential viruses. When a new file is detected and a virus is found, a pop-up window displays the file name, the number of detections out of the total number of scanners, and provides options to either delete the file or leave it.

Features

Installation

  1. Clone the repository to your local machine:
git clone https://github.com/JaggedGem/virus-total-antivirus.git
cd virus-total-antivirus
  1. Install the required dependencies:
pip install -r requirements.txt

Usage

  1. Run the Python script:
python linker.py
  1. The program will automatically monitor the folders specified in the config.json file for new files and perform virus scans using the VirusTotal API.

  2. If a virus is detected, a pop-up window will display the file name, number of detections, and options to delete or leave the file.

To Do List:

Configuration

{
    "api_key": "your_virustotal_api_key",
    "watch_paths": ["path1", "path2", ...],
    "log_level": "INFO"
}

Replace "your_virustotal_api_key" with your actual VirusTotal API key, "path1", "path2", ... with the paths you want the script to watch for new files, and "log_level" with your desired log level (DEBUG, INFO, WARNING, ERROR, CRITICAL).

Replace "your_virustotal_api_key" with your actual VirusTotal API key and "path1", "path2", ... with the paths you want the script to watch for new files.

Usage

  1. Run the Python script:
python watcher.py
  1. The program will automatically monitor the specified folders for new files and perform virus scans using the VirusTotal API.

  2. If a virus is detected, a pop-up window will display the file name, number of detections, and options to delete or leave the file.

Configuration

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow the contributing guidelines.

License

This project is licensed under the MIT License.