googleprojectzero / functionsimsearch

Some C++ example code to demonstrate how to perform code similarity searches using SimHashing.
Apache License 2.0
559 stars 97 forks source link

ELF can't be disassembled #13

Open bmihaila opened 5 years ago

bmihaila commented 5 years ago

The attached file seems to cause an error in the ELF parser:

root@3784f1a5cc98:/code/functionsimsearch# ./bin/disassemble --input= /bzip2-1.0.4-gcc-5.3-alpine-3.31
[!] Failure to parse PE file!
Error: PE File cannot be parsed.

File is zipped for github to eat it. elfbreak.tar.gz

Lirong-source commented 2 years ago

you need to specify the format: ./bin/disassemble --format ELF --input= /bzip2-1.0.4-gcc-5.3-alpine-3.31