Project advice

Hi guys I am doing a project as part of one of my college repeats

The project is to write an anti virus style type of program,that will take in a file(and figure out the md5 hash of that file) or enter the md5 hash of the file itself,once the md5 hash is entered it will connect with the virusTotal API to check to see if the md5 hash is matching with any known malware's md5 hash

We have been given the chance to use any programming language we see fit,but it seems that the API has only been written in a few languages,PHP,Python and C

I am going to do it in C,with PHP and Python code examples are given and clear instructions are given on how to set up the API,but with C not much is given,

well my question is how can I use this API? I am using a windows 64 bit machine,I thought maybe it would contain a .lib file and/or dll I could link with but no such .lib or .dll(s) come with the package instead it is just a list of header and cpp files,

anybody have any advice on how I can start the project and get working with the API?

thanks

here is the link https://github.com/VirusTotal/qt-virustotal-uploader
In the ‘readme’ is explained that is a standalone program, not a library: “You can drag and drop a file or folder into the program to queue it for uploading and scanning”.

Since it has been realized by Qt (“VirusTotal Uploader written in C++ using QT framework”), I think the simplest way to deal with it is by Qt.
You could
a) install Qt;
b) create a new project;
c) copy & paste all the files inside the project folder;
d) add the files to the project (in Qt Creator: on the left, right click on the project name and choose “Add Existing >Files”);
d) run qmake (in Qt Creator: Build --> Run qmake);
e) run it in ‘release’ mode.

It will run until you have Qt installed.
In the ‘readme’ is explained that is a standalone program, not a library: “You can drag and drop a file or folder into the program to queue it for uploading and scanning”.


thanks for the reply :)

Yes I already have Qt installed a while back,I'll give that a shot,I'll add all the files inside the project folder and compile it

It's strange that they don't just include a .lib file or even a .dll file along with a .lib

I wonder why
I'm having a probelm,

it seems like jansson.h is missing,what is jansson.h?

I'm not sure why it can't find it,It's not a file included on github

anybody know what could be wrong?

thanks
Maybe is this:
http://www.digip.org/jansson/

Perhaps you need to add those files to the project too.

You could also try to use the Qt Maintenance Tool - it updates your Qt installation to the latest version; sometimes it can help to solve issues with other people’s code, if it has been developed with a different version of the library.

Please note usually, after having copied any files inside a Qt project directory, you also need to inform Qt about their existence: they won’t be automatically added to the project.
thanks Enoziat

I added all the source files from the jansson project to my project but am still getting quite a number of errors

C:\Users\User\Documents\threetry\jansson.h:38: error: operator '||' has no left operand
#if JSON_HAVE_ATOMIC_BUILTINS || JSON_HAVE_SYNC_BUILTINS

C:\Users\User\Documents\threetry\jansson.h:67: error: #if with no expression

C:\Users\User\Documents\threetry\jansson.h:109: error: #if with no expression

C:\Users\User\Documents\threetry\jansson.h:112: error: #elif with no expression

C:\Users\User\Documents\threetry\check_report_task.cpp:20: error: VtFile.h: No such file or directory

here is jansson.h

there is a left operand though :/

here is jansson.h https://github.com/akheron/jansson/blob/master/src/jansson.h
Last edited on
Topic archived. No new replies allowed.