ls -1 | curl -i --upload-file - https://sbin.tk
curl -i --upload-file ./somefile https://sbin.tk
alias curlbin='curl -i --upload-file - https://sbin.tk'
ls -1 | curlbin
Docker container
- Add new system user to run curlbin with:
Example: useradd -d /var/spool/curlbin -c 'uWSGI user curlbin' -M -r -s /sbin/nologin w3curlbin - install nginx and configure server using curlbin.conf.nginx template
- install uwsgi and configure vassal using curlbin.ini.uwsgi template
- install curlbin.py to desired path and make it executable
- install dependencies for curlbin.py
- install crontab using curlbin.crontab template
- create /var/spool/curlbin /var/log/uwsgi/curlbin directories and properly assign ACLs and selinux context.
- start nginx and uwsgi