Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/diegopereiracruz/virustotal-file-scanner
A malware scanner program that obtains the file or hash of the file and returns the VirusTotal scan result directly to your terminal.
https://github.com/diegopereiracruz/virustotal-file-scanner
Last synced: 17 days ago
JSON representation
A malware scanner program that obtains the file or hash of the file and returns the VirusTotal scan result directly to your terminal.
- Host: GitHub
- URL: https://github.com/diegopereiracruz/virustotal-file-scanner
- Owner: diegopereiracruz
- Created: 2024-05-18T19:29:04.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-18T19:42:10.000Z (8 months ago)
- Last Synced: 2024-05-18T20:34:35.521Z (8 months ago)
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VirusTotal API Interaction Script
A malware scanner program that obtains the file or hash of the file and returns the VirusTotal scan result directly to your terminal.
## Overview
The primary components of this project include:
- `vt_api_call.py`: Handles making API calls to VirusTotal and processing responses.
- `vt_api_json_print.py`: Contains functions for parsing and printing the JSON response from VirusTotal.
- `vt_api_key.py`: Manages the loading and saving of the VirusTotal API key.
- `vt_api_state.py`: Keeps track of the number of API calls made and ensures compliance with rate limits.## Prerequisites
Ensure you have Python installed on your system. This project uses standard Python libraries such as `requests` and `json`.
## Installation
Clone the repository to your local machine:
```bash
git clone https://github.com/diegopereiracruz/virustotal-file-scanner.git
cd virustotal-file-scanner
```## Usage
Before running any script, ensure you have obtained a VirusTotal API key and saved it in the `~/vt_api_files/vt_api_key.txt` file. Create the folder in your home directory if you haven't run the script yet.
```bash
mkdir ~/vt_api_files
nano ~/vt_api_files/vt_api_key.txt
```Just paste the API KEY to the file and save.
To run the main script, execute:
```bash
python3 virustotal.py
```Replace `` with the MD5 hash or file path you wish to analyze.
###### Usage examples
```bash
python3 virustotal.py f4c3fa43b5bdfaa0205990d25ce51c5a
```
or
```bash
python3 virustotal.py path/to/file.ext
```## Alias
```bash
vc() {
python3 path/to/virustotal.py $1
}
```
vc = virus checker## Contributing
Contributions are welcome Please feel free to submit a pull request or create an issue if you encounter any problems.
## License
This project is licensed under the MIT License. See the `LICENSE` file for details.