mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
elf: detect FreeBSD via note
This commit is contained in:
@@ -188,6 +188,9 @@ def detect_elf_os(f: BinaryIO) -> str:
|
||||
elif name == "NetBSD":
|
||||
logger.debug("note owner: %s", "NETBSD")
|
||||
ret = OS.NETBSD if not ret else ret
|
||||
elif name == "FreeBSD":
|
||||
logger.debug("note owner: %s", "FREEBSD")
|
||||
ret = OS.FREEBSD if not ret else ret
|
||||
|
||||
for i in range(e_phnum):
|
||||
offset = i * e_phentsize
|
||||
|
||||
Reference in New Issue
Block a user