-
-
[求助]basic_string中的data方法内联汇编怎么调用?
-
发表于:
2009-9-15 15:45
4377
-
[求助]basic_string中的data方法内联汇编怎么调用?
看到这么一段汇编代码
call 00532080
lea ecx, dword ptr ss:[esp+8]
call dword ptr ds:[<&MSVCP80.std::basic_string<char,std>; MSVCP80.std::basic_string<char,std::char_traits<char>,std::allocator<char> >::data
这里面用到的这个模板方法应该怎么在内联汇编中调用呢?
我用
const char *(__thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char>>:: *bbmm)(void) const;
bbmm=&basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::data;
__asm
{
call bbmm
}
这样调用指向的并不是MSVCP80中的那个data所在的地址。
难道必须通过硬编码的形式将data所在的地址写入调用吗?
[课程]Linux pwn 探索篇!