Пример #1
0
def blocks(fn):
    '''Returns each block in the specified function'''
    for start,end in chunks(fn):
        for r in database.blocks(start, end):
            yield r
        continue
    return
Пример #2
0
def blocks(fn):
    '''Returns each block in the specified function'''
    for start, end in chunks(fn):
        for r in database.blocks(start, end):
            yield r
        continue
    return
Пример #3
0
    def get_blocks(self):
        func = idaapi.get_func(self.start)
        b = database.blocks(func.startEA, func.endEA)
        res = set()
        for item in b:
            res.add(item[0])

        return list(res)
Пример #4
0
 def get_blocks(self):
     func = idaapi.get_func(self.start)
     b = database.blocks(func.startEA, func.endEA)
     res = set()
     for item in b:
         res.add(item[0])
     
     return list(res)