Results 1 to 3 of 3
  1. #1
    orx's Avatar
    Join Date
    Jun 2008
    Gender
    male
    Location
    Estonia
    Posts
    59
    Reputation
    11
    Thanks
    4

    How do i add up the pointer? base addy + offset..

    What is the proper way for getting the addy where pointer is pointing to?

    DWORD base = (DWORD)GetModuleHandleA("module.dll");

    DWORD addy = base + 0xoffset1 + 0xoffset2 + 0xoffset3; ?

    *(int*)addy = newvalue;

    is it same with multilevel pointer?

    Could somebody explain me multilevel pointers? as i understand, the multilevel pointer is with multiple offsets right?

    OrX
    Phenom II X6 1090T @3.9ghz
    8GB DDRIII 1600mhz
    HD 6950(flashed to 6970)
    750W PSU
    AMD 870 chipset
    64GB SATAIII SSD
    2TB storage drive
    32" HD monitor
    Razer Lycosa mirror edition
    windows 7 ultimate 64bit
    Wicked sick machine

  2. #2
    bluedog9's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Posts
    18
    Reputation
    4
    Thanks
    4
    Multilevel pointer simply means that you must dereference and add multiple offsets to a "base" value to find the address of the pointer.
    Think about this:
    0x12345 points to an integer type variable.
    0x123456 points to 0x12345
    0x1234567 points to 0x123456
    the base would be 0x1234567
    Last edited by bluedog9; 07-17-2011 at 08:19 PM.

  3. #3
    Fovea's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    325
    Reputation
    101
    Thanks
    411
    My Mood
    Amused
    https://www.mpgh.net/forum/31-c-c-pro...ml#post4647733

    The first offset is read differently than in a normal situation since it is used to rebase the first address to avoid problems with the relocation of modules (ASLR).

    As you can see from my code, I immediately add the first offset to the module base in order to find the correct virtual address, and from there start casting/dereferencing.
    Last edited by Fovea; 07-17-2011 at 08:24 PM.

Similar Threads

  1. How do I add the skins?
    By CoD4wannable in forum Soldier Front General
    Replies: 1
    Last Post: 08-19-2011, 01:35 PM
  2. how can i add icon above the head ??
    By adyson_19 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 7
    Last Post: 02-06-2011, 01:17 PM
  3. [Tutorial] How to find the pointer to the D3D9 device by lauwy
    By lauwy in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 13
    Last Post: 12-06-2010, 10:40 AM
  4. [HELP] How do i add a name to the hack so it shows in game?
    By ®Jack in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 11
    Last Post: 07-31-2010, 03:32 AM
  5. [Help]How do i add my injector to the right click menu
    By qddW$#%^jtyjtyj in forum Visual Basic Programming
    Replies: 20
    Last Post: 07-09-2010, 07:30 PM