Skip to content

Commit

Permalink
Revert last changes in plugin Inside due to crash on ShiftF1
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuz committed Feb 4, 2025
1 parent f4d902b commit fa81f62
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
5 changes: 1 addition & 4 deletions inside/configs/plug/config.ini
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
[ELFRoot]
Brief.txt=file -b $F
Header.txt=readelf -W -h $F
Sections.txt=readelf -W -S -d $F
Sections.txt=readelf -W -S $F
ProgramHeaders.txt=readelf -W -l $F
Symbols.txt=nm $F
SymbolsDynamic.txt=nm --dynamic $F

[PE]
Info.txt=readpe -A $F

[Mach-O]
Info.txt=exiftool $F

[Disasm_20]
PPC.s=powerpc-linux-gnu-objdump -d -w -z $F
PPC_VLE.s=powerpc-eabivle-objdump -d -w -z $F
Expand Down
5 changes: 0 additions & 5 deletions inside/src/inside.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,6 @@ static const char *DetectPlainKind(const char *Name, const unsigned char *Data,
&& ext && (strcasecmp(ext, ".exe") == 0 || strcasecmp(ext, ".dll") == 0 || strcasecmp(ext, ".sys") == 0
|| strcasecmp(ext, ".drv") == 0 || strcasecmp(ext, ".ocx") == 0 || strcasecmp(ext, ".efi") == 0)) {
return "PE";

} else if ((DataSize >= 8 && (Data[0] == 0xfe && Data[1] == 0xed && Data[2] == 0xfa && Data[3] == 0xce)) ||
(Data[0] == 0xce && Data[1] == 0xfa && Data[2] == 0xed && Data[3] == 0xfe) ||
(Data[0] == 0xca && Data[1] == 0xfe && Data[2] == 0xba && Data[3] == 0xbe)) {
return "Mach-O";
}

return nullptr;
Expand Down

0 comments on commit fa81f62

Please sign in to comment.