Björn Wärmedal 591cfdf0b3 First commit | vor 2 Jahren | |
---|---|---|
files | vor 2 Jahren | |
.gitignore | vor 2 Jahren | |
LICENSE | vor 2 Jahren | |
README.md | vor 2 Jahren | |
index.cgi | vor 2 Jahren |
A very simple -- and insecure -- CGI script for sharing files via links.
The script allows anyone with access to upload any file. The following security measures should be implemented before releasing this into the wild:
Clone this repository into the folder you wish to have it. Take note of the security considerations above and implement necessary mitigations.
Check out a local branch:
git checkout -b local
Change the FILES_DIR_URL = "https://yourdomainhere/simple-fileshare/files"
to something suitable for your site.
I gotta say I don't believe there will be any, but still.
git checkout master
git pull
git checkout -
git rebase master
That should be it.