Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- target = input('Enter User : ')
- headers = {
- "accept": "*/*",
- "accept-language": "en-US,en;q=0.9",
- "content-type": "application/x-www-form-urlencoded;charset=UTF-8",
- "google-accounts-xsrf": "1",
- "sec-ch-ua": "\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"90\", \"Google Chrome\";v=\"90\"",
- "sec-ch-ua-mobile": "?0",
- "sec-fetch-dest": "empty",
- "sec-fetch-mode": "cors",
- "sec-fetch-site": "same-origin",
- "x-chrome-id-consistency-request": "version=1,client_id=77185425430.apps.googleusercontent.com,device_id=85d9b9de-8d8c-42d5-a230-114dfd0e03d7,signin_mode=all_accounts,signout_mode=show_confirmation",
- "x-client-data": "CI+2yQEIprbJAQjDtskBCKmdygEIlqzKAQj4x8oBCPPiygEI5JzLAQipncsBCKGgywEY4JrLAQ==",
- "x-same-domain": "1"
- }
- data = {
- 'continue': 'https://mail.google.com/mail/',
- 'service': 'mail',
- 'f.req': f'["AEThLlwpg-MSq-4onCDwsS7uDtxlVJrUM0fnZwIdRDjM4hEhh7rRsaLWWBp1cqZ36spL9YviRAWM9GZrJ2mdAzl3PdD3y6mw-daPzF2eaXcF4GC2WsFahJ_2HzpdvZcxuIlkdxWpz3oeRpf8vw5IMeT1888SdU2brjmjHeuMVZ9oauLb5Fe283fp2n8VLHpngXQp-U-6SKD1khyJ737Z7tWa8yCqgInM1A","","","{target}",true]',
- 'azt': 'AFoagUV6dXSLvVNdNI9waK6BjPq30IqBfw:1619144219438',
- 'cookiesDisabled': 'false',
- 'deviceinfo': '[null,null,null,[],null,"US",null,null,null,"GlifWebSignIn",null,[null,null,[],null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,[5,"77185425430.apps.googleusercontent.com",["https://www.google.com/accounts/OAuthLogin"],null,null,"85d9b9de-8d8c-42d5-a230-114dfd0e03d7",null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,5,null,null,[],null,null,null,[],[]],null,null,null,null,null,null,[],null,null,null,[],[]],null,null,null,null,0,null,false,null,""]',
- 'gmscoreversion': 'undefined'
- }
- url = 'https://accounts.google.com/_/signup/webusernameavailability?hl=en&_reqid=8262&rt=j'
- req = requests.post(url , data=data, headers=headers).text
- if ('gf.wuar",2') in req:
- print('The Username is not Available')
- elif ('gf.wuar",3') in req:
- print('Sorry, your username must be between 6 and 30 characters long.')
- elif ('gf.wuar",1') in req:
- print('The Username is Available')
Add Comment
Please, Sign In to add comment