Skip to content

Instantly share code, notes, and snippets.

View amohanta's full-sized avatar

abhijit mohanta amohanta

View GitHub Profile
@MohitDabas
MohitDabas / collectfuncNstring.py
Created June 6, 2021 12:33
A python ghidra script that will parse the functions and the referenced strings by those function
from ghidra.program.util import DefinedDataIterator
from ghidra.app.util import XReferenceUtil
def getAddress(offset):
return currentProgram.getAddressFactory().getDefaultAddressSpace().getAddress(offset)
string_and_funcdata=[]
functionManager = currentProgram.getFunctionManager()