mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-28 18:36:59 +08: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:
@@ -107,7 +107,7 @@ public class Lisa_ResolveX86orX64LinuxSyscallsScript extends GhidraScript {
|
||||
@Override
|
||||
protected void run() throws Exception {
|
||||
|
||||
if (!(currentProgram.getExecutableFormat().equals(ElfLoader.ELF_NAME) &&
|
||||
if (!(ElfLoader.isElf(currentProgram) &&
|
||||
currentProgram.getLanguage().getProcessor().toString().equals(X86))) {
|
||||
popup("This script is intended for x86 or x64 Linux files");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user