Skip to content

Instantly share code, notes, and snippets.

@camprevail
camprevail / do_strings.py
Last active May 13, 2025 01:29 — forked from NWPlayer123/do_strings.py
x64 fork of a script to apply string types in ida. Press W at the base of a string, or select a range of strings. Only tested in ida 7.
# Press W, creates string there, creates align/word, renames to a non-conflicting name
import idaapi, idc, inspect
from io import BytesIO
def get_selected_bytes():
#BOOL multiple, start, end
selected = idaapi.read_selection()
curr_ea = idc.get_screen_ea()
return [selected, curr_ea]