Example #1
0
 def _navigateToHighlightedIdentifier(self):
     """
     A function exposed to allow navigating the widget to the currently highlighted identifier from the IDA view.
     """
     if self.winapi.hasOfflineMsdnAvailable():
         highlighted_identifier = Misc.cleanCountingSuffix(self.ida_proxy.get_highlighted_identifier())
         highlighted_identifier = self.parent.semantic_identifier.lookupDisplayApiName(highlighted_identifier)
         self.navigate(highlighted_identifier)
         self.parent.setTabFocus(self.name)
Example #2
0
 def _get_memory(self):
     result = ""
     segment_starts = [ea for ea in self.ida_proxy.Segments()]
     offsets = []
     start_len = 0
     for start in segment_starts:
         end = self.ida_proxy.SegEnd(start)
         for ea in Misc.lrange(start, end):
             result += chr(self.ida_proxy.Byte(ea))
         offsets.append((start, start_len, len(result)))
         start_len = len(result)
     return result, offsets
Example #3
0
 def _get_memory(self):
     result = ""
     segment_starts = [ea for ea in self.ida_proxy.Segments()]
     offsets = []
     start_len = 0
     for start in segment_starts:
         end = self.ida_proxy.SegEnd(start)
         for ea in Misc.lrange(start, end):
             result += chr(self.ida_proxy.Byte(ea))
         offsets.append((start, start_len, len(result)))
         start_len = len(result)
     return result, offsets