Skip to content

Instantly share code, notes, and snippets.

@d0nk
Created January 10, 2021 14:16
Show Gist options
  • Star 32 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save d0nk/7251444a195dbb60ab9cc69987070e21 to your computer and use it in GitHub Desktop.
Save d0nk/7251444a195dbb60ab9cc69987070e21 to your computer and use it in GitHub Desktop.
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())
@revanthpobala
Copy link

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?

@wes2n
Copy link

wes2n commented Jan 12, 2021

I'm pretty new to coding, how would I run this?

@coldfusion167
Copy link

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