代码之家  ›  专栏  ›  技术社区  ›  123iamking

如何查找带偏移量的指针[ECX+EAX*4](地址偏移量?)

  •  0
  • 123iamking  · 技术社区  · 6 年前

    我看过这个主题: 如何查找偏移eax+ebx*4的点

    eax将是要查找的指针值
    ebx*4将是偏移量(ebx是元素长度为4字节的数组中的偏移量)
    所以:
    ebx=0:偏移=0
    EBX=1:偏移量=4
    EBX=2:偏移量=8
    ebx=3:偏移量=c
    EBX=4:偏移量=10
    

    但我还是不明白如何确定EBX?

    这是我的情况:我正试图得到目前红色派别的弹药指针:游击队(gfwl版本)

    我看到当我加载另一个保存文件时,这个弹药的地址改变了。因此,我使用“找出写入这个地址的内容”作为弹药指针(加载另一个保存文件后,它将不再工作)。

    然后我加载另一个保存文件,查看它向指针写入的内容: 结果是带有偏移量[ecx+eax*4]的指针。

    所以我做了一个这样的指针

    ecx=00c1b988(地址00c1b988保持值:ecx=00c1b994)

    eax*4=我不知道如何使用它,所以我只放了:e71*4

    eax will be the pointer value to look for
    ebx*4 will be the offset (ebx is the offset in an array with elements of 4 bytes long)
    so:
    ebx=0 : offset=0
    ebx=1 : offset=4
    ebx=2 : offset=8
    ebx=3 : offset=c
    ebx=4 : offset=10
    

    Find out what writes to this address

    [ecx+eax*4]

    E71*4

    1 回复  |  直到 6 年前
        1
  •  1
  •   GuidedHacking    6 年前

    推荐文章