pstsrv: add clbin and pbot
This commit is contained in:
parent
afa6641a79
commit
e6379e45b9
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# pstsrv
|
# 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
|
# CC0 1.0 Universal/Public domain - No rights reserved
|
||||||
#
|
#
|
||||||
# To the extent possible under law, the author(s) have dedicated all
|
# 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"
|
_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=
|
proxy=
|
||||||
while getopts x: flag; do
|
while getopts x: flag; do
|
||||||
case $flag in
|
case $flag in
|
||||||
@ -99,6 +114,12 @@ pst.moe)
|
|||||||
uguu.se|cockfile.com)
|
uguu.se|cockfile.com)
|
||||||
impl=impl_uguu uguu_host=$srv
|
impl=impl_uguu uguu_host=$srv
|
||||||
;;
|
;;
|
||||||
|
clbin)
|
||||||
|
impl=impl_clbin
|
||||||
|
;;
|
||||||
|
pbot)
|
||||||
|
impl=impl_pbot
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
err "unknown service $srv"
|
err "unknown service $srv"
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user