I am new using Ghidra. I am using Eclipse (the script is intended to be in java) to code a Ghidra script that fulfills the following requirements:
- Get all the strings referenced by a print function in a binary file.
- Replace these strings by new random strings with the same lenght than the old ones
My problem is that I do not know how to do the part 1 (get the strings). If anyone knows how to do this it would be great. Thanks for yout help.