Skip to content

Instantly share code, notes, and snippets.

View h4x0r's full-sized avatar

Albert Hui h4x0r

View GitHub Profile
@h4x0r
h4x0r / mount_e01.sh
Last active April 20, 2024 10:37
Mount .e01 on Mac
# first manually install macFUSE (https://github.com/osxfuse/osxfuse/releases)
brew uninstall libewf # Homebrew libewf isn't compiled with libfuse support
# download libewf (libewf-experimental-20231119.tar.gz)
mkdir -p ~/src && cd ~/src
wget -O- https://github.com/libyal/libewf/releases/download/20231119/libewf-experimental-20231119.tar.gz | tar zxvf -
cd libewf-20231119
CFLAGS="-I/opt/homebrew/include -L/opt/homebrew/lib" ./configure --enable-wide-character-type=yes
sudo make install
sudo ewfmount -X volicon=/Library/Filesystems/macfuse.fs/Contents/Resources/Volume.icns foo.e01 /Volume/foo
sudo hdiutil attach -imagekey diskimage-class=CRawDiskImage /Volumes/foo/ewf1

Keybase proof

I hereby claim:

  • I am h4x0r on github.
  • I am alberthui (https://keybase.io/alberthui) on keybase.
  • I have a public key whose fingerprint is 162A 19C5 B066 55F5 0DB2 FAC8 6525 2496 00FE 448C

To claim this, I am signing this object: