1) Enable WebDAV sudo a2enmod dav sudo a2enmod dav_fs mkdir -p /var/www/webdav touch /var/www/DavLock chown www-data:www-data /var/www/webdav /var/www/DavLock 2) vim /etc/apache2/sites-available/000-default.conf DavLockDB /var/www/DavLock <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined Alias /webdav /var/www/webdav <Directory /var/www/webdav> DAV On <LimitExcept GET HEAD OPTIONS PROPFIND> deny from all </LimitExcept> </Directory> </VirtualHost> 3) Then add your payload to /var/www/webdav/ 4) Access share at \\webdav