GP-6434 improve finding rust signature in Elf binaries

check the .comment section first before searching for byte signature.
This commit is contained in:
dev747368
2026-03-10 21:18:39 +00:00
parent 7794b998c8
commit 1c59d2e56d
18 changed files with 79 additions and 59 deletions

View File

@@ -71,7 +71,7 @@ public class EmuX86DeobfuscateExampleScript extends GhidraScript {
if (currentProgram == null || !currentProgram.getName().startsWith(PROGRAM_NAME) ||
!"x86:LE:64:default".equals(currentProgram.getLanguageID().toString()) ||
!ElfLoader.ELF_NAME.equals(format)) {
!ElfLoader.isElf(format)) {
printerr("""
This emulation example script is specifically intended to be executed against