Linux ELF Not Recognised
See original GitHub issueDescription
Testing capa with a basic Linux kernel module fails.
root@debian:~/src/git/linux_kernel_hacking/0_Basic_LKMs/0.0_Basic# ~/capa example.ko
loading : [8<]
ERROR:capa:--------------------------------------------------------------------------------
ERROR:capa: Input file does not appear to target a supported OS.
ERROR:capa:
ERROR:capa: capa currently only supports analyzing executables for some operating systems (including Windows and Linux).
ERROR:capa:--------------------------------------------------------------------------------
root@debian:~/src/git/linux_kernel_hacking/0_Basic_LKMs/0.0_Basic# file example.ko
example.ko: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), BuildID[sha1]=dc941d6e3f77657bcbacf3d2d23c06b7a209e00d, not stripped
root@debian:~/src/git/linux_kernel_hacking/0_Basic_LKMs/0.0_Basic#
Steps to Reproduce
Files tested are available on VT:
- 9f38a726c7c3d52efeabb041861cf9fac03949594fc81019309883713e01c1cc
- 82dae644c7a956a41d70097b7a749ca26fc6e04f0fa3186ee72955b2b5c550b6
Versions
capa v3.1.0-0-gc0851fc
Additional Information
Input file is a simple compile of the example Linux kernel module from the following source code: https://github.com/xcellerator/linux_kernel_hacking/tree/master/0_Basic_LKMs/0.0_Basic Compiled on Debian.
root@debian:~/src/git/linux_kernel_hacking/0_Basic_LKMs/0.0_Basic# cat /etc/debian_version
11.2
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
Executable says "line 1: ELF: not found" when starts
Yes, I'd expect an ELF file to be binary. If a UNIX-like OS doesn't know how to execute an ELF file directly, or...
Read more >Linux generated elf not working in Windows (sources not found)
The Linux generated .elf after flashing it gives the error that it can't access the sources and I can't do anything. Probably the...
Read more >bash: ELF: command not found - LinuxQuestions.org
At the command prompt it may be qcadlink in another folder - which can be verified by typing `which qcadlink` in the comand...
Read more >Trying to unzip a tgz in WSL but get ELF not found error
I would like to unzip a .tgz file, but I get an ELF not found error . I am using Windows 10 and...
Read more >Linux executable fails with "File not found" even though the file ...
Strongly suggests that the system does not have the /lib/ld-linux.so.2 ELF interpreter. That is, this 64-bit system does not have any 32-bit ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
this ELF file also makes vivisect pretty unhappy:
the note is not represented by a program header, only a section.