7 #ifndef RETDEC_CPDETECT_CPTYPES_H
8 #define RETDEC_CPDETECT_CPTYPES_H
189 std::numeric_limits<long long unsigned int>::max();
195 std::numeric_limits<long long unsigned int>::max();
198 std::numeric_limits<long long unsigned int>::max();
218 const std::string &name,
219 const std::string &version =
"",
220 const std::string &extra =
"");
222 std::size_t matchNibbles,
223 std::size_t totalNibbles,
225 const std::string &name,
226 const std::string &version =
"",
227 const std::string &extra =
"");
229 const std::string &name,
230 const std::string &extra =
"",
231 bool bytecode =
false);
Header file for fileformat types and structures.
std::string toolTypeToString(ToolType toolType)
Definition: cptypes.cpp:340
SearchType
Definition: cptypes.h:40
@ SIM_LIST
list of similar signatures
@ EXACT_MATCH
only identical signatures
@ MOST_SIMILAR
the most similar signature
ToolType
Definition: cptypes.h:86
DetectionStrength
Definition: cptypes.h:75
DetectionMethod
Definition: cptypes.h:50
@ LINKER_VERSION_H
linker version
@ DWARF_DEBUG_H
DWARF debug information.
@ STRING_SEARCH_H
specific strings
@ YARA_RULE
Heuristic detection by a YARA rule.
@ EXPORT_TABLE_H
export symbols
@ IMPORT_TABLE_H
import symbols
@ COMBINED
combination of methods
@ DYNAMIC_ENTRIES_H
.dynamic section
@ MANIFEST_H
manifest resource
@ UNKNOWN
unknown detection method
@ COMMENT_H
.comment section
@ SECTION_TABLE_H
section table
@ LINKED_LIBRARIES_H
specific libraries
@ SIGNATURE
yara or slashed signature
Packed
Definition: cptypes.h:99
ReturnCode
Definition: cptypes.h:23
std::string detectionMetodToString(DetectionMethod method)
Definition: cptypes.cpp:273
const std::size_t EP_BYTES_SIZE
Definition: settings.h:22
std::string packedToString(Packed packed)
Definition: cptypes.cpp:371
Definition: archive_wrapper.h:19
Settings for compiler detection.
Definition: cptypes.h:158
std::string name
< true if bytecode is detected
Definition: cptypes.h:161
bool bytecode
Definition: cptypes.h:159
std::string additionalInfo
some additional information
Definition: cptypes.h:162
Definition: cptypes.h:110
SearchType searchType
type of search
Definition: cptypes.h:111
std::size_t epBytesCount
Definition: cptypes.h:116
DetectParams(SearchType searchType_, bool internal_, bool external_, std::size_t epBytesCount_=EP_BYTES_SIZE)
Definition: cptypes.cpp:15
bool external
use of external signature database
Definition: cptypes.h:114
Definition: cptypes.h:129
bool isReliable() const
Definition: cptypes.cpp:32
std::string additionalInfo
Definition: cptypes.h:133
std::string versionInfo
Definition: cptypes.h:132
bool isInstaller() const
Definition: cptypes.cpp:60
DetectionMethod source
detection type
Definition: cptypes.h:141
bool isUnknownType() const
Definition: cptypes.cpp:87
bool isKnownType() const
Definition: cptypes.cpp:78
bool isLinker() const
Definition: cptypes.cpp:51
unsigned long long impCount
total number of significant nibbles
Definition: cptypes.h:136
bool isCompiler() const
Definition: cptypes.cpp:42
unsigned long long agreeCount
matched number of significant nibbles
Definition: cptypes.h:138
std::string name
Definition: cptypes.h:131
ToolType type
Definition: cptypes.h:130
DetectionStrength strength
detection strength
Definition: cptypes.h:143
bool isPacker() const
Definition: cptypes.cpp:69
Definition: cptypes.h:246
double ratio
same divided by total
Definition: cptypes.h:249
unsigned long long same
matched number of significant nibbles
Definition: cptypes.h:247
unsigned long long total
total number of significant nibbles
Definition: cptypes.h:248