mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-2628 Add 'Search|For Encoded Strings'
This commit is contained in:
@@ -63,12 +63,13 @@ public class SampleStringTranslationPlugin extends Plugin implements StringTrans
|
||||
}
|
||||
|
||||
@Override
|
||||
public void translate(Program program, List<ProgramLocation> dataLocations) {
|
||||
public void translate(Program program, List<ProgramLocation> stringLocations,
|
||||
TranslateOptions options) {
|
||||
TaskLauncher.launchModal("Yeehaw-ify strings", monitor -> {
|
||||
|
||||
int id = program.startTransaction("Yeehaw-ify strings");
|
||||
try {
|
||||
for (ProgramLocation progLoc : dataLocations) {
|
||||
for (ProgramLocation progLoc : stringLocations) {
|
||||
Data data = DataUtilities.getDataAtLocation(progLoc);
|
||||
StringDataInstance str = StringDataInstance.getStringDataInstance(data);
|
||||
String s = str.getStringValue();
|
||||
|
||||
Reference in New Issue
Block a user