I'm trying to figure out how to explore structs in IDA, and getting stuck on the basics. I wrote a very basic test app;
int main() {
const int kBits = 1024;
const int kExp = 3;
RSA *rsa = RSA_generate_key(kBits, kExp, 0, 0);
RSA_print_fp(stdout, rsa, 0);
RSA_free(rsa);
return 0;
}
Then I imported the OpenSSL headers, so IDA now understands what RSA*
and BIGNUM*
are.
Then, dropped a breakpoint in the pseudocode view;
Now, if I hover over v3
, I see it's parsing the struct. So I want to do something like grab the value of rsa->d->dmax
, but there doesn't seem to be a way to do this? I can't seem to find a way to access v3
by name in IDAPython, nor can I seem to 'walk' the structure to get to the int that lives at dmax
. Is there some way to do this?
v3->d->dmax
upon reaching this breakpoint? – Pororo Dec 7 '18 at 9:33