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

New Post: Simple go/break script

$
0
0
Hello All,
I am just starting my adventure with pykd and Windbg and I want to write script which will:
  1. connect with target in kernel mode (working)
  2. Hit break
  3. Hit go
  4. Hit break again
Sample of my code (steps without connection and initial breakIn):
if __name__=="__main__":
    if isKernelDebugging():
        dprintln("in kernel debugging, proceeding")
        go()
        time.sleep(5)
        breakin()
    else:
        dprintln("not in kernel debugging")
When I run this code in Windgb:
Go is hit, target is released, But break never happens . When I click 'break' manually I have got - this information "Break instruction exception "
How can I perform break from python script?
Can I validate that break was actually hit?

Thanks for all replies :)

Viewing all articles
Browse latest Browse all 1625

Trending Articles



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