Warning: session_start(): open(/tmp//sess_gmfi01qfoj0ro6rsvjt8rtd2hp, O_RDWR) failed: No space left on device (28) in /plog/classes/Session.php on line 9

Warning: session_start(): Failed to read session data: files (path: ) in /plog/classes/Session.php on line 9
piclog

hym_

https://webhymn.neocities.org/

CLICK ME

#!/bin/bash

EMAIL="email@email.com"
PASSWORD="password@password.com"

scregex="https?:\/\/(www/.)?soundcloud\.com\/([a-zA-Z0-9_-]+)\/([a-zA-Z0-9_-]+)"
if [[ $(termux-clipboard-get) =~ $scregex ]]; then
  artist="${BASH_REMATCH[2]}"
  track="${BASH_REMATCH[3]}"
  useclipboard=$([[ $(termux-dialog confirm -t "Do you want to post: ${artist} - ${track}" | jq -r .text) == "yes" ]] && echo 1)
fi

if [[ ! useclipboard -eq 1 ]]; then
  input=$(termux-dialog -t "Enter SoundCloud URL" | jq -r .text)
  if [[  ! $input =~ $scregex ]]; then
    termux-toast -b "#612121" "Text does not include a SoundCloud URL"
    exit 1
  fi
  artist="${BASH_REMATCH[2]}"
  track="${BASH_REMATCH[3]}"
fi

scres=$(curl -sSL "https://soundcloud.com/${artist}/${track}")
imgregex='<meta property="og:image" content="([^"]+)"'

if [[ ! $scres =~ $imgregex ]]; then
  termux-toast -b "#612121" "Could not fetch track"
  exit 1
fi

imgurl="${BASH_REMATCH[1]}"
imgpath=$(mktemp)
if ! curl -fsSL "$imgurl" -o "$imgpath"; then
  rm -f "$imgpath"
  termux-toast -b "#612121" "Could not fetch cover art"
  exit 1
fi

loginres=$(curl -siS "https://piclog.blue/login.php")
csrfregex='<input type="hidden" name="csrf" value="([^"]+)"'

if [[ ! $loginres =~ $csrfregex ]]; then
  rm -f "$imgpath"
  termux-toast -b "#612121" "Could not fetch CSRF value needed for login"
  exit 1
fi

csrf="${BASH_REMATCH[1]}"
cookieregex='PHPSESSID=([^;]+)'

if [[ ! $(echo "$loginres" | grep ^Set-Cookie)  =~ $cookieregex ]]; then
  rm -f "$imgpath"
  termux-toast -b "#612121" "Could not get piclog anonymous token"
  exit 1
fi

sessid="${BASH_REMATCH[1]}"

cookie=$(curl "https://piclog.blue/login.php" -X POST \
  -b "PHPSESSID=${sessid}" \
  -d "csrf=${csrf}" \
  -d "email=${EMAIL}" \
  -d "password=${PASSWORD}" \
  -sSi | grep ^Set-Cookie)


if [[ ! $cookie =~ $cookieregex ]]; then
  rm -f "$imgpath"
  termux-toast -b "#612121" "Could not get piclog login token"
  exit 1
fi

sessid="${BASH_REMATCH[1]}"
uploadres=$(curl -sS "https://piclog.blue/upload.php" -b "PHPSESSID=${sessid}")
if [[ ! $uploadres =~ $csrfregex ]]; then
  rm -f "$imgpath"
  termux-toast -b "#612121" "Could not fetch CSRF value needed for upload"
  exit 1
fi

csrf="${BASH_REMATCH[1]}"

if ! curl -fsS "https://piclog.blue/upload.php" > /dev/null -X POST \
  -H "Cookie: PHPSESSID=${sessid}" \
  -F "csrf=${csrf}" \
  --form-string "description=<a class=\"is-visitor flash\" target=\"_blank\" href=\"https://soundcloud.com/${artist}/${track}\">${artist} - ${track}</a>" \
  -F "image=@${imgpath};type=image/jpeg;filename=$(date +%s).jpg"; then

  rm -f "$imgpath"
  termux-toast -b "#612121" "Could not upload image"
  exit 1
fi

rm -f "$imgpath"
termux-toast -b "#216121" "Posted successfully"

Subscribe via RSS

1781780330.jpg

nskw24 - brokenvoice

HJHhwZiW4AAIM9V.jpg

/

1780794960.jpg

wsskrr - i2-q

1780792563.jpg

user-949550805 - monokuro

tumblr_9c9aea1384a4a5dcb852da2bcd638648_705ae808_1280.jpg

1

1780598584.jpg

blxty - twice

tears-down-your-eyes.jpg

akkiro - tears down your eyes

Sing.jpg

44y - Sing

runitback.jpg

gens - runitback

happy-brain.jpg

watering - happy brain

1000053195.jpg

key

angel.jpg

https://angelangelangelangelangel.com

demiurge.jpg

it is valentines day i have no one

3fad2def6e6f51a37489abd69c0e8be8.jpg

renako

1000050294.jpg

copy my swag (right click)

1000049929.jpg

catastic side eye

1000049432.jpg

just a fan of thermodynaics

1000049372.jpg

👍

1112006.jpg

diy belt

lovesmenot.jpg

diy tshirt