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.

Hardware Bkpoint

Featured Replies

Posted

How can set hardware bkpoint by asm code? (masm)

Google find only in C:

//Set your context flags like this
this->cx.ContextFlags = CONTEXT_FULL | CONTEXT_DEBUG_REGISTERS;//Creates a Hardware Break on Execute Breakpoint
bool DebugEngine::SetBreakOnExecute(DWORD addr)
{ if (!this->UpdateContext())
{
return false;
}
cx.Dr0 = addr; // set Bp addr
cx.Dr7 = 0x1; //activate it if(!this->SetContext())
{
return false;
} return true;
}

But I need in masm, google not find.

I ask in ARTeam too. No answer.

This perhaps somebody here have know how?

Thank for all tip.

omfg please leave asm if you dont know how to use it. seems its not for you.

its pure winapi not some ****ty mfc so what you want more, just write code with invoke.

go to msdn.com and read about context structure and those winapi's that are in other functions like SetContext

or is it too hard to write

mov cx.dr0,addr

and change cx to some other name due its asm, and cx is reg so is reserved word

so proper will be

mov context.dr0,addr

invoke SetThreadContext,pinfo.hThread,o context

in my unsafecast you have in masm how to use context and getthreadcontext so change g to s and you have set

Edited by human

  • Author

Thank human. Will try him. Please accept I not superman. Need learn.

Sorry if this stupid question was, perhaps so noone answer at ARTeam.

I do what you say. Thank again.

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.