martinvigo / email2phonenumber Goto Github PK
View Code? Open in Web Editor NEWA OSINT tool to obtain a target's phone number just by having his email address
Home Page: https://www.martinvigo.com/email2phonenumber
License: MIT License
A OSINT tool to obtain a target's phone number just by having his email address
Home Page: https://www.martinvigo.com/email2phonenumber
License: MIT License
I have been fooling with this for 6 hours and I'm DONE!!! So exhausting and confusing. First of all, the directions were absolutely TERRIBLE AND THE YOUTUBE VIDEOS DID NOT HELP AT ALL!!!!
When I FINALLY got to run the scrape, I get the error message "Failed to resolve 'fyp.ebay.com' ([Errno 11001]" something is going on with ebay to where it won't even run anything else. I am so defeated. Just take this crap down at this point, jesus christ...unless someone knows how ti fix it.
when i try ./email2phonenumber scrap -e MY_EMAIL i get this error
/usr/local/lib/python2.7/dist-packages/bs4/element.py:16: UserWarning: The soupsieve package is not installed. CSS selectors cannot be used.
'The soupsieve package is not installed. CSS selectors cannot be used.'
Traceback (most recent call last):
File "./email2phonenumber.py", line 12, in
from bs4 import BeautifulSoup
File "/usr/local/lib/python2.7/dist-packages/bs4/init.py", line 34, in
from .builder import builder_registry, ParserRejectedMarkup
File "/usr/local/lib/python2.7/dist-packages/bs4/builder/init.py", line 7, in
from bs4.element import (
File "/usr/local/lib/python2.7/dist-packages/bs4/element.py", line 19, in
from bs4.formatter import (
File "/usr/local/lib/python2.7/dist-packages/bs4/formatter.py", line 1, in
from bs4.dammit import EntitySubstitution
File "/usr/local/lib/python2.7/dist-packages/bs4/dammit.py", line 52, in
class EntitySubstitution(object):
File "/usr/local/lib/python2.7/dist-packages/bs4/dammit.py", line 82, in EntitySubstitution
CHARACTER_TO_HTML_ENTITY_RE) = _populate_class_variables()
File "/usr/local/lib/python2.7/dist-packages/bs4/dammit.py", line 68, in _populate_class_variables
character = chr(codepoint)
ValueError: chr() arg not in range(256)
and when i try python3 emial2phonenumber.py i get this error
usage: email2phonenumber.py [-h] {scrape,generate,bruteforce} ...
email2phonenumber.py: error: invalid choice: 'scrap' (choose from 'scrape', 'generate', 'bruteforce')
I read the code and i was wondering has anyone used this recently?
Lastpass has a captcha: https://lastpass.com/recover.php
eBay no longer included phone numbers in password reset messages.
Although this maybe obvious to some, just wanted to let users know.
Here what i think ... the most of the people have two social media accounts or more
Example it will mostly be fb and ig
While fb provides to reset using phone or email .. ig just sents a link to email without showing any options it show up the reset link has been sent to T******@test.com
For 5 sec maybe .. we just now have the last two numbers from fb and nothing else.
So i don't know why but i think services like truecaller would make the brute forcing somewhat easier . .
the thing doesnt work at all for 313 area code numbers
mi ritrovo con questo problema ma non o capito il problema e nenche come posso risolverlo grazie.
Traceback (ultima chiamata più recente):
File "email2phonenumber.py", riga 20, in request.packages.urllib3.disable_warnings
()
AttributeError: il modulo 'requests.packages.urllib3' non ha attributo "disable_warnings"
Starting scraping online services...
Scraping Ebay...
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 169, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 73, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 700, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 383, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 1017, in _validate_conn
conn.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 353, in connect
conn = self._new_conn()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f06749c7760>: Failed to establish a new connection: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 756, in urlopen
retries = retries.increment(
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 574, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='fyp.ebay.com', port=443): Max retries exceeded with url: /EnterUserInfo?ru=https%3A%2F%2Fwww.ebay.com%2F&gchru=&clientapptype=19&rmvhdr=false (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f06749c7760>: Failed to establish a new connection: [Errno -2] Name or service not known'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/bashinho/GIT/email2phonenumber/email2phonenumber.py", line 1019, in
start_scrapping(args.email, args.quiet)
File "/home/bashinho/GIT/email2phonenumber/email2phonenumber.py", line 538, in start_scrapping
scrape_ebay(email)
File "/home/bashinho/GIT/email2phonenumber/email2phonenumber.py", line 625, in scrape_ebay
response = session.get(
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 557, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 544, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 657, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='fyp.ebay.com', port=443): Max retries exceeded with url: /EnterUserInfo?ru=https%3A%2F%2Fwww.ebay.com%2F&gchru=&clientapptype=19&rmvhdr=false (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f06749c7760>: Failed to establish a new connection: [Errno -2] Name or service not known'))
Email Hacks
Can you add a function to add e-mail txt file for testing or output result?
Hi, I think you should install BeautifulSoup4 instead of BeautifulSoup.
pip install BeautifulSoup4 requests
should therefore be specified in the docs.
File "email2phonenumber.py", line 1018, in
set_proxy_list()
File "email2phonenumber.py", line 961, in set_proxy_list
proxy_list_not_formatted = file_content.split("\n")
AttributeError: 'filter' object has no attribute 'split'
def set_proxy_list():
global proxyList
proxy_file = open(args.proxies, "r")
if not proxy_file.mode == 'r':
proxy_file.close()
logger.error("%sCould not read file %s %s", RED, args.proxies, ENDC)
file_content = proxy_file.read()
file_content = filter(None, file_content)
# Remove last \n if needed
proxy_list_not_formatted = file_content.split("\n")
proxy_file.close()
for proxy_not_formatted in proxy_list_not_formatted:
separator_position = proxy_not_formatted.find("://")
proxyList.append(
{proxy_not_formatted[:separator_position]: proxy_not_formatted[separator_position+3:]})
When I run python3 email2phonenumber.py scrape -e [email protected]
the script yields the following error:
Starting scraping online services...
Scraping Ebay...
Traceback (most recent call last):
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/home/osint/.pyenv/versions/3.9.0/lib/python3.9/socket.py", line 953, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/urllib3/connection.py", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3fcc60ac0>: Failed to establish a new connection: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/urllib3/connectionpool.py", line 787, in urlopen
retries = retries.increment(
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='fyp.ebay.com', port=443): Max retries exceeded with url: /EnterUserInfo?ru=https%3A%2F%2Fwww.ebay.com%2F&gchru=&clientapptype=19&rmvhdr=false (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3fcc60ac0>: Failed to establish a new connection: [Errno -2] Name or service not known'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumber/email2phonenumber.py", line 1019, in
start_scrapping(args.email, args.quiet)
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumber/email2phonenumber.py", line 538, in start_scrapping
scrape_ebay(email)
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumber/email2phonenumber.py", line 625, in scrape_ebay
response = session.get(
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/requests/sessions.py", line 600, in get
return self.request("GET", url, **kwargs)
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/home/osint/Programas/email2phonenumberEnvironment/email2phonenumberEnvironment/lib/python3.9/site-packages/requests/adapters.py", line 565, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='fyp.ebay.com', port=443): Max retries exceeded with url: /EnterUserInfo?ru=https%3A%2F%2Fwww.ebay.com%2F&gchru=&clientapptype=19&rmvhdr=false (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3fcc60ac0>: Failed to establish a new connection: [Errno -2] Name or service not known'))
Hi,bruteforce doesnt work,it's possible do the same with other tools?
Failed to establish a new connection
Hi, thanks for sharing this with us....
I think I see none of the "print" using "()", which prompts errors on our end,
Also, after adding all parentheses ..still seeing the line 532 error...
else:
SyntaxError: invalid Syntax
Using python 3.6, 3.7, running into same errors.
Not sure what your logic is, but I bet the nested if is the problem...
Thanks again
What am I doing wrong? like any fix for this?
I got no clue but my log is
Traceback (most recent call last):
File "email2phonenumber.py", line 1070, in
set_proxy_list()
File "email2phonenumber.py", line 961, in set_proxy_list
proxy_list_not_formatted = file_content.split("\n")
AttributeError: 'filter' object has no attribute 'split'
Hello Martin . I can see you making your script better . So i have an idea that can help .
There is a lot of social networks phone apps that allow to find friends by importing numbers from phone . Like telegram , instagram , vk and others . I think it can be usefull to bruteforce the hidden digits of the phone numbers .
Instagram mgp25 library with linkAddressBook api could be usefull . In telegram there are InputPhoneContact/ImportContactsRequest apis in teleton lib. Of cource some limits and problems
could be expected but I think this method has a great potential .
i try it many times but still get this error
Starting scraping online services...
Scraping Ebay...
Ebay did not report any digits
Scraping Lastpass...
Lastpass did not report any digits
Scraping Paypal...
Paypal did not report any digits
is it normal or what ?
Tried to brute force an american number, script downloaded the NANPA files, then said
"Using Amazon to find the victim's phone number..."
and then it errors with a giant error that begins with this:
Unknown error:
<!doctype html><!--[if IE 8]><html data-19ax5a9jf="dingo" class="a-no-js a-lt-ie10 a-lt-ie9 a-ie8"><![endif]--><!--[if IE 9]><html data-19ax5a9jf="dingo" class="a-no-js a-lt-ie10 a-ie9"><![endif]--><!--[if !(IE 8)&!(IE 9)]><!--><html data-19ax5a9jf="dingo" class="a-no-js"><!--<![endif]-->
<head>
<script type='text/javascript'>var ue_t0=ue_t0||+new Date();</script>
<script type='text/javascript'>
window.ue_ihb = (window.ue_ihb || window.ueinit || 0) + 1;
if (window.ue_ihb === 1) {
var ue_csm = window,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.