Python script to check for the existence of an email on Google platforms
by Loki - Monday July 29, 2024 at 05:31 PM
#1
Usage: python3 ./<script_name>.py email1 email2 ...

import sys import requests # Disable all warnings from urllib3 requests.packages.urllib3.disable_warnings() def verify_email(email):     """Verify the given email address."""     # Replace *** in the URL with the email address     url = f"https://calendar.google.com/calendar/ical/{email}/public/basic.ics"     try:         # Make an HTTP call to the URL without SSL certificate verification         response = requests.get(url, verify=False)         # Check the response headers for the presence of the "x-frame-options: SAMEORIGIN" string         if 'x-frame-options' in response.headers and response.headers['x-frame-options'].upper() == 'SAMEORIGIN':             # Append an asterisk if the HTTP response code is 200             asterisk = " *" if response.status_code == 200 else ""             print(f"{email}{asterisk}")         # If the header is not present, nothing is printed     except requests.exceptions.RequestException as e:         print(f"An error occurred with {email}: {e}") def main():     if len(sys.argv) > 1:         # If there are command-line arguments, verify each email address         for email in sys.argv[1:]:             verify_email(email.strip())     else:         # Otherwise, read from sys.stdin         for line in sys.stdin:             email = line.strip()             verify_email(email) if __name__ == "__main__":     main()


Omnicer
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Find Info On Google Accounts wallahi 263 67,605 Today, 09:45 AM
Last Post: screwdrivver
  I have created Google Dorks for Discovering Darknet Forums (Country-Specific) Boat 331 6,408 02-10-2026, 04:40 AM
Last Post: chutkadiwana
  Top 40 Google Dorks for Databases, Webcams, Vulnerabilities, and More! 0x667sec 324 18,742 02-09-2026, 02:36 AM
Last Post: fkng_b34rr
  BOT Search for anything email, passwords, phone, IP, full name... Dionysus 139 6,156 02-04-2026, 09:41 AM
Last Post: tonkadonkatoto
  2026 Updated List of Free OSINT Tools for Email/Phone/Username Searches madkillahs 3 212 01-31-2026, 06:52 AM
Last Post: dray777



 Users browsing this thread: