Skip to content

Instantly share code, notes, and snippets.

@grimd34th
Last active November 1, 2016 22:15
Show Gist options
  • Save grimd34th/e05d035f9da90b751715bb67ba33ea81 to your computer and use it in GitHub Desktop.
Save grimd34th/e05d035f9da90b751715bb67ba33ea81 to your computer and use it in GitHub Desktop.
import time
import urllib2
import json
import Queue, threading
def request():
req = urllib2.Request('https://lumerico.mx/api/')
req.add_header('Content-Type', 'application/json')
req.add_header('Cookie', 'lumerico=eyJpZCI6IjM1ZjE3N2I0LTkxNzgtNDdjMC1iMjUyLWU2ZDE5YjEzZmI1MSIsImF1dGhlbnRpY2F0ZWQiOnRydWUsInVzZXIiOnsidXNlcm5hbWUiOiJNSmltZW5leiIsInJvbGUiOiJhZG1pbiJ9LCJzdGVwIjo0LCJ1bmxvY2tlZCI6MX0=; lumerico.sig=SbPPOv_-NfOF1LK7NbHKfj2DZKo')
response = urllib2.urlopen(req, '{"method":"exec","step":4,"message":"Activation Code: ","params":["U2FsdGVkX1+vupppZksvRf5pq5g5XjFRIipRkwB0K1Y96Qsv2Lm+31cmzaAILwytX/z66ZVWEQM/ccf1g+9m5Ubu1+sit+A9cenDxxqkIaxbm4cMeh2oKhqIHhdaBKOi6XX2XDWpa6+P5o9MQw=="]}')
content = json.loads(response.read())
print content['result']['count']
q = Queue.Queue()
while True:
t = threading.Thread(target=request)
time.sleep(0.2)
t.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment