ghidra icon indicating copy to clipboard operation
ghidra copied to clipboard

It is not possible to directly select the type of filesystem when opening it.

Open agatti opened this issue 3 years ago • 3 comments

(This sort of crosses the line between bug and feature, though)

Describe the bug Filesystem providers whose factories do not implement GFileSystemProbeBytesOnly or GFileSystemProbeByteProvider are not considered when opening a filesystem via 'File > Open File System...'.

To Reproduce Steps to reproduce the behavior:

  1. Create an empty filesystem whose factory implements neither GFileSystemProbeBytesOnly nor GFileSystemProbeByteProvider and make it available to Ghidra.
  2. Open a filesystem via 'File > Open File System...'
  3. An error message says no filesystem provider for the file is available.

Expected behavior If the probing providers give up, there should be a way to pick a fallback filesystem.

Environment (please complete the following information):

  • OS: macOS
  • Java Version: 11.0.15
  • Ghidra Version: 10.2-DEV at ca60845ee1551f33d8e02b03503d67a1742d9251
  • Ghidra Origin: locally built.

Additional context In cases where a custom filesystem with no particular header or other identifying characteristics to write a probe for, there is no chance for the filesystem to be traversed even if a filesystem provider is available.

I've written a proto-PR to work around that issue - which I'm having now: https://github.com/agatti/ghidra/commit/7bf3a0e244eb6236a250fd29be42ed4f3a2c353f. I'm willing to clean it up and submit it as a full-fledged PR if it's OK with you folks, but maybe you may have other ideas...

agatti avatar Jul 15 '22 17:07 agatti

seems reasonable, and the PR looks ok. I'll comment in the branch about a few things and we'll go from there.

dev747368 avatar Jul 15 '22 19:07 dev747368

I currently hit this for virtually all binaries and for the mean time you can archive your binary into a tarball, open it in Ghidra, and then import the binary file from with the tarball as a workaround.

ljrk0 avatar Mar 09 '23 13:03 ljrk0

hello everyone. i have the same problem. when i try to import a binary into ghidra, it say me ' no filesytem provide for this file'. i don't know how to solve it. please someone to help me Uploading ghidra_error.png…

fr33k3v1n0 avatar Dec 03 '23 09:12 fr33k3v1n0