Skip to content
Discussion options

You must be logged in to vote

The StructuredDataView api is deprecated and you should use the TypedDataAccessor instead. Its far more convenient.

>>> bv.get_data_var_at(bv.get_symbol_by_raw_name('__section_headers').address)
<var 0x180000218: struct Section_Header[0x9]>
>>> sections = bv.get_data_var_at(bv.get_symbol_by_raw_name('__section_headers').address)
>>> sections[0]
<TypedDataAccessor type:struct Section_Header value:{'name': b'.text\x00\x00\x00', 'virtualSize': 14073, 'virtualAddress': 4096, 'sizeOfRawData': 14336, 'pointerToRawData': 1024, 'pointerToRelocations': 0, 'pointerToLineNumbers': 0, 'numberOfRelocations': 0, 'numberOfLineNumbers': 0, 'characteristics': 1610612768}>
>>> sections[0]['virtualAddress']…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by plafosse
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants