How to hack the virtual table?

前端 未结 9 1081
谎友^
谎友^ 2021-01-31 21:41

I would like to know how to change the address of Test which is in the virtual table with that of HackedVTable.

void HackedVtable()
{
           


        
9条回答
  •  天命终不由人
    2021-01-31 22:16

    The V-Table is an implementation detail.

    The compiler is not required to use one (it just happens to be the easiest way to implement virtual functions). But saying that each compiler can (and does) implement it slightly differently as a result there is no answer to your question.

    If you ask how do I hack a vtable for a program built with:

    Compiler Version Build

    Then somebody may know the answer.

提交回复
热议问题