mirror of
https://github.com/mandiant/capa.git
synced 2026-03-12 21:23:12 -07:00
* main: suggest --os flag when OS detection fails for ELF files When capa cannot detect the target OS of an ELF file, it exits with an error. Some ELF files lack the standard metadata capa uses for OS detection (GNU ABI tag, OSABI field, library dependencies, etc.) even though they do target a valid OS (e.g. a stripped Linux binary using only raw syscalls). Add a hint to the unsupported-OS error message telling users they can specify the OS explicitly with the --os flag, matching the workaround recommended in the issue. Fixes #2577