Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

abort while processing a specific iso file #578

Open
MMikePL opened this issue Nov 24, 2021 · 2 comments
Open

abort while processing a specific iso file #578

MMikePL opened this issue Nov 24, 2021 · 2 comments

Comments

@MMikePL
Copy link

MMikePL commented Nov 24, 2021

Binwalk can't cope with public minix iso file, available at http://minix1.woodhull.com/pub/contrib/m203CD08iso.gz
output is interrupted and rest of the input is not processed.

Steps to reproduce error (example based on Windows 10 machine):

  1. download minix iso from http://minix1.woodhull.com/pub/contrib/m203CD08iso.gz
  2. unzip downloaded file to c:\minix2.0.3CD0.8.iso (ie with 7zip)
  3. create new fat32 50MB partition as M:
  4. copy exe file
    copy %windir%\explorer.exe m:\
  5. copy iso file
    copy c:\minix2.0.3CD0.8.iso m:\
  6. copy another two exe files
    copy %windir%\notepad.exe m:
    copy %windir%\regedit.exe m:\
  7. dump whole partition to file (i've used HxD tool)
  8. analyze file by binwalk (default settings)
    binwalk part_dump.bin | grep "executable"

Above steps produce result with only one line, not three.

The same steps but omitting step 5 (don't copy iso file) produce 3 lines in result (correct).

Dump file is too big to attach directly (even after compression), i've uploaded it to https://www.sendspace.com/file/t20q21

I understand that there may be sth wrong with this iso, but binwalk should (at least) ignore it and parse rest of the input...

@mzpqnxow
Copy link

mzpqnxow commented Feb 3, 2024

You can have it carve the file out rather than try to extract it, or you can instruct binwalk to keep invalid files, as a few ideas. Read all of the command line flags it’s not a long read

@mzpqnxow
Copy link

mzpqnxow commented Feb 3, 2024

I’ll add that 7z x minix.iso should work really well for you, too. In general I don’t think binwalk is the best tool for well known files like rar, zip, iso, etc. They already have native tools that work just fine (though i would still be curious to know what the underlying issue is)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants