public class AndroidElfLoader extends AbstractLoader<AndroidFileIO> implements Memory, Loader
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
MAP_ANONYMOUS |
static int |
MAP_FIXED |
backend, callInitFunction, emulator, hookListeners, libraryResolver, memoryMap, mmapBaseAddress, moduleListeners, sp, stackSize, syscallHandlerMMAP_BASE, STACK_BASE, STACK_SIZE_OF_PAGE| 构造器和说明 |
|---|
AndroidElfLoader(Emulator<AndroidFileIO> emulator,
UnixSyscallHandler<AndroidFileIO> syscallHandler) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
brk(long address) |
protected LibraryFile |
createLibraryFile(File file) |
boolean |
dlclose(long handle) |
Module |
dlopen(String filename)
dlopen调用init_array会崩溃
|
Module |
dlopen(String filename,
boolean calInit) |
Symbol |
dlsym(long handle,
String symbolName) |
Collection<Module> |
getLoadedModules() |
String |
getMaxLengthLibraryName() |
long |
getMaxSizeOfLibrary() |
boolean |
hasThread(int threadId) |
protected LinuxModule |
loadInternal(LibraryFile libraryFile,
boolean forceCallInit) |
Module |
loadVirtualModule(String name,
Map<String,UnidbgPointer> symbols) |
MemoryBlock |
malloc(int length,
boolean runtime) |
long |
mmap2(long start,
int length,
int prot,
int flags,
int fd,
int offset) |
void |
runLastThread(long timeout) |
void |
runThread(int threadId,
long timeout) |
void |
setErrno(int errno) |
void |
setLibraryResolver(LibraryResolver libraryResolver) |
addHookListener, addModuleListener, allocateMapAddress, allocateStack, disableCallInitFunction, dump, findModule, findModuleByAddress, getMemoryMap, getModuleBase, getStackBase, getStackPoint, getStackSize, load, load, load, load, mem_map, mmap, mprotect, munmap, notifyModuleLoaded, pointer, serialize, setCallInitFunction, setMMapBaseAddress, setStackPoint, writeStackBytes, writeStackStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallocateStack, getMemoryMap, getStackBase, getStackPoint, getStackSize, mmap, mprotect, munmap, pointer, setStackPointaddHookListener, addModuleListener, disableCallInitFunction, findModule, findModuleByAddress, load, load, load, load, setCallInitFunctionwriteStackBytes, writeStackStringserializepublic static final int MAP_FIXED
public static final int MAP_ANONYMOUS
public AndroidElfLoader(Emulator<AndroidFileIO> emulator, UnixSyscallHandler<AndroidFileIO> syscallHandler)
public void setLibraryResolver(LibraryResolver libraryResolver)
setLibraryResolver 在接口中 LoadersetLibraryResolver 在类中 AbstractLoader<AndroidFileIO>protected LibraryFile createLibraryFile(File file)
createLibraryFile 在类中 AbstractLoader<AndroidFileIO>public void runLastThread(long timeout)
runLastThread 在接口中 Loaderprotected final LinuxModule loadInternal(LibraryFile libraryFile, boolean forceCallInit)
loadInternal 在类中 AbstractLoader<AndroidFileIO>public Module loadVirtualModule(String name, Map<String,UnidbgPointer> symbols)
loadVirtualModule 在接口中 LoaderloadVirtualModule 在类中 AbstractLoader<AndroidFileIO>public MemoryBlock malloc(int length, boolean runtime)
public long mmap2(long start,
int length,
int prot,
int flags,
int fd,
int offset)
public String getMaxLengthLibraryName()
getMaxLengthLibraryName 在接口中 Loaderpublic long getMaxSizeOfLibrary()
getMaxSizeOfLibrary 在接口中 Loaderpublic Collection<Module> getLoadedModules()
getLoadedModules 在接口中 LoaderCopyright © 2021. All rights reserved.