-
Notifications
You must be signed in to change notification settings - Fork 13
/
VirusTotal.h
53 lines (37 loc) · 1.08 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
//
// VirusTotal.h
// TaskExplorer
//
// Created by Patrick Wardle on 3/8/15.
// Copyright (c) 2015 Objective-See. All rights reserved.
//
#import "Binary.h"
#import <Foundation/Foundation.h>
/* GLOBALS */
//cmdline flag
extern BOOL cmdlineMode;
@interface VirusTotal : NSObject
{
}
/* PROPERTIES */
//array for (up to 25) items
@property(nonatomic, retain)NSMutableArray* items;
//array for all threads
@property(nonatomic, retain)NSMutableArray* vtThreads;
/* METHODS */
//add item
// ->will query VT when 25 items are hit
-(void)addItem:(Binary*)binary;
//make the (POST)query to VT
-(NSDictionary*)postRequest:(NSURL*)url parameters:(id)params;
//submit a file to VT
-(NSDictionary*)submit:(Binary*)item;
//submit a rescan request
-(NSDictionary*)reScan:(Binary*)item;
//process results
// ->updates items (found, detection ratio, etc)
-(void)processResults:(NSMutableDictionary*)queriedItems results:(NSDictionary*)results;
//get info for a single item
// ->will callback into AppDelegate to reload item
-(void)getInfoForItem:(Binary*)item scanID:(NSString*)scanID;
@end