mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-25 17:00:36 -09:00
GP-6434 improve finding rust signature in Elf binaries
check the .comment section first before searching for byte signature.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user