I want to use pykd to run the !exploitable extension and obtain the output. Below is my code:
#The app will crash
#Prints crash site information
r_o = pykd.dbgCommand('r')
# Obtain diagnosis info from !exploitable
loadRet = pykd.dbgCommand("!load msec.dll")
expRet = pykd.dbgCommand("!exploitable")
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:
*** 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?