mirror of
https://github.com/objective-see/TaskExplorer.git
synced 2026-03-22 07:02:39 +00:00
72 lines
1.8 KiB
Objective-C
72 lines
1.8 KiB
Objective-C
//
|
|
// Filter.h
|
|
// TaskExplorer
|
|
//
|
|
// Created by Patrick Wardle on 2/21/15.
|
|
// Copyright (c) 2015 Objective-See. All rights reserved.
|
|
//
|
|
#import "File.h"
|
|
#import "Binary.h"
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@interface Filter : NSObject
|
|
{
|
|
|
|
}
|
|
|
|
/* METHODS */
|
|
|
|
//determine if search string is #keyword
|
|
-(BOOL)isKeyword:(NSString*)searchString;
|
|
|
|
//check if a binary fulfills a keyword
|
|
-(BOOL)binaryFulfillsKeyword:(NSString*)keyword binary:(Binary*)binary;
|
|
|
|
//keyword filter '#apple'
|
|
// ->determine if binary is signed by apple
|
|
-(BOOL)isApple:(Binary*)item;
|
|
|
|
//keyword filter '#signed' (and indirectly #unsigned)
|
|
// ->determine if binary is signed
|
|
-(BOOL)isSigned:(Binary*)item;
|
|
|
|
//keyword filter '#flagged'
|
|
// ->determine if binary is flagged by VT
|
|
-(BOOL)isFlagged:(Binary*)item;
|
|
|
|
//keyword filter '#encrypted'
|
|
// ->determine if binary is encrypted
|
|
-(BOOL)isEncrypted:(Binary*)item;
|
|
|
|
//keyword filter '#packed'
|
|
// ->determine if binary is packed
|
|
-(BOOL)isPacked:(Binary*)item;
|
|
|
|
//keyword filter '#notfound'
|
|
-(BOOL)notFound:(Binary*)item;
|
|
|
|
//filter all for global search
|
|
// ->tasks, dylibs, files, & connections
|
|
-(void)filterAll:(NSString*)filterText items:(NSMutableDictionary*)items results:(NSMutableArray*)results;
|
|
|
|
//filter tasks
|
|
-(void)filterTasks:(NSString*)filterText items:(NSMutableDictionary*)items results:(NSMutableArray*)results pane:(NSUInteger)pane;
|
|
|
|
//filter dylibs and files
|
|
-(void)filterFiles:(NSString*)filterText items:(NSMutableArray*)items results:(NSMutableArray*)results pane:(NSUInteger)pane;
|
|
|
|
//filter network connections
|
|
-(void)filterConnections:(NSString*)filterText items:(NSMutableArray*)items results:(NSMutableArray*)results;
|
|
|
|
/* PROPERTIES */
|
|
|
|
//binary filter keywords
|
|
@property(nonatomic, retain)NSMutableArray* binaryFilters;
|
|
|
|
//file filter keywords
|
|
@property(nonatomic, retain)NSMutableArray* fileFilters;
|
|
|
|
|
|
@end
|