ReFirmLabs / binwalk

Firmware Analysis Tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot extract anything from a device, not file

jekhor opened this issue · comments

Binwalk can analyze a device, e.g. /dev/loop0p1 but extraction produces empty result (no files). This is caused by os.path.isfile() check here, what returns False for any device nodes: https://github.com/ReFirmLabs/binwalk/blob/master/src/binwalk/modules/extractor.py#L634

Changing isfile() to exists() makes extraction working.