megadose / holehe

holehe allows you to check if the mail is used on different sites like twitter, instagram and will retrieve information on sites with the forgotten password function.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error trying to execute 'holehe' command

das-peterj opened this issue · comments

Note that "Name" was added by me to not reveal my real name. My name contains swedish letters "ÅÄÖ" so I added the following code to holehe-script.py " # -- coding: utf-8 -- " because it didn't like my swedish letters.

C: \Users\Name> holehe test@gmail.com
Twitter : @palenath
Github : https://github.com/megadose/holehe
For BTC Donations: 1FHDM49QfZX6pJmhjLE5tB2K6CaTLMZpXZ
Error in sys.excepthook:
Traceback(most recent call last):
File "C:\Users\Name\AppData\Local\Programs\Python\Python37-32\lib\linecache.py", line 47, in getlines
return updatecache(filename, module_globals)
File "C:\Users\Name\AppData\Local\Programs\Python\Python37-32\lib\linecache.py", line 137, in updatecache
lines = fp.readlines()
File "C:\Users\Name\AppData\Local\Programs\Python\Python37-32\lib\codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf6 in position 46: invalid start byte

Original exception was:
Traceback(most recent call last):
File "C:\Users\Name\AppData\Local\Programs\Python\Python37-32\Scripts\holehe-script.py", line 13, in < module >
File "C:\Users\Name\AppData\Local\Programs\Python\Python37-32\lib\site-packages\holehe\core.py", line 226, in main
trio.run(maincore)
File "C:\Users\Name\AppData\Local\Programs\Python\Python37-32\lib\site-packages\trio_core_run.py", line 2010, in run
raise runner.main_task_outcome.error
File "C:\Users\Name\AppData\Local\Programs\Python\Python37-32\lib\site-packages\holehe\core.py", line 199, in maincore
modules = import_submodules("holehe.modules")
File "C:\Users\Name\AppData\Local\Programs\Python\Python37-32\lib\site-packages\holehe\core.py", line 46, in import_submodules
results.update(import_submodules(full_name))
File "C:\Users\Name\AppData\Local\Programs\Python\Python37-32\lib\site-packages\holehe\core.py", line 44, in import_submodules
results[full_name] = importlib.import_module(full_name)
File "C:\Users\Name\AppData\Local\Programs\Python\Python37-32\lib\importlib_init_.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 724, in exec_module
File "", line 860, in get_code
File "", line 791, in source_to_code
File "", line 219, in _call_with_frames_removed
File "C:\Users\Name\AppData\Local\Programs\Python\Python37-32\lib\site-packages\holehe\modules\products\samsung.py", line 90
if found := re.search(phone_number_pattern, req.text):
^SyntaxError: invalid syntax

commented

Worked for me when replacing := with == in samsung.py, didn't have the energy to try understanding the := operator 😊

Worked for me when replacing := with == in samsung.py, didn't have the energy to try understanding the := operator 😊

Ty so much! This worked for me