bot.sh 799 B

123456789101112
  1. #!/bin/sh
  2. # pew pew pew
  3. # per farlo martellare, da root
  4. # while true; do torsocks ./bot.sh; kill -HUP $(pidof tor); sleep 1; done
  5. tempfile=$(mktemp)
  6. cookie_jar=$(mktemp)
  7. user_agent="User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"
  8. survey_url="https://it.surveymonkey.com/r/LYCK7TZ"
  9. curl --silent $survey_url -o $tempfile -c $cookie_jar
  10. survey_data=$(cat $tempfile | grep survey_data | sed 's/ /\n/g' | grep value | cut -d '"' -f 2)
  11. curl --silent -L -c $cookie_jar -H "$user_agent" -F "324391492=2147689223" -F "324391492_other=XM24" -F "survey_data=$survey_data" -F "is_previous=false" -F "disable_survey_buttons_on_submit=" 'https://it.surveymonkey.com/r/LYCK7TZ' | grep -E "(thanks-message|error-id)" | cut -d ">" -f 2 | cut -d '<' -f 1
  12. rm $tempfile $cookie_jar