Quantcast
Channel: Python extension for WinDbg
Viewing all articles
Browse latest Browse all 1625

Commented Unassigned: [0.3.x] setBp doesn't work. [13877]

$
0
0
```
from pykd import *

class Debugger(eventHandler):
def __init__(self):
initialize()
eventHandler.__init__(self)

def onBreakpoint(self, no):
print "BREAK POINT"
return eventResult.Proceed

def start(self):
startProcess(r"test.exe")
#setBp(0x40126c) # it doesn't work :(
#dbgCommand("bp 40126c") # it work well
go()

Debugger().start()
```
test.exe binary's main function address is 0x40126c and noaslr.

my test result give me dbgCommand works well but setBp doesn't work.. what's wrong??
Comments: ** Comment from web user: kernelnet **

Read this:
http://pykd.codeplex.com/discussions/646458

Try to change your code:
```
def start(self):
startProcess(r"test.exe")
self.myBp = setBp(0x40126c) # it should work :(
```


Viewing all articles
Browse latest Browse all 1625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>