Created
March 3, 2016 14:34
-
-
Save tmr232/fc824564107f478277f7 to your computer and use it in GitHub Desktop.
Find calls to constant addresses
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
import sark | |
for line in sark.lines(): | |
if not line.is_code: | |
continue | |
for operand in line.insn.operands: | |
if operand.type.is_mem: | |
print line |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment