Skip to content

Instantly share code, notes, and snippets.

@scaery
Created December 3, 2019 01:16
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 scaery/10e8771e6708cde1972b18d737aca979 to your computer and use it in GitHub Desktop.
Save scaery/10e8771e6708cde1972b18d737aca979 to your computer and use it in GitHub Desktop.
Antimenti Counter [VIP 2019] by scaery
#!/usr/bin/env python
"""Antimenti Counter [VIP 2019] by scaery"""
import requests
import json
referer = "https://www.menti.com/ccc99fghnbvc1337" # what u see in the url bar of presentation
data = {"question_type": "choices", "vote": "1"} # multiple_choice payload yes no maybe
counter = "10" # How often do you wish to count for? 10 25 50 or 100
def identify():
r = requests.post('https://www.menti.com/core/identifier', data='{}', allow_redirects=True).json()
json_str = json.dumps(r)
resp = json.loads(json_str)
value = (resp['identifier'])
return value
def run():
post = "https://www.menti.com/core/votes/<read or grep me>" # grep from public key sourcecode
headers = {'Content-type': 'application/json', "Referer": referer, 'X-Identifier': identify()}
p = requests.post(post, data=json.dumps(data), headers=headers)
for x in range(int(counter)):
identify()
run()
print "[+] Finished voting!"
# Todo
# automatically apply referer, post and data from URL with access code xx yy zz
# add multiprocessing, threading or asyncio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment