diff --git a/README.md b/README.md index 8bd0e1f..4194ba4 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ [Issue tracker](https://git.uphillsecurity.com/cf7/linedump/issues) | `Libera Chat #linedump` + - Status: Beta - expect minor changes - Instance: [linedump.com](https://linedump.com/) - Inspired by: @@ -56,14 +57,11 @@ ipconfig | Invoke-RestMethod -Uri "https://linedump.com/" -Method Post -Body { $ █ Download: -curl https://linedump.com/{path} # print to stdout -curl -o filename.txt https://linedump.com/{path} # save to file +curl https://linedump.com/{path} -wget -O- https://linedump.com/{path} # print to stdout -wget -O filename.txt https://linedump.com/{path} # save to file +wget -O- https://linedump.com/{path} -Invoke-RestMethod -Uri "https://linedump.com/{path}" # print to stdout -Invoke-RestMethod -Uri "https://linedump.com/{path}" -OutFile "filename.txt" # save to file +Invoke-RestMethod -Uri "https://linedump.com/{path}" @@ -114,32 +112,9 @@ curl -s https://linedump.com/{path} | base64 -d | openssl enc -d -aes-256-cb ## Installation -**Use with reverse-proxy and HTTPS!** +Use with reverse-proxy and HTTPS! -### Docker - -**Simple / Testing** - -`docker run -d -p 127.0.0.1:8000:8000 -v /path/to/upload:/app/upload git.uphillsecurity.com/cf7/linedump:latest` - -Open `http://127.0.0.1:8000` - -**More advanced example with Podman** - -```bash -podman run --replace -d --restart=unless-stopped \ - --name linedump \ - -e BASEURL="https://linedump.com" \ - --userns=keep-id \ - --read-only \ - --cap-drop=ALL \ - --security-opt no-new-privileges:true \ - -p 127.0.0.1:8000:8000 \ - -v linedump:/app/uploads \ - git.uphillsecurity.com/cf7/linedump:latest -``` - -### Configuration +### Environment Variables | Variable | Description | Default | Required | |----------|-------------|---------|----------| @@ -160,7 +135,6 @@ For security concerns or reports, please contact via `hello a t uphillsecurity d ## Notes - [Github Mirror available](https://github.com/CaffeineFueled1/linedump) -- [Rate Limit Testing Script](https://git.uphillsecurity.com/cf7/Snippets/wiki/bash-linedump-ratelimit-test.-) --- diff --git a/main.py b/main.py index d4d5a99..9917f52 100644 --- a/main.py +++ b/main.py @@ -143,14 +143,11 @@ ipconfig | Invoke-RestMethod -Uri "{BASEURL}/" -Method Post -Body {{ $_ }} █ Download: -curl {BASEURL}/{{path}} # print to stdout -curl -o filename.txt {BASEURL}/{{path}} # save to file +curl {BASEURL}/{{path}} -wget -O- {BASEURL}/{{path}} # print to stdout -wget -O filename.txt {BASEURL}/{{path}} # save to file +wget -O- {BASEURL}/{{path}} -Invoke-RestMethod -Uri "{BASEURL}/{{path}}" # print to stdout -Invoke-RestMethod -Uri "{BASEURL}/{{path}}" -OutFile "filename.txt" # save to file +Invoke-RestMethod -Uri "{BASEURL}/{{path}}"