请教大家怎么使用IDC 或者 IDAPython获得当前加载文件的Image base?
我知道菜单Edit -> Segment -> Rebase program中可以看到当前基址。
Thanks in advance!
PS:
有一个IDC 函数:
long RebaseProgram(long delta, long flags);
RebaseProgram可以设置新的基址,参数是相对位置,比如设置了delta为0x10,原来的基址为0x1000,则是新的基址为0x1010.
[培训]《安卓高级研修班(网课)》月薪二万计划
***********************************************
Enumerate process modules
These function return the module base address
long GetFirstModule(void);
long GetNextModule(long base);
***********************************************
Get process module name
base - the base address of the module
returns: required info or 0
string GetModuleName(long base);
***********************************************
Get process module size
base - the base address of the module
returns: required info or -1
long GetModuleSize(long base);