Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

x32dbg question - absolute / relative addresses

Featured Replies

Posted

Hello,

I'm writing a code cave in the .text section

I want to use a counter / variable and am using a location at the end of the .data section (which is writable)

However when the code re-runs, while all the addresses in .text section are updating to take account of ASLR.

The instruction that references the location in the .data section doesn't update the address location.

Here is an example

mov eax,dword ptr ds:[1E7EFF0]

While the underlying relative address is unchanged, I need the absolute address to update each time the program is loaded.

Is there a way that I can do this or do I need to use something like VirtualProtect and allocate my own working space?

Thanks

Hi

do something like this :

call next instruction (E8 00000000)

pop eax (getting current address)

add eax, 0x12345678 (distance from here to destination address)

 

 

BR,

h4sh3m

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.