Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adrianherrera/virustotal
A simple command-line script to interact with the virustotal-api
https://github.com/adrianherrera/virustotal
malware-analysis python virustotal
Last synced: 2 months ago
JSON representation
A simple command-line script to interact with the virustotal-api
- Host: GitHub
- URL: https://github.com/adrianherrera/virustotal
- Owner: adrianherrera
- License: gpl-3.0
- Created: 2014-09-21T12:56:46.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-03-02T20:53:54.000Z (almost 7 years ago)
- Last Synced: 2023-02-26T04:27:01.794Z (almost 2 years ago)
- Topics: malware-analysis, python, virustotal
- Language: Python
- Homepage:
- Size: 36.1 KB
- Stars: 59
- Watchers: 6
- Forks: 18
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VirusTotal
A simple [Python](http://python.org)-based command-line script to interact with [blacktop](https://github.com/blacktop)'s [virustotal-api](https://pypi.python.org/pypi/virustotal-api).
## License
GPLv3## Requirements
* [virustotal-api](https://pypi.python.org/pypi/virustotal-api)## Installation
```
python setup.py install
```## Configuration
A configuration file is used to store your VirusTotal API key. It uses the following format:```
[virustotal]
apikey:
```The configuration file can be specified using the `--config` command-line option. By default `$HOME/.vtapi` is used.
## Usage
### File Scan
Submit a file to be scanned.
```
python vt_driver.py file-scan [-h] filePositional arguments:
file File pathOptional arguments:
-h, --help Show this help message and exit
```### Rescan
Rescan previously submitted file(s) without having to resubmit, thus saving bandwidth.
```
python vt_driver.py rescan [-h] hash [hash ...]Positional arguments:
hash List of MD5/SHA1/SH256 hashes (up to 25)Optional arguments:
-h, --help Show this help message and exit
```### File Report
Retrieve file scan results.
```
python vt_driver.py file-report [-h] hash [hash ...]Positional arguments:
hash List of MD5/SHA1/SHA256 hashes (up to 25)Optional arguments:
-h, --help Show this help message and exit
```### Behaviour
Get a report on the behaviour of a file in a sandbox environment.
```
python vt_driver.py behaviour [-h] hashPositional arguments:
hash An MD5/SHA1/SHA256 hashOptional arguments:
-h, --help Show this help message and exit
```### Pcap
Get a dump of the network traffic generated by the file.
```
python vt_driver.py pcap [-h] [-o OUTPUT_DIR] hashPositional arguments:
hash An MD5/SHA1/SHA256 hash
Optional arguments:
-h, --help Show this help message and exit
-o OUTPUT_DIR, --output-dir OUTPUT_DIR
Output directory to write downloaded pcap file to
(defaults to the current working directory)
```### Search
Search for files.
```
python vt_driver.py search [-h] [-o OFFSET] queryPositional arguments:
query A comma-separated search query. See
https://www.virustotal.com/intelligence/help/file-search/#search-modifiers
for valid search modifiersOptional arguments:
-h, --help Show this help message and exit
-o, --offset
Offset returned by the previous search query. Allows for
pagenation of results
```### Download
Download a file.
```
python vt_driver.py download [-h] [-o OUTPUT_DIR] hashPositional arguments:
hash An MD5/SHA1/SHA256 hash
Optional arguments:
-h, --help Show this help message and exit
-o OUTPUT_DIR, --output-dir OUTPUT_DIR
Output directory to write downloaded file to
(defaults to the current working directory)
```### URL Scan
Submit URL(s) to be scanned.
```
python vt_driver.py url-scan [-h] url [url ...]Positional arguments:
url URL(s) (up to 25)Optional arguments:
-h, --help Show this help message and exit
```### URL Report
Get URL scan results.
```
python vt_driver.py url-report [-h] url [url ...]Positional arguments:
url URL(s) (up to 25)Optional arguments:
-h, --help Show this help message and exit
```### IP Report
Get information about an IP address.
```
python vt_driver.py ip-report [-h] ipPositional arguments:
ip An IPv4 address
Optional arguments:
-h, --help Show this help message and exit
```### Domain Report
Get information about a domain.
```
python vt_driver.py domain-report [-h] domainPositional arguments:
domain A domain name
Optional arguments:
-h, --help Show this help message and exit
```