Skip to content

Instantly share code, notes, and snippets.

@jantore
Created July 9, 2017 18:07
Show Gist options
  • Save jantore/d365d9aee73a824833ea5aff9cf6daab to your computer and use it in GitHub Desktop.
Save jantore/d365d9aee73a824833ea5aff9cf6daab to your computer and use it in GitHub Desktop.
IDAPython script for defining identified strings
import idc
import idautils
strings = idautils.Strings()
strings.setup(strtypes=idautils.Strings.STR_C, ignore_instructions=True, minlen=8)
strings.refresh(ea1=MinEA())
for s in strings:
if not idc.GetStringType(s.ea):
idc.MakeStr(s.ea, s.ea + s.length)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment