Skip to content

Instantly share code, notes, and snippets.

@manantsoar
Forked from mgeeky/mount-shared-folders.sh
Created March 2, 2021 17:30
Show Gist options
  • Select an option

  • Save manantsoar/6d521560bc4d84cc064050f7d62bd868 to your computer and use it in GitHub Desktop.

Select an option

Save manantsoar/6d521560bc4d84cc064050f7d62bd868 to your computer and use it in GitHub Desktop.
VMware mount shared folders (taken from Kali)
#!/bin/bash
vmware-hgfsclient | while read folder; do
echo "[i] Mounting ${folder} (/mnt/hgfs/${folder})"
mkdir -p "/mnt/hgfs/${folder}"
umount -f "/mnt/hgfs/${folder}" 2>/dev/null
vmhgfs-fuse -o allow_other -o auto_unmount ".host:/${folder}" "/mnt/hgfs/${folder}"
done
sleep 2s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment