Module idautils :: Class Strings
[frames] | no frames]

Class Strings

object --+
         |
        Strings

Allows iterating over the string list. The set of strings will not be
modified, unless asked explicitly at setup()-time. This string list also
is used by the "String window" so it may be changed when this window is
updated.

Example:
    s = Strings()

    for i in s:
        print("%x: len=%d type=%d -> '%s'" % (i.ea, i.length, i.strtype, str(i)))

Nested Classes
  StringItem
Class representing each string item.
Instance Methods
 
clear_cache(self)
Clears the strings list cache
 
__init__(self, default_setup=False)
Initializes the Strings enumeration helper class
 
refresh(self)
Refreshes the strings list
 
setup(self, strtypes=[0], minlen=5, only_7bit=True, ignore_instructions=False, display_only_existing_strings=False)
 
__iter__(self)
 
__getitem__(self, index)
Returns a string item or None

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, default_setup=False)
(Constructor)

 

Initializes the Strings enumeration helper class

Parameters:
  • default_setup - Set to True to use default setup (C strings, min len 5, ...)
Overrides: object.__init__