<gh_stars>1000+
"""
summary: retrieve the strings that are present in the IDB

description:
  This uses `idautils.Strings` to iterate over the string literals
  that are present in the IDB. Contrary to @show_selected_strings,
  this will not require that the "Strings" window is opened & available.

see_also: show_selected_strings
"""

from __future__ import print_function
import idautils

s = idautils.Strings(False)
s.setup(strtypes=Strings.STR_UNICODE | Strings.STR_C)
for i, v in enumerate(s):
    if v is None:
        print("Failed to retrieve string index %d" % i)
    else:
        print("%x: len=%d type=%d index=%d-> '%s'" % (v.ea, v.length, v.type, i, str(v)))

"""
summary: retrieve the strings that are present in the IDB

description:
  This uses `idautils.Strings` to iterate over the string literals
  that are present in the IDB. Contrary to @show_selected_strings,
  this will not require that the "Strings" window is opened & available.

see_also: show_selected_strings
"""

from __future__ import print_function
import idautils

s = idautils.Strings(False)
s.setup(strtypes=Strings.STR_UNICODE | Strings.STR_C)
for i, v in enumerate(s):
    if v is None:
        print("Failed to retrieve string index %d" % i)
    else:
        print("%x: len=%d type=%d index=%d-> '%s'" % (v.ea, v.length, v.type, i, str(v)))
summary: retrieve the strings that are present in the IDB  description:   This uses `idautils.Strings` to iterate over the string literals   that are present in the IDB. Contrary to @show_selected_strings,   this will not require that the "Strings" window is opened & available.  see_also: show_selected_strings