Skip to content
This repository has been archived by the owner on Aug 26, 2023. It is now read-only.

Commit

Permalink
best
Browse files Browse the repository at this point in the history
  • Loading branch information
big cock committed Aug 20, 2023
1 parent ee814ab commit 9572e54
Showing 1 changed file with 35 additions and 17 deletions.
52 changes: 35 additions & 17 deletions uploader_files/flameshot/flameshot_uploader.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,26 @@
#!/bin/bash

API="https://im.horny.rip/api/upload/"
DOMAINS=("https://im.horny.rip" "https://im.sleepdeprived.wtf" "https://youre.sleepdeprived.wtf")
API_KEY="fuckurmom21!"
API_KEY="fuckurmom"
domains=(
"https://im.sleepdeprived.wtf"
"https://ur.sleepdeprived.wtf"
"https://probably.sleepdeprived.wtf"
"https://because.sleepdeprived.wtf"
"https://im.horny.rip"
"https://ur.horny.rip"
"https://probably.horny.rip"
"https://because.horny.rip"
"https://img.cock.expert"
"https://img.femboys.porn"
"https://img.femboys.fyi"
"https://img.sexy.ong"
"https://img.highon.christmas"
"https://img.wank.group"
"https://img.cocks.dev"
"https://img.stoner.host"
"https://img.onlycats.ong"
)

screenshot="$(mktemp /tmp/screenshot.XXXXXXXXXX.png)"

Expand All @@ -23,14 +41,14 @@ open_url() {

copy_to_clipboard() {
local url=$1

if command -v xclip >/dev/null 2>&1; then
echo -n "$url" | xclip -selection clipboard
echo "URL copied to clipboard using xclip."
elif command -v pbcopy >/dev/null 2>&1; then
elif command -v pbcopy >/dev/null 2>&1; then
echo -n "$url" | pbcopy
echo "URL copied to clipboard using pbcopy."
elif command -v clip >/dev/null 2>&1; then
elif command -v clip >/dev/null 2>&1; then
echo -n "$url" | clip
echo "URL copied to clipboard using clip."
else
Expand All @@ -47,48 +65,48 @@ display_error() {
upload_image() {
flameshot gui -r > "$screenshot"
capture_status=$?

if [ $capture_status -ne 0 ]; then
display_error "Failed to capture screenshot or screenshot aborted."
cleanup
fi

response=$(curl -s -H "key: $API_KEY" -F "sharex=@$screenshot" "$API")
upload_status=$?

if [ $upload_status -ne 0 ]; then
display_error "Failed to upload image."
cleanup
fi

url=$(echo "$response" | grep -oE '"url":"([^"]+)"' | cut -d'"' -f4)

if [ -z "$url" ]; then
display_error "Failed to get uploaded URL."
cleanup
fi

random_index=$((RANDOM % ${#DOMAINS[@]}))
selected_domain="${DOMAINS[$random_index]}"
full_url="$selected_domain/$url"
}

notify() {
local url=$1

copy_to_clipboard "$url"

local summary="Sussy Image Host"
local body="The image was uploaded successfully and the URL was copied to the clipboard."

notify-send "$summary" "$body"

#open_url "$url"
}

main() {
trap exit_handler EXIT

if [ -t 1 ]; then
random_index=$((RANDOM % ${#DOMAINS[@]}))
selected_domain="${DOMAINS[$random_index]}"
Expand All @@ -97,7 +115,7 @@ main() {
else
echo "Script is not running in an interactive shell. Skipping."
fi

cleanup
}

Expand Down

0 comments on commit 9572e54

Please sign in to comment.