infobyte / cve-2022-27255

GNU General Public License v3.0
277 stars 51 forks source link

binwalk -Y #1

Closed tosiara closed 2 years ago

tosiara commented 2 years ago

-Y option is not available in the original binwalk (https://github.com/ReFirmLabs/binwalk)

https://github.com/infobyte/cve-2022-27255/blob/main/analysis/analyse_firmware.py#L16

What version of binwalk were you using?

OctavioGalland commented 2 years ago

@tosiara it works with Binwalk v2.3.3, it should also work with the version available in the latest Ubuntu's repos.

$ binwalk -Y ./Nebula300+_v12.01.01.37/Nebula300+__V12.01.01.37_en_NEX01.bin  # router firmware used in the presentation

DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
8             0x8             MIPS executable code, 32/64-bit, big endian, at least 1250 valid instructions

$ binwalk --help

Binwalk v2.3.3
Craig Heffner, ReFirmLabs
https://github.com/ReFirmLabs/binwalk
[...]

Please let me know which version you are using and what output you are getting.

LeonidKalichkin commented 2 years ago

Got the same issue, found a solution.

From binwalk installation guide:

Binwalk's --disasm option requires the Capstone disassembly framework and its corresponding Python bindings:

$ sudo pip install capstone

-Y is an alias for --disasm. Option description is not shown when requirements are not satisfied.

tosiara commented 2 years ago

Great! That is resolved, thanks!