SHARE
TWEET

open-winpe

tolikpunkoff Feb 2nd, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. IMAGE="winpe-test.img"
  4.  
  5. echo "Open WinPE"
  6. losetup /dev/loop0 $IMAGE
  7. MSG=`kpartx -av /dev/loop0`
  8. DEV=`echo $MSG | awk '{print $3}'`
  9. echo $DEV
  10. sleep 5
  11. mount -t vfat /dev/mapper/$DEV /mnt/dos
  12. echo "Complete"
  13. sleep 2
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top