/parler_account_gen.py Secret
Created
January 10, 2021 14:16
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyperclip | |
import requests | |
import re | |
import sys | |
import uuid | |
import json | |
def fakeid(): | |
fakeid = requests.get("http://randomuser.me/api/").json()['results'][0] | |
return { | |
'email': fakeid['email'].replace('example.com', 'gmail.com'), | |
'phone': re.sub('[^0-9]', '', fakeid['cell']), | |
'password': "@A" + fakeid['login']['salt'] | |
} | |
def copy_captcha_to_clipboard(captcha): | |
# you can open what's copied to clipboard here in a web browser | |
# this is the least creative way i could come up with displaying/solving these ;) | |
pyperclip.copy(captcha) | |
def create_parler_account(user): | |
session = requests.Session() | |
session.headers['User-Agent'] = 'Parler%20Staging/545 CFNetwork/978.0.7 Darwin 18.7.0' | |
user_key = session.post('https://api.parler.com/v2/login/apply', data={ | |
'email': user['email'], | |
'phone': user['phone'], | |
'password': user['password'], | |
'passwordConfirm' :user['password'], | |
'deviceId': uuid.uuid4() | |
}).json()['key'] | |
captcha = 'data:image/png;base64,' + session.post('https://api.parler.com/v2/login/captcha/new', data={ | |
'identifier': user_key | |
}).json()['image'] | |
sys.stderr.write("Captcha: ") | |
copy_captcha_to_clipboard(captcha) | |
session.post('https://api.parler.com/v2/login/captcha/submit', data={ | |
'identifier': user_key, | |
'solution': input().strip() | |
}).json() | |
user['mst'] = session.cookies['mst'] | |
user['jst'] = session.cookies['jst'] | |
print(json.dumps(user)) | |
while True: | |
create_parler_account(fakeid()) |
I'm pretty new to coding, how would I run this?
How are you bypassing the captcha? I see this code
pyperclip.copy(captcha)
but, are you going through it manually? Say, for example, the captcha reads as h5abc. That is not machine-readable right?
DUE TO TWILIO CUTTING SERVICES WITH PARLER, THERE IS NO PHONE VERIFICATION OR 2FA ACTIVE.
You were able to enter random digits and register. I belive they were using a trial version and the company cut the service.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How are you bypassing the captcha? I see this code
pyperclip.copy(captcha)
but, are you going through it manually? Say, for example, the captcha reads as h5abc. That is not machine-readable right?