If I open the Segments subview in IDA, I can get a list of all of the segments.
I would like to access this list so I can enumerate through all of the segments.
How can I do this with idapython?
Reverse Engineering Stack Exchange is a question and answer site for researchers and developers who explore the principles of a system through analysis of its structure, function, and operation. It only takes a minute to sign up.
Sign up to join this communityTry to use the Segments()
from idautils.
from idautils import *
from idc import *
from idaapi import *
for ea in Segments():
print '%x-%x'%(SegStart(ea),SegEnd(ea))