Skip to content

mattmillen15/VHDVomit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

VHDVomit

Tool to search SMB shares for VHD backup files, mount them, and dump locally stored credentials within.


Demo:

VHDVomit.Demo.mov

Usage:

sudo python3 vhdvomit.py --help

 ██▒   █▓ ██░ ██ ▓█████▄     ██▒   █▓ ▒█████   ███▄ ▄███▓ ██▓▄▄▄█████▓
▓██░   █▒▓██░ ██▒▒██▀ ██▌   ▓██░   █▒▒██▒  ██▒▓██▒▀█▀ ██▒▓██▒▓  ██▒ ▓▒
 ▓██  █▒░▒██▀▀██░░██   █▌    ▓██  █▒░▒██░  ██▒▓██    ▓██░▒██▒▒ ▓██░ ▒░
  ▒██ █░░░▓█ ░██ ░▓█▄   ▌     ▒██ █░░▒██   ██░▒██    ▒██ ░██░░ ▓██▓ ░
   ▒▀█░  ░▓█▒░██▓░▒████▓       ▒▀█░  ░ ████▓▒░▒██▒   ░██▒░██░  ▒██▒ ░
   ░ ▐░   ▒ ░░▒░▒ ▒▒▓  ▒       ░ ▐░  ░ ▒░▒░▒░ ░ ▒░   ░  ░░▓    ▒ ░░
   ░ ░░   ▒ ░▒░ ░ ░ ▒  ▒       ░ ░░    ░ ▒ ▒░ ░  ░      ░ ▒ ░    ░
     ░░   ░  ░░ ░ ░ ░  ░         ░░  ░ ░ ░ ▒  ░      ░    ▒ ░  ░
      ░   ░  ░  ░   ░             ░      ░ ░         ░    ░
     ░            ░              ░
        Mount SMB shares, extract VHD/VHDX backups, dump credentials

usage: vhdvomit.py [-h] -t TARGET [-u USERNAME] [-p PASSWORD] [-d DOMAIN] [--path PATH]

Mount SMB shares, find VHD/VHDX/VMDK backups, extract credentials

options:
  -h, --help            show this help message and exit
  -t, --target TARGET   Target host IP or hostname
  -u, --username USERNAME
                        Username (default: null auth)
  -p, --password PASSWORD
                        Password
  -d, --domain DOMAIN   Domain name
  --path PATH           Specific path to scan (e.g., "D$/Backups/VMs")

Examples:
  Null authentication:
    vhdvomit.py -t 192.168.1.10
  
  With password:
    vhdvomit.py -t 192.168.1.10 -u administrator -p Password123 -d CORP
  
  Specific path:
    vhdvomit.py -t 192.168.1.10 -u admin -p pass --path "D$/Backups/VMs"

Pre-Reqs

sudo apt install -y cifs-utils qemu-utils ntfs-3g
pipx install impacket

Limitations

  • Currently only supports password based authentication. This tool relies heavily on qemu-nbd for mounting the VHDX file system... which doesn't support PTH.

Shout Out

  • This tool is just another stolen idea. Shout out to @ad0nis, especially since I am totally ripping off his tool name cause it's too fitting.

About

Tool to search SMB shares for VHD backup files, mount them, and dump locally stored credentials within.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages