Skip to content
This repository has been archived by the owner on Apr 11, 2021. It is now read-only.

Error Attempting to screenshot #61

Closed
tanujjane opened this issue Nov 21, 2019 · 4 comments · Fixed by #63
Closed

Error Attempting to screenshot #61

tanujjane opened this issue Nov 21, 2019 · 4 comments · Fixed by #63

Comments

@tanujjane
Copy link

Attempting to screenshot https://.example.com
Process Process-5:
Traceback (most recent call last):
File "/usr/lib/python3.7/encodings/idna.py", line 165, in encode
raise UnicodeError("label empty or too long")
UnicodeError: label empty or too long

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "/home/ec2-user/domained/bin/EyeWitness/EyeWitness.py", line 303, in worker_thread
http_object.resolved = resolve_host(http_object.remote_system)
File "/home/ec2-user/domained/bin/EyeWitness/modules/helpers.py", line 293, in resolve_host
resolved = socket.gethostbyname(system)
UnicodeError: encoding with 'idna' codec failed (UnicodeError: label empty or too long)
Finished in 8636.717457056046 seconds

Traceback (most recent call last):
File "domained.py", line 463, in
options()
File "domained.py", line 442, in options
colored("\nAll your subdomain are belong to us", colorama.Fore.BLUE)
NameError: name 'colored' is not defined

@tanujjane
Copy link
Author

@mzfr Please help

ccsplit added a commit to ccsplit/domained that referenced this issue Nov 22, 2019
The last line of the main function uses `colored`,
however, it was never imported causing an issue.
Resolves TypeError#61.
@tanujjane
Copy link
Author

Why getting this error?

Attempting to screenshot https://.example.com
Process Process-5:
Traceback (most recent call last):
File "/usr/lib/python3.7/encodings/idna.py", line 165, in encode
raise UnicodeError("label empty or too long")
UnicodeError: label empty or too long

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "/home/ec2-user/domained/bin/EyeWitness/EyeWitness.py", line 303, in worker_thread
http_object.resolved = resolve_host(http_object.remote_system)
File "/home/ec2-user/domained/bin/EyeWitness/modules/helpers.py", line 293, in resolve_host
resolved = socket.gethostbyname(system)
UnicodeError: encoding with 'idna' codec failed (UnicodeError: label empty or too long)
Finished in 8636.717457056046 seconds

@ccsplit
Copy link
Contributor

ccsplit commented Nov 25, 2019

It's possibly because it is an invalid domain .example.com, however, it also appears to be an issue within EyeWitness caused internally within socket.gethostbyname because the subdomain portion is not available (<this portion>.example.com).

@tanujjane
Copy link
Author

@ccsplit Yes, you are right this .example.com is an invalid domain and getting this error for all domains. But how to resolve this issue?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants