Code Monkey home page Code Monkey logo

vtlookup's Introduction

Python3 VirusTotal API v3 File Hash Lookup

Getting started

Prerequisite: A VirusTotal API key is required and must be set as an environment variable with a name of VT_API_KEY. Get a free public API key by completing the signup at https://www.virustotal.com/gui/join-us.

  1. Download or clone the vtlookup repository
    git clone https://github.com/bradsec/vtlookup.git

  2. Set the VT_API_KEY environment variable:

For Linux users -

VT_API_KEY="YOUR_VIRUSTOTAL_APIKEY"
export VT_API_KEY

For Windows users -

setx VT_API_KEY "YOUR_VIRUSTOTAL_APIKEY"

Usage examples (running from terminal)

  • Lookup using plain text hash (hashValue can be md5, sha1, or sha256) -
    python3 vtlookup.py -hash hashValue
    The below example will return detections:
    python3 vtlookup.py -hash a2f6b977b849ba588b88c81b68b4535c

  • Lookup by getting the sha256 hash from a local file -
    python3 vtlookup.py -file specifyfilename.ext

  • Offline debug using the included test.json file -
    python3 vtlookup.py -debug test.json

Troubleshooting

API error code descriptions can be found at: https://developers.virustotal.com/reference/errors

vtlookup's People

Contributors

bradsec avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.