-
-
Save maride/5255c48fdb5998e80d10 to your computer and use it in GitHub Desktop.
Der SSKD Lücken zeigen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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