servefile

serve or receive files from shell via a small HTTP server

Install

All systems
curl cmd.cat/servefile.sh
Debian Debian
apt-get install servefile
Ubuntu
apt-get install servefile
image/svg+xml Kali Linux
apt-get install servefile
Windows (WSL2)
sudo apt-get update sudo apt-get install servefile
Raspbian
apt-get install servefile

servefile

serve or receive files from shell via a small HTTP server

servefile is a small HTTP-server intended for temporary file transfer mostly in the local network. By default the server redirects all HTTP requests to a file given as first argument, so only IP and port must be given to another user to access it. servefile is also able to list directories, generate SSL certificates for HTTPS on-the-fly, do HTTP basic auth and provide a platform for uploads via either a HTML formular or a simple POST/PUT. Note that this HTTP-server's purpose is not production grade static file serving or running as a daemon.