A little script I wrote for my thumb drive for chntpw
good for password resets

Code:
#!/bin/bash
#bash script to mount windows drive and lauch chntpw
# Version 1 --I doubt there will be any updates
 
# style variables
execstyle="[\e[01;32mx\e[00m]" # execute msgs style
warnstyle="[\e[01;31m!\e[00m]" # warning msgs stylee
infostyle="[\e[01;34mi\e[00m]" # informational msgs style
 
clear

echo -e "\e[1;1m..----=====*****((  MOUNT SCRIPT & CHNTPW  ))*******=====----..\e[0m"
echo -e "\e[31m *************************************************************\e[0m"
echo -e "\e[31m *                                                           *\e[0m"
echo -e "\e[31m * \e[1;37m                      By Reaperz                          \e[0;31m*\e[0m"
echo -e "\e[31m *                                                           *\e[0m"
echo -e "\e[31m * \e[1;37m        http://www.yourgeekonthego.com/wordpress/         \e[0;31m*\e[0m"
echo -e "\e[31m *                                                           *\e[0m"
echo -e "\e[31m *************************************************************\e[0m"
echo ""
echo -e "$infostyle This tool will mount your windows drive and make it accessable for chntpw use"
echo ""
echo -e "    You may press CTRL C to stop this tool at any time." 
echo ""
echo ""
read -p "Press enter to list all drives"
fdisk -l
echo -e "-----------------------------------------------------------------------"
echo -e "$infostyle Enter a disk from list to be mounted"
echo -e "$warnstyle Enter only the last part ie. sda1, sda2 etc: " 
read -e DISK
clear
echo -e "\e[1;1m..----=====*****((  MOUNT SCRIPT & CHNTPW  ))*******=====----..\e[0m"
echo -e "\e[31m *************************************************************\e[0m"
echo -e "\e[31m *                                                           *\e[0m"
echo -e "\e[31m * \e[1;37m                      By Reaperz                          \e[0;31m*\e[0m"
echo -e "\e[31m *                                                           *\e[0m"
echo -e "\e[31m * \e[1;37m        http://www.yourgeekonthego.com/wordpress/         \e[0;31m*\e[0m"
echo -e "\e[31m *                                                           *\e[0m"
echo -e "\e[31m *************************************************************\e[0m"
echo -e "$execstyle Mounting /dev/$DISK to /mnt/Windows"

mkdir -p /mnt/Windows
mount -t ntfs /dev/$DISK /mnt/Windows
echo -e "$warnstyle If you got an error message, $DISK may not exist or the drive may already be mounted"
echo -e "$infostyle If you wish to unmount later: umount /mnt/Windows"
echo
read -p "    Press enter to start chntpw"
clear

echo -e "\e[1;1m..----=====*****((  MOUNT SCRIPT & CHNTPW  ))*******=====----..\e[0m"
echo -e "\e[31m *************************************************************\e[0m"
echo -e "\e[31m *                                                           *\e[0m"
echo -e "\e[31m * \e[1;37m                      By Reaperz                          \e[0;31m*\e[0m"
echo -e "\e[31m *                                                           *\e[0m"
echo -e "\e[31m * \e[1;37m        http://www.yourgeekonthego.com/wordpress/         \e[0;31m*\e[0m"
echo -e "\e[31m *                                                           *\e[0m"
echo -e "\e[31m *************************************************************\e[0m"
echo ""

echo -e "$execstyle locating chntpw"
cd /pentest/passwords/chntpw
echo -e "$infostyle chntpw will now load the SAM file from windows"
echo ""
read -p "   Press enter to continue"

./chntpw -i /mnt/Windows/Windows/System32/config/SAM
echo -e "$infostyle almost done lets unmount the drive "
read -p "    Press enter to unmount"
echo -e "$execstyle unmounting the drive "
umount /mnt/Windows
read -p "    Press enter to exit"