martinvigo / email2phonenumber

A OSINT tool to obtain a target's phone number just by having his email address

Home Page:https://www.martinvigo.com/email2phonenumber

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AttributeError: 'filter' object has no attribute 'split'

n0721059 opened this issue · comments

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:]})

resolved?

Please attach the file that contains the proxy list to look at the format.

Also remember that this tool is just a PoC. I've published a new one. Check https://www.martinvigo.com/phonerator-an-advanced-valid-phone-number-generator/