Email2PhoneNumber: Obtain Phone Number via Email Address

Introduction

An open-source intelligence (OSINT) tool called Email2PhoneNumber enables you to discover a target’s phone number simply by knowing his email address.

Basic usage information

By exploiting the password reset email design flaws and publicly available data, this crude tool assists in automating finding someone’s phone number. It supports 3 primary functions:

  • “scrape” — scrapes websites for phone number digits by initiating password reset using the target’s email address
  • “generate” — creates a list of valid phone numbers based on the country’s Phone Numbering Plan and publicly available information
  • “Bruteforce” — iterates over a list of phone numbers and initiates password resets on different websites to obtain associated masked emails and correlate them to the victim’s one.

Requirements

  • Python 3.x
  • 3rd party libraries installed (BeautifulSoup and requests). Download using pip

pip3 install beautifulsoup4 requests

Once the 3rd party libraries are installed, download the script via git clone

git clone https://github.com/martinvigo/email2phonenumber

Usage

Help section

  • To access the help section of the Python script, run the following command if you are a beginner.

python3 email2phonenumber.py -h

Scrape websites for phone number digits

  • Run the installed Python script and enter the target’s email address after that

python3 email2phonenumber.py scrape -e target@email.com

  • Create a phone number dictionary using a phone number mask.

python3 email2phonenumber.py generate -m 555XXX1234 -o /tmp/dic.txt

Find the target’s phone number by changing passwords on websites that do not notify the target while using a phone number mask and proxies to get around captchas and other abuse protections.

python3 email2phonenumber.py bruteforce -m 555XXX1234 -e target@email.com -p /tmp/proxies.txt -q

Aman Mishra

Aman Mishra is a eJPT certified and always keen to learn new concepts and methodologies regarding cybersecurity.he is also a cyber security content writer and have passion for sharing my knowledge about the latest threads and trends in the industry.

Recent Posts

Bash Scripting Best Practices Every Beginner Should Know

Introduction Bash scripting is a powerful way to automate Linux tasks, but writing a script…

1 day ago

How To Create A Self-Signed SSL Certificate Using Bash And OpenSSL

Introduction A self-signed SSL certificate is a certificate that is created and signed by the…

1 day ago

How To Debug Bash Scripts Using bash -x And set Commands

Introduction Debugging is an important part of Bash scripting. When a script does not work…

2 days ago

How To Use Cron Jobs With Bash Scripts For Automation

Introduction Cron jobs are used in Linux to run commands or Bash scripts automatically at…

2 days ago

How To Use Pipes In Bash Scripts For Command Chaining

Introduction Pipes are an important feature in Linux and Bash scripting. A pipe allows you…

2 days ago

How To Use grep, awk, And sed In Bash Scripts

Introduction The grep, awk, and sed commands are powerful text-processing tools in Linux. They are…

2 days ago