From 2e78cb4103f73e75ae5613b95965b4dabe84464c Mon Sep 17 00:00:00 2001 From: CaffeineFueled Date: Fri, 3 Oct 2025 23:08:53 +0200 Subject: [PATCH 1/3] ADD reference for rate limit script --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4194ba4..4acfab1 100644 --- a/README.md +++ b/README.md @@ -135,6 +135,7 @@ 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.-) --- From ef39cc12e1055111ae03febbac96518609c665f5 Mon Sep 17 00:00:00 2001 From: CaffeineFueled Date: Fri, 3 Oct 2025 23:30:47 +0200 Subject: [PATCH 2/3] ADD installation instructions to README --- README.md | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4acfab1..5d59f08 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,6 @@ [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: @@ -112,9 +111,32 @@ 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!** -### Environment Variables +### 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 | Variable | Description | Default | Required | |----------|-------------|---------|----------| From 6e9390c1979f376da6a99d9c2ebbdcb5fe66572a Mon Sep 17 00:00:00 2001 From: CaffeineFueled Date: Sat, 4 Oct 2025 00:10:45 +0200 Subject: [PATCH 3/3] ADD examples for the donwload of pastes --- README.md | 9 ++++++--- main.py | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5d59f08..8bd0e1f 100644 --- a/README.md +++ b/README.md @@ -56,11 +56,14 @@ ipconfig | Invoke-RestMethod -Uri "https://linedump.com/" -Method Post -Body { $ █ Download: -curl https://linedump.com/{path} +curl https://linedump.com/{path} # print to stdout +curl -o filename.txt https://linedump.com/{path} # save to file -wget -O- https://linedump.com/{path} +wget -O- https://linedump.com/{path} # print to stdout +wget -O filename.txt https://linedump.com/{path} # save to file -Invoke-RestMethod -Uri "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 diff --git a/main.py b/main.py index 9917f52..d4d5a99 100644 --- a/main.py +++ b/main.py @@ -143,11 +143,14 @@ ipconfig | Invoke-RestMethod -Uri "{BASEURL}/" -Method Post -Body {{ $_ }} █ Download: -curl {BASEURL}/{{path}} +curl {BASEURL}/{{path}} # print to stdout +curl -o filename.txt {BASEURL}/{{path}} # save to file -wget -O- {BASEURL}/{{path}} +wget -O- {BASEURL}/{{path}} # print to stdout +wget -O filename.txt {BASEURL}/{{path}} # save to file -Invoke-RestMethod -Uri "{BASEURL}/{{path}}" +Invoke-RestMethod -Uri "{BASEURL}/{{path}}" # print to stdout +Invoke-RestMethod -Uri "{BASEURL}/{{path}}" -OutFile "filename.txt" # save to file