hdik is a simple tool that can be used to attach disk images directly to the DiskImages driver. The end result is functionally similar to passing -kernel to hdiutil's attach verb. hdik does not rely upon the presence of DiskImages or other high-level frameworks.