.vhd
Viewing Files
using 7zip you can quickly look at the file structure of the virtual hard drive. This is useful to see if there are any important files or directories you should explore further. You can also replace the l
option with x
to extract instead of view.
Mounting
The guestmount
tool allows you to mount the virtual hard drive and explore the file system normally. The --ro
flag stands for read only, so you will have to copy the files elsewhere to make changes. Add the -v
flag for verbose output.
Mounting a virtual hard disk can take upwards of a few minutes.
Extracting Credentials
Files to look for, besides non-standard:
To extract the credentials, copy the files with:
Use impacket
to dump secrets. Exclude ntds.dit
if you do not have it.
This is not every important default file on a .vhd, just the ones I have run into on engagements. Always be on the lookout for non-standard files and directories.
Last updated