update script and stuff

This commit is contained in:
Jon Lundy 2018-09-17 15:56:21 -06:00
parent ed186a40e7
commit bd1a55813b
Signed by untrusted user who does not match committer: xuu
GPG Key ID: 346DF999B2530DAE
4 changed files with 9 additions and 7 deletions

View File

@ -28,7 +28,7 @@ HASH=$((echo -e "exp:\t$(date +%s -d ${PASTE_DATE})"; \
[ "$PASTE_BURN" -eq "1" ] && echo -e "burn:\ttrue"; \ [ "$PASTE_BURN" -eq "1" ] && echo -e "burn:\ttrue"; \
[ "$PASTE_GZIP" -eq "1" ] && echo -e "zip:\ttrue"; \ [ "$PASTE_GZIP" -eq "1" ] && echo -e "zip:\ttrue"; \
echo; \ 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 @-) curl -s -X POST ${PASTE_URL}/paste --data-binary @-)
HASH_OK=$(echo $HASH | cut -c1-2) HASH_OK=$(echo $HASH | cut -c1-2)
@ -37,7 +37,7 @@ if [ "$HASH_OK" = "OK" ]; then
HASH=$(echo $HASH | cut -f2 -d' ') HASH=$(echo $HASH | cut -f2 -d' ')
echo "url: ${PASTE_URL}/#/${HASH}!${PASS}" 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; [ "$PASTE_GZIP" -eq "1" ] && echo " | gzip -dc" || echo;
exit exit
fi fi

@ -1 +1 @@
Subproject commit ba700a53ba68931451537ce5423c9c2823a39848 Subproject commit 46cbe64d1c0a8014976667fef853dae184cff9c2

View File

@ -0,0 +1,2 @@
[http]
listen = ":9015"

View File

@ -28,7 +28,7 @@ HASH=$((echo -e "exp:\t$(date +%s -d ${PASTE_DATE})"; \
[ "$PASTE_BURN" -eq "1" ] && echo -e "burn:\ttrue"; \ [ "$PASTE_BURN" -eq "1" ] && echo -e "burn:\ttrue"; \
[ "$PASTE_GZIP" -eq "1" ] && echo -e "zip:\ttrue"; \ [ "$PASTE_GZIP" -eq "1" ] && echo -e "zip:\ttrue"; \
echo; \ 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 @-) curl -s -X POST ${PASTE_URL}/paste --data-binary @-)
HASH_OK=$(echo $HASH | cut -c1-2) HASH_OK=$(echo $HASH | cut -c1-2)
@ -37,7 +37,7 @@ if [ "$HASH_OK" = "OK" ]; then
HASH=$(echo $HASH | cut -f2 -d' ') HASH=$(echo $HASH | cut -f2 -d' ')
echo "url: ${PASTE_URL}/#/${HASH}!${PASS}" 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; [ "$PASTE_GZIP" -eq "1" ] && echo " | gzip -dc" || echo;
exit exit
fi fi