Björn Wärmedal 591cfdf0b3 First commit | %!s(int64=2) %!d(string=hai) anos | |
---|---|---|
files | %!s(int64=2) %!d(string=hai) anos | |
.gitignore | %!s(int64=2) %!d(string=hai) anos | |
LICENSE | %!s(int64=2) %!d(string=hai) anos | |
README.md | %!s(int64=2) %!d(string=hai) anos | |
index.cgi | %!s(int64=2) %!d(string=hai) anos |
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.