Abstraction of a DEX object, the class offers the analyst a parser, a disassembler and an analysis object.
More...
#include <dex.hpp>
|
| Dex (std::string &dex_file_path) |
| Constructor of the Dex object, we obtain a path to the DEX file to analyze.
|
|
| ~Dex () |
| Destructor of the Dex object, release any memory or files here in case it is needed.
|
|
bool | get_parsing_correct () const |
| Was parsing process correct?
|
|
Parser * | get_parser () |
| get a pointer to the DEX parser with all the headers
|
|
DexDisassembler * | get_dex_disassembler () |
| Get the disassembler of the DEX file.
|
|
Analysis * | get_analysis (bool create_xrefs) |
| Get the analysis object this needs the disassembly and the parser, the dex will be disassembled in case this function is called.
|
|
|
static std::unique_ptr< Dex > | parse_dex_file (std::string &dex_file_path) |
| Parse a given dex file, return a Dex object as a unique pointer.
|
|
static std::unique_ptr< Dex > | parse_dex_file (char *dex_file_path) |
|
static std::unique_ptr< Dex > | parse_dex_file (const char *dex_file_path) |
|
Abstraction of a DEX object, the class offers the analyst a parser, a disassembler and an analysis object.
◆ Dex()
KUNAI::DEX::Dex::Dex |
( |
std::string & |
dex_file_path | ) |
|
|
inline |
Constructor of the Dex object, we obtain a path to the DEX file to analyze.
- Parameters
-
dex_file_path | path to a dex file |
◆ get_analysis()
Analysis * KUNAI::DEX::Dex::get_analysis |
( |
bool |
create_xrefs | ) |
|
Get the analysis object this needs the disassembly and the parser, the dex will be disassembled in case this function is called.
- Parameters
-
create_xrefs | create all the xrefs for the class, this can take a long time |
- Returns
- pointer to Analysis object or nullptr in case of error
◆ get_dex_disassembler()
◆ get_parser()
Parser * KUNAI::DEX::Dex::get_parser |
( |
| ) |
|
|
inline |
get a pointer to the DEX parser with all the headers
- Returns
- dex parser
◆ get_parsing_correct()
bool KUNAI::DEX::Dex::get_parsing_correct |
( |
| ) |
const |
|
inline |
Was parsing process correct?
- Returns
- boolean with result
◆ parse_dex_file()
static std::unique_ptr< Dex > KUNAI::DEX::Dex::parse_dex_file |
( |
std::string & |
dex_file_path | ) |
|
|
static |
Parse a given dex file, return a Dex object as a unique pointer.
- Parameters
-
dex_file_path | path to a dex file |
- Returns
- unique pointer with Dex object
The documentation for this class was generated from the following file:
- kunai-lib/include/Kunai/DEX/dex.hpp