diff options
author | Brett Weiland <techcrazybsw@gmail.com> | 2020-11-01 19:46:22 -0600 |
---|---|---|
committer | Brett Weiland <techcrazybsw@gmail.com> | 2020-11-01 19:46:22 -0600 |
commit | 57bee8b0adede77d8e20abb01b2d062ea5d74352 (patch) | |
tree | a40b32b80a09d6b783611984c35afbc2c0afcf05 |
new file: halloween.py
-rwxr-xr-x | halloween.py | 43 |
1 files changed, 43 insertions, 0 deletions
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)) + + |