English 中文(简体)
处理窗口的近乎绝对呼吁(0xFF 0x15)×64
原标题:Near absolute call (0xFF 0x15) addressing for windows x64

I have found topic related to linux x86_64 absolute addressing: Absolute addressing for runtime code replacement in x86_64 . It was told that absolute addressing is not supported for linux.

窗口x64的哪些内容接近绝对电话?

窗口x86的地址可从近乎绝对电话(0xFF 0x15)中抽取:

unsigned char call_nearAbsolute[2] = {0xFF, 0x15};

if(memcmp(bytes, call_nearAbsolute, sizeof(call_nearAbsolute)) == 0) {
{        
    unsigned char offset[] = {
                *(bytes + 0x5),
                *(bytes + 0x4),
                *(bytes + 0x3),
                *(bytes + 0x2)
            };
        PDWORD_PTR absolute_addr = 
        (PDWORD_PTR)(((offset[0] & 0xFF) << 24) | 
        ((offset[1] & 0xFF) << 16) | 
            ((offset[2] & 0xFF) << 8) | 
        offset[3] & 0xFF);
}

如果得到X64的支持,如何正确处理程序?

问题回答

用途

MOV rax, address(your routine) 
CALL rax

在这种方式(yet)中,没有绝对要求指挥(推销或任何拖延的理由)。 上述组合(必要时代之以其他临时登记册)使你能够了解你的愿望。 预测者应至少通过将这种呼吁放在没有惩罚的记忆中来确认这种呼吁(所谓的指挥本身)。 我只字眼检验了第一种刑罚,但应当(适当调整)与间接地址的要求相同或较低。





相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签