mirror of
https://github.com/horsicq/Detect-It-Easy.git
synced 2026-06-24 01:54:08 +00:00
Include .reloc in section detection
Broaden the section name check to match both ".rsrc" and ".reloc" (using /. (rsrc|reloc)/i) instead of only matching "rsrc". This ensures reloc sections are counted in the resourceSectionsCounter and improves accuracy when identifying resource/relocation sections in PE parsing.
This commit is contained in:
parent
383cd8f752
commit
e443ef9a2e
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ function detect() {
|
|||
if (sectionToCheck.Characteristics & 0xe0000020) {
|
||||
isRwxSectionPresent = true;
|
||||
}
|
||||
} else if (/rsrc/i.test(sectionToCheck.Name)) {
|
||||
} else if (/.(rsrc|reloc)/i.test(sectionToCheck.Name)) {
|
||||
resourceSectionsCounter++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue