https://github.com/VirusTotal/c-vtapi
Official implementation of the VirusTotal API in C programming language
https://github.com/VirusTotal/c-vtapi
Last synced: 11 months ago
JSON representation
Official implementation of the VirusTotal API in C programming language
- Host: GitHub
- URL: https://github.com/VirusTotal/c-vtapi
- Owner: VirusTotal
- License: other
- Archived: true
- Created: 2014-06-11T09:40:53.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2023-03-29T09:07:57.000Z (about 3 years ago)
- Last Synced: 2024-08-05T10:15:05.201Z (almost 2 years ago)
- Language: C
- Homepage:
- Size: 229 KB
- Stars: 109
- Watchers: 42
- Forks: 52
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- License: COPYING
- Authors: AUTHORS
Awesome Lists containing this project
README
[](https://travis-ci.org/VirusTotal/c-vtapi)
VirusTotal C API library
This libary is designed to work with both the:
* The public API https://www.virustotal.com/en/documentation/public-api/
* The private API https://www.virustotal.com/en/documentation/private-api/
Runtime Dependencies
* curl or libcurl (curl-devel package on some distributions)
* janson version 2.2 (min) (2.5 or newer recommeded. janson-devel on some distros)
Compiling Dependencies
* automake, autoconf (might be autotools package on your platform)
* gcc
* libtool
Debian or Ubuntu Dependencies:
sudo apt-get install automake autoconf libtool libjansson-dev libcurl4-openssl-dev
Redhat, Fedora, Centos or RPM based distros:
yum install libtool jansson-devel
To compile on Linux, BSD, or Mac OS X:
autoreconf -fi
./configure
make
sudo make install
If you wish to build the examples in the 'examples' directory:
autoreconf -fi
./configure --enable-examples
make
sudo make install
If you have doxygen installed on your system you may optionally generate developer doxygen docs:
make doxygen-doc
Usage on MS Windows is partially functioal now, but requires more patches to be fully supported.
Windows compilation:
* Installl mingw
* mingw32 gcc-g++
* mingw32-autoconf
* mingw32-automake
* compile libcurl (See their docs on windows compile)
Windows compilation (MS Visual Studio)
* install MS Visual Studio 2013
* install CMake
* Compile jansson (see janson docs)
* Compile curl (see janson docs)
See Examples in the examples/ directory for some example test programs which use the API.
url --apikey=YOUR_KEY --scan http://youtube.com
url --apikey=YOUR_KEY --report http://youtube.com
scan --help
./scan --apikey YOUR_KEY --filescan /bin/ls
./scan --apikey YOUR_KEY --report HASH