For My Friend! :)

mail@pastecode.io avatar
unknown
python
2 years ago
374 B
7
Indexable
Never
#Strings Sniffer
#@category Vulns
#@keybinding 
#@menupath 
#@toolbar

from ghidra.app.util import XReferenceUtil
from ghidra.program.util import DefinedDataIterator

for item in DefinedDataIterator.definedStrings(currentProgram): 
	for ref in XReferenceUtil.getXRefList(item):
		if item.toString().find("%s") > -1:
			print("Addr: {} Path: {}".format(ref, item.toString()))