Binwalk is a fast, easy to use tool for analyzing and extracting firmware images.
brew install binwalk