diff --git a/bin/pstsrv.sh b/bin/pstsrv.sh index 4288c41..0f924b1 100644 --- a/bin/pstsrv.sh +++ b/bin/pstsrv.sh @@ -1,6 +1,6 @@ #!/bin/sh # pstsrv -# Written in 2020-2021,2023 by Lucas +# Written in 2020-2021,2023,2025 by Lucas # CC0 1.0 Universal/Public domain - No rights reserved # # To the extent possible under law, the author(s) have dedicated all @@ -74,6 +74,21 @@ end _curl "$@" "https://$uguu_host/upload.php" | jq -r "$_jq_prog" } +impl_clbin() +{ + check_runtime curl + + _curl -F "clbin=<$1" https://clbin.com +} + +impl_pbot() +{ + check_runtime curl + + _curl -o /dev/null -w '%{redirect_url}\n' -F "content=<$1" \ + https://pbot.rmdir.de/ +} + proxy= while getopts x: flag; do case $flag in @@ -99,6 +114,12 @@ pst.moe) uguu.se|cockfile.com) impl=impl_uguu uguu_host=$srv ;; +clbin) + impl=impl_clbin + ;; +pbot) + impl=impl_pbot + ;; *) err "unknown service $srv" ;;