From 0dba6a72090e261432b6b9f58b5e41763a944ec5 Mon Sep 17 00:00:00 2001 From: jrb0001 Date: Mon, 17 Sep 2018 21:11:12 +0000 Subject: [PATCH] Make paste.sh compatible with current server --- public/paste.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/paste.sh b/public/paste.sh index 503346c..6d18f17 100755 --- a/public/paste.sh +++ b/public/paste.sh @@ -28,7 +28,7 @@ HASH=$((echo -e "exp:\t$(date +%s -d ${PASTE_DATE})"; \ [ "$PASTE_BURN" -eq "1" ] && echo -e "burn:\ttrue"; \ [ "$PASTE_GZIP" -eq "1" ] && echo -e "zip:\ttrue"; \ echo; \ - cat /dev/stdin | $GZBIN | openssl aes-256-cbc -e -a -k $PASS) | \ + cat /dev/stdin | $GZBIN | openssl aes-256-cbc -md md5 -e -a -k $PASS) | \ curl -s -X POST ${PASTE_URL}/paste --data-binary @-) HASH_OK=$(echo $HASH | cut -c1-2) @@ -37,7 +37,7 @@ if [ "$HASH_OK" = "OK" ]; then HASH=$(echo $HASH | cut -f2 -d' ') echo "url: ${PASTE_URL}/#/${HASH}!${PASS}" - echo -n "shell: curl -s ${PASTE_URL}/api/get/${HASH} | sed '1,/^\$/d' | openssl aes-256-cbc -d -a -k ${PASS}" + echo -n "shell: curl -s ${PASTE_URL}/api/get/${HASH} | sed '1,/^\$/d' | openssl aes-256-cbc -md md5 -d -a -k ${PASS}" [ "$PASTE_GZIP" -eq "1" ] && echo " | gzip -dc" || echo; exit fi