wena choroyes, les dejo por acá una api que hice en su momento para postear flood en bandada, en una desas alguien por acá le saca raspe y le da uso.
Es una prueba de concepto, mi idea era portarla a kotlin y meterla en alguno de los proyectos que tengo corriendo en play store, así miles de usuarios pudieran hacerle flood diario a bandada y sacarle chispas a los users jajaja.
from json import loads
from requests import get, post
from random import randrange
from time import sleep, time
class Bandada:
def
init(self):
self.url = "
https://bandada.club"
self.userAgent = ''
self.charset = '0123456789abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVWXYZ'
self.waitTime = 100
def generatePassword(self, length=9):
Generate random password
return ''.join([self.charset[randrange(0, 63)] for i in range(length)])
def newThread(self, boardUri, message, name=
, subject=, postOpts=0, threadId=None):
Post new thread
# boundary = '-'*20 + str(time()).replace('.', '')
h = {
# 'Content-Type': 'multipart/form-data; boundary=' + boundary,
'Host': 'bandada.club',
'Origin': '
https://bandada.club',
'Referer': '
https://bandada.club/',
'Sec-Fetch-Dest': 'empty',
'Sec-Fetch-Mode': 'cors',
'Sec-Fetch-Site': 'same-origin',
'User-Agent': self.userAgent
}
url = f"{self.url}/newThread.js?json=1"
payload = {
'boardUri': boardUri,
'message': message,
'name': name,
'password': self.generatePassword(),
'postOpts': postOpts,
'subject': subject
}
if not threadId is None:
payload['threadId'] = threadId
with post(url, headers=h, data=payload) as r:
if r.status_code == 200:
result = loads(r.text)
if result['status'] == 'ok':
return result['data']
elif result['status'] == 'error':
return result['data']
else:
return False
else:
return False
def requestBlockUnlock(self):
Request By Pass Block unlock
boundary = '-'*20 + str(time()).replace('.', '')
h = {
'Content-Type': 'multipart/form-data; boundary=' + boundary,
'Host': 'bandada.club',
'Origin': '
https://bandada.club',
'Referer': '
https://bandada.club/',
'Sec-Fetch-Dest': 'empty',
'Sec-Fetch-Mode': 'cors',
'Sec-Fetch-Site': 'same-origin',
'User-Agent': self.userAgent
}
url = f"{self.url}/blockBypass.js?json=1"
with post(url, headers=h) as r:
return r.status_code
200 and loads(r.text)['status'] 'ok'
def wait(self):
Wait time until post new thread
sleep(self.waitTime)
b = Bandada()
print(b.requestBlockUnlock())
result = b.newThread('test', 'test2')
print(result)