Skip to content

Instantly share code, notes, and snippets.

@maride
Last active April 1, 2018 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maride/5255c48fdb5998e80d10 to your computer and use it in GitHub Desktop.
Save maride/5255c48fdb5998e80d10 to your computer and use it in GitHub Desktop.
Der SSKD Lücken zeigen
#!/bin/bash
#
# Author: maride
# Date: 10-Jul-15
# Presentation: chaosdorf.de/~maride#SSKD-Fun
echo -n "Abfragen oder setzen? [a/S]: "
read CHOICE
echo -n "Motiv (1-13): "
read MOTIV
if [[ "$CHOICE" == "a" ]]; then
echo -n "Motiv $MOTIV hat aktuell "
curl \
-X "POST" \
-H "X-Requested-With: XMLHttpRequest" \
--data "get_action=display" \
--data "get_target_id=$MOTIV" \
--data "get_increment=1" \
--data "get_time=0" \
"http://www.ssk-kreditkarten.de/counter.php"
echo " Stimmen"
else
echo -n "Stimmen (+- any): "
read AMOUNT
echo -n "Motiv $MOTIV wurde auf "
curl \
-X "POST" \
-H "X-Requested-With: XMLHttpRequest" \
--data "get_action=count" \
--data "get_target_id=$MOTIV" \
--data "get_target_name=Vote+Motiv+$MOTIV" \
--data "get_increment=$AMOUNT" \
--data "get_time=0" \
"http://www.ssk-kreditkarten.de/counter.php"
echo " gesetzt"
fi
echo ""
echo ""
echo "kthxbye <3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment