Skip to content

Instantly share code, notes, and snippets.

@ret5et
ret5et / gist:a581c2165f30f4b3d585
Last active March 28, 2016 16:24 — forked from wirepair/gist:5720064
IDAPython script to get Data Ref's for a variable and print out function, address ref'd and whether read/write,
from idautils import *
from idc import *
from idaapi import *
ea = ScreenEA()
for xref in XrefsTo(ea, 0):
ref_type = ""
if xref.type == dr_W:
ref_type = "W"
elif xref.type == dr_R:
'''
********************************************************************************
Name: HighlightMnemsAndLocs.py
Author: case b <cbarnes@accuvant.com>
Version: 1
[Description]
This script can be run from IDA's 'Script File' menu item or included in
idapythonrc.py. When run it will add or remove a menu item under