Created
December 22, 2021 03:01
-
-
Save brandonros/6474f72ab0360e89cb8a908710298d6e to your computer and use it in GitHub Desktop.
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
| from ghidra.program.model.data import PointerDataType | |
| def create_pointer(address): | |
| try: | |
| currentProgram.getListing().createData(toAddr(address), PointerDataType()) | |
| except: | |
| pass | |
| functionManager = currentProgram.getFunctionManager() | |
| f = askFile("Give me a file to open", "Go baby go!") | |
| for line in file(f.absolutePath): # note, cannot use open(), since that is in GhidraScript | |
| create_pointer(line.strip()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment