Exfiltration
File Transfer over HTTPS
NGINX
1. Create an upload directory
2. Change directory owner and group to www-data
3. Create Nginx configuration file
>> /etc/nginx/sites-available/upload.conf (example below)
server {
listen PORT;
location /DIRECTORY_CREATED/ {
root /DIRECTORY_LOCATION/;
dav_methods PUT;
}
}
4. Symlink the site to the sites-enabled directory
>> sudo ln -s /etc/nginx/sites-available/upload.conf /etc/nginx/sites-enabled/
5. Start Nginx
>> sudo systemctl start nginx.service ; Restart if already startedLast updated