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.

DLL Injection -> Writing in Executable Memory

Featured Replies

Posted

Okay, so I thought I knew how to do this, but apparently not... Here's the situation... I'm currently messing around with DLL injection, using Mine Sweeper as my target. I'm just trying to get my DLL code to be able to write in Mine Sweeper's executable memory. I thought that VirtualProtect() would help me there, but apparently not... Any suggestions?

This is what I'm currently doing in my DLL code, just trying to do a 1-byte patch, lol:

   char* addr = (char*)0x00BA76A0;
if(!VirtualProtect((LPVOID)addr,1,PAGE_EXECUTE_READWRITE,NULL)){
MessageBox(NULL,"Couldn't protect the memory...","Fail...",NULL);
}

EDIT: Nevermind, I'm stupid. I just used WriteProcessMemory() combined with GetCurrentProcess()

Edited by Hyperlisk

You're using VirtualProtect to remove protection from that memory region, right ? (00BA76A0)

Edited by Rot1

The last param can't be NULL. It has to be a var that takes the old protection.

  • Author
The last param can't be NULL. It has to be a var that takes the old protection.

Ah, I just skimmed over the MSDN article, I just assumed it was like most of the output variables that you can leave NULL.

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.