Skip to content

Instantly share code, notes, and snippets.

@alexander-hanel
Created February 23, 2018 02:32
Show Gist options
  • Save alexander-hanel/ba67a1ac200a42ffb95c6ab8d6f9776c to your computer and use it in GitHub Desktop.
Save alexander-hanel/ba67a1ac200a42ffb95c6ab8d6f9776c to your computer and use it in GitHub Desktop.
x64dbgpy Notes
import x64dbgpy 
from x64dbgpy.pluginsdk import *

# clear breakpoints 
x64dbg.DbgCmdExecDirect("bc")
x64dbg.DbgCmdExecDirect("bphwc")
# break at entry point 
x64dbg.SetBreakpoint(x64dbg.GetMainModuleEntry())
# get base address
base_addr = x64dbg.GetMainModuleBase()
gui.Message(hex(base_addr))
_eip = Get(GetEIP())
gui.Message(_eip)
x64dbg.Run()
@alexander-hanel
Copy link
Author

Breakpoint >> Edit

Log Text:

ZwAllocateVirtualMemory: BaseAddress: 0x{rdx}, RegionSize: 0x{r9}, return: 0x{[ rsp+0x38]}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment