Jump to content

x64dbg command for "Breakpoint > on Access> Dword"


Darth Blue

Recommended Posts

Darth Blue

Hello guys.

the command `bphws $abc, 'r'` puts a hardware breakpoint on execute. But, what i want to do via command is to `breakpoint > on acces > dword`. You know you can do this right click on **DUMP** window and select `breakpoint > on access > dword`.

I have searched:

Google
x64dbg documentation
tuts4you forums

Unfortunately i couldn't find a way to do that. Did i miss something?

P.S I need this because i am writing a script.

 

Thank you :)

Link to comment

https://help.x64dbg.com/en/latest/commands/breakpoint-control/SetHardwareBreakpoint.html

https://github.com/x64dbg/x64dbg/blob/18b949ee51a634bf5fff3ee717a765ba136cb791/src/dbg/commands/cmd-breakpoint-control.cpp#L393-L450

 

According to docs, 2nd argument = "r" sets break-on-readwrite (=on access), which is counter-intuitive but seems to match the code.

You'll need to use 3rd parameter to set size.

 

Link to comment
Darth Blue

Hello kao;

Thanks for reply. I have tried the command:

bphws esp-4,'r',4

But nothing changed, look at the screenshot i have attached.

In my situation, if i set breakpoint by the command which i have shared above, x64dbg doesn't break on hardware breakpoint. Bu it breaks on if i set `Right click on dump window > hardware breakpoint > on access > dword`.

Thank you have shared source from x64dbg's github page but i still could not find a solution.

acc-exe.png

Link to comment
  • 8 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...