def __init__(self, default_setup = False): """ Initializes the Strings enumeration helper class @param default_setup: Set to True to use default setup (C strings, min len 5, ...) """ self.size = 0 if default_setup: self.setup() else: # restore saved options ida_strlist.get_strlist_options() self.refresh() self._si = ida_strlist.string_info_t()
def setup(self, strtypes = [ida_nalt.STRTYPE_C], minlen = 5, only_7bit = True, ignore_instructions = False, display_only_existing_strings = False): t = ida_strlist.get_strlist_options() t.strtypes = strtypes t.minlen = minlen t.only_7bit = only_7bit t.display_only_existing_strings = display_only_existing_strings self.refresh()