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.

Redirecting Calls In Another Exe to Custom DLL Function

Featured Replies

Posted

Since my topic got locked on the MASM forums because this might be a malicious attempt..I'll try it here:

I hope the title says it all: I want to detour a function in another process after injecting my dll and then detour that function to a function inside my dll. The detours library do it for C++ but how do I it in MASM?

I don't see anything logic at first sight when looking at the pcode bytes...I took this from the detours lib can this be used (after translating to MASM of course) to redirect the call?

inline PBYTE DetourGenCall(PBYTE pbCode, PBYTE pbJmpDst, PBYTE pbJmpSrc = 0)
{
if (pbJmpSrc == 0) {
pbJmpSrc = pbCode;
}
*pbCode++ = 0xE8;
*((INT32*&)pbCode)++ = pbJmpDst - (pbJmpSrc + 5);
return pbCode;
}

Thanks :D

That's assembling a call, not a JMP. Don't know if you want to be doing that...

change the e8 to an e9 then its a jmp

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.