summaryrefslogtreecommitdiff
path: root/halloween.py
diff options
context:
space:
mode:
Diffstat (limited to 'halloween.py')
-rwxr-xr-xhalloween.py43
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))
+
+