From 57bee8b0adede77d8e20abb01b2d062ea5d74352 Mon Sep 17 00:00:00 2001 From: Brett Weiland Date: Sun, 1 Nov 2020 19:46:22 -0600 Subject: new file: halloween.py --- halloween.py | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100755 halloween.py diff --git a/halloween.py b/halloween.py new file mode 100755 index 0000000..6bc3b98 --- /dev/null +++ b/halloween.py @@ -0,0 +1,43 @@ +#!/usr/bin/env python3 +import requests +from time import sleep +from os import fork + +treats=0 + +for x in range(10): + pid = fork() + if pid: + break + +while True: + rs = requests.session() + rp = rs.post('https://recolor.me/login?json', data = {'action':'login', 'account_name':'testingaccount1', 'account_password':'1234'}) + + if not rp.json()['account_id']: + print("wrong login info!") + exit(1) + + rp = rs.get('https://recolor.me/') + key_pos = rp.text.find("site.my_key = \'") + len("site.my_key = ") + key = rp.text[key_pos:key_pos+32] + + + + #time to trick the fuck out of treat + + + rs.post('https://recolor.me/topic/1240271', data={ + 'key':key, + 'page':'topic', + 'action':'reply', + 'topic_id':'1240271', + 'reply_message':'Trick or Treat' + }) + + #while True: + #treats += 1 + #print("Trick or treats: {}".format(treats)) + #print("Money accumulated: {}".format(treats * 10)) + + -- cgit v1.2.3