This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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] |