-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathVirusTotal.h
executable file
·40 lines (29 loc) · 896 Bytes
/
VirusTotal.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// VirusTotal.h
// KnockKnock
//
// Created by Patrick Wardle on 3/8/15.
// Copyright (c) 2015 Objective-See. All rights reserved.
//
#import "PluginBase.h"
#import <Foundation/Foundation.h>
@interface VirusTotal : NSObject
{
}
/* METHODS */
//thread function
// ->runs in the background to get virus total info about a plugin's items
-(void)getInfo:(PluginBase*)plugin;
//make the (POST)query to VT
-(NSDictionary*)postRequest:(NSURL*)url parameters:(id)params;
//submit a file to VT
-(NSDictionary*)submit:(File*)fileObj;
//submit a rescan request
-(NSDictionary*)reScan:(File*)fileObj;
//process results
// ->updates items (found, detection ratio, etc)
-(void)processResults:(NSArray*)items results:(NSDictionary*)results;
//get info for a single item
// will callback into AppDelegate to reload plugin
-(BOOL)getInfoForItem:(File*)fileObj scanID:(NSString*)scanID;
@end