|
| void * | handle () const |
| | Return the dlopen handle for this library.
|
| void * | dlsym (const std::string &name) const |
| | Resolve the symbol with the given name for the current module.
|
| std::unique_ptr< MachO::Binary > | parse_from_path () const |
| | Parse the Mach-O module from its path on the filesystem.
|
| std::unique_ptr< MachO::Binary > | parse_from_path (const MachO::ParserConfig &config) const |
| | Parse the Mach-O module from its path on the filesystem with the given parser configuration.
|
| std::unique_ptr< MachO::Binary > | parse_from_memory () const |
| | Parse the Mach-O module from memory.
|
| std::unique_ptr< MachO::Binary > | parse_from_memory (const MachO::ParserConfig &config) const |
| | Parse the Mach-O module from memory with the given configuration.
|
| | ~Module () override=default |
| | Module ()=delete |
| | Module (std::unique_ptr< details::Module > impl) |
| | Module (const Module &)=delete |
| | Module (Module &&) noexcept |
| | Module ()=delete |
| | Module (std::unique_ptr< details::Module > impl) |
| | Module (const Module &)=delete |
| Module & | operator= (const Module &)=delete |
| | Module (Module &&) noexcept |
| Module & | operator= (Module &&) noexcept |
| virtual std::unique_ptr< Module > | clone () const |
| uint64_t | imagebase () const |
| | Base address where the module is loaded in memory.
|
| uint64_t | size () const |
| | Virtual size of the current module.
|
| uint64_t | end () const |
| | End address of the module.
|
| std::string | name () const |
| | Name of the module (e.g. libc.so.6, kernel32.dll, libsystem_c.dylib).
|
| std::string | path () const |
| | Path of the module.
|
| bool | contains (uintptr_t addr) const |
| | Check if the current module contains the given address.
|
| std::vector< uint8_t > | dump () const |
| | Return the content of the module as it is currently mapped in memory.
|
| std::vector< uint8_t > | dump (const std::string &filepath) const |
| | Same as dump() but also writes the content into the file located at filepath.
|
| std::vector< uint8_t > | dump (std::ostream &os) const |
| | Same as dump() but also writes the content into the given output stream.
|
| std::string | to_string () const |
| template<class T> |
| const T * | as () const |
| | This function can be used to downcast a Module instance.
|
| template<class T> |
| T * | as () |
This class exposes an OSX-specific API for a module.