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

New Post: Cannot get command output

$
0
0
Hello,

I want to use pykd to run the !exploitable extension and obtain the output. Below is my code:
import pykd

pykd.startProcess(app)

#The app will crash
pykd.go() 

#Prints crash site information
r_o = pykd.dbgCommand('r')
print r_o

# Obtain diagnosis info from !exploitable
loadRet = pykd.dbgCommand("!load msec.dll")
expRet = pykd.dbgCommand("!exploitable")
print loadRet
print expRet
However, the last two lines only prints out empty strings.

If I directly run the two commands in windbg, I will get the expected result:

!exploitable 1.6.0.0
*** ERROR: Symbol file could not be found. Defaulted to export symbols for NitroPDFReader.exe -
Exploitability Classification: UNKNOWN
Recommended Bug Title: Data from Faulting Address controls Branch Selection starting at npdf!ProvideCoreHFT2+0x0000000000024db0 (Hash=0x74643704.0xe1564712)


Could you please tell me how can I properly obtain the result in Python?

Thank you!

Viewing all articles
Browse latest Browse all 1625

Trending Articles



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