From bca26fbc651ff2bbc361756b172360f5e39d4f45 Mon Sep 17 00:00:00 2001 From: Tobias Date: Wed, 11 Mar 2026 19:02:47 +0000 Subject: [PATCH] Add catboxuploader --- catboxuploader | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 catboxuploader diff --git a/catboxuploader b/catboxuploader new file mode 100644 index 0000000..51a1d45 --- /dev/null +++ b/catboxuploader @@ -0,0 +1,30 @@ +#!/bin/bash + +filename="$1" + +uploadtime() { + +echo -e "\nbe in the directory of the file you want to upload\ninput how long you want the file to be uploaded for" +read -p "valid options (hours) 1, 12, 24, 72: " time + +case "$time" in + 1|12|24|72 ) + time+="h" + ;; + * ) echo "invalid upload time" + uploadtime + ;; +esac + +} + +main(){ + +uploadtime + +echo "uploading..." +curl -F "reqtype=fileupload" -F "time=$time" -F "fileToUpload=@$filename" https://litterbox.catbox.moe/resources/internals/api.php + +} + +[ -z "$1" ] && echo -e "no file provided\nusage is catboxuploader yourfilehere\nsuch as: catboxuploader 123.txt" || main