Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Name or service not known #8

Open
Dheeraj1420 opened this issue Apr 13, 2019 · 3 comments
Open

Name or service not known #8

Dheeraj1420 opened this issue Apr 13, 2019 · 3 comments

Comments

@Dheeraj1420
Copy link

Dheeraj1420 commented Apr 13, 2019

./cmsmap.py http://gevpgkrb.ac.in
[-] Date & Time: 13/04/2019 20:23:16
Traceback (most recent call last):
File "/root/Desktop/CMSmap/cmsmap/main.py", line 168, in main
addr = socket.gethostbyname(urlparse(args.target).hostname)
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./cmsmap.py", line 25, in
main()
File "/root/Desktop/CMSmap/cmsmap/main.py", line 180, in main
msg = "Unable to resolve: " + scanner.url
TypeError: must be str, not NoneType

@Dheeraj1420
Copy link
Author

help plz

@Dheeraj1420
Copy link
Author

Thank you

@DavidBruchmann
Copy link

DavidBruchmann commented Apr 25, 2020

The imported socket library seems returning often unexpected values, therefore the script stops in most cases.
So either a proper handling of the returned types has to be included or perhaps the version of socket changed.
But it seems socket is often not only returning "unexpected" but also unreasonable values - in other words wrong values, so it might be considerable to replace it completely if another version never returns better results. A reason for wrong return-values could be that parameters are used wrong, that should be checked before planning further steps.

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

No branches or pull requests

2 participants