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

Class Strings

object --+
         |
        Strings


Returns the string list.

Example:
    s = Strings()

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

Nested Classes
  StringItem
Class representing each string item.
Instance Methods
 
clear_cache(self)
Clears the strings list cache
 
__init__(self, default_setup=True)
Initializes the Strings enumeration helper class
 
refresh(self, ea1=None, ea2=None)
Refreshes the strings list
 
setup(self, strtypes=1, minlen=5, only_7bit=True, ignore_instructions=False, ea1=None, ea2=None, 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__

Class Variables
  STR_C = 1
C-style ASCII string
  STR_PASCAL = 2
Pascal-style ASCII string (length byte)
  STR_LEN2 = 4
Pascal-style, length is 2 bytes
  STR_UNICODE = 8
Unicode string
  STR_LEN4 = 16
Pascal-style, length is 4 bytes
  STR_ULEN2 = 32
Pascal-style Unicode, length is 2 bytes
  STR_ULEN4 = 64
Pascal-style Unicode, length is 4 bytes
Properties

Inherited from object: __class__

Method Details

__init__(self, default_setup=True)
(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__

[an error occurred while processing this directive]