blob: 6bc3b9850e78e602306c2ff81e77d4c4b7fd3a9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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))
|