-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconstants.py
28 lines (27 loc) · 1.03 KB
/
constants.py
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
# Names for lists of structures
CIRCULAR_DOUBLY_LINKED_LISTS = 'cyclics'
LINEAR_DOUBLY_LINKED_LISTS = 'linears'
TREES = 'trees'
ARRAYS_OF_POINTERS = 'arrays'
LINKED_LISTS = 'lists'
ARRAYS_OF_STRINGS = 'arrays_strings'
DERIVED_STRUCTURES = 'derived'
CHILDREN_STRUCTURES = 'children'
# Filenames
# Generic
ELF_MEMORY_DUMP_FILE = 'dump.elf'
KERNEL_FILE = 'extracted_kernel.elf'
# Extracted features
PREFIX = 'extracted_'
EXTENSION = '.lzma'
DOUBLY_LINKED_LISTS_FILE = PREFIX + 'doubly_linked_lists' + EXTENSION
BITMAP_FILE = PREFIX + 'bitmap' + EXTENSION
FUNCTIONS_FILE = PREFIX + 'functions' + EXTENSION
OFFSETS_TO_VIRTUALS_FILE = PREFIX + 'offsets_to_virtuals' + EXTENSION
VIRTUALS_TO_OFFSETS_FILE = PREFIX + 'virtuals_to_offsets' + EXTENSION
POINTERS_FILE = PREFIX + 'pointers' + EXTENSION
INVERSE_POINTERS_FILE = PREFIX + 'inverse_pointers' + EXTENSION
STRINGS_FILE = PREFIX + 'strings' + EXTENSION
EXTERNAL_REFERENCES_FILE = PREFIX + 'external_references' + EXTENSION
TREES_FILE = PREFIX + 'trees' + EXTENSION
RESULTS_FILE = 'results' + EXTENSION