{"action":"created","issue":{"url":"https://api.github.com/repos/m0rtem/CloudFail/issues/5","repository_url":"https://api.github.com/repos/m0rtem/CloudFail","labels_url":"https://api.github.com/repos/m0rtem/CloudFail/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/m0rtem/CloudFail/issues/5/comments","events_url":"https://api.github.com/repos/m0rtem/CloudFail/issues/5/events","html_url":"https://github.com/m0rtem/CloudFail/issues/5","id":237441451,"number":5,"title":"UnicodeError: label empty or too long","user":{"login":"basst85","id":6396615,"avatar_url":"https://avatars3.githubusercontent.com/u/6396615?v=3","gravatar_id":"","url":"https://api.github.com/users/basst85","html_url":"https://github.com/basst85","followers_url":"https://api.github.com/users/basst85/followers","following_url":"https://api.github.com/users/basst85/following{/other_user}","gists_url":"https://api.github.com/users/basst85/gists{/gist_id}","starred_url":"https://api.github.com/users/basst85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basst85/subscriptions","organizations_url":"https://api.github.com/users/basst85/orgs","repos_url":"https://api.github.com/users/basst85/repos","events_url":"https://api.github.com/users/basst85/events{/privacy}","received_events_url":"https://api.github.com/users/basst85/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-06-21T07:38:35Z","updated_at":"2017-06-22T00:00:00Z","closed_at":null,"body":"I'm getting this error:\r\n\r\n```\r\n/lib/python3.6/encodings/idna.py\", line 165, in encode\r\n    raise UnicodeError(\"label empty or too long\")\r\nUnicodeError: label empty or too long\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTraceback (most recent call last):\r\n  File \"cloudfail.py\", line 266, in <module>\r\n    subdomain_scan(args.target)\r\n  File \"cloudfail.py\", line 167, in subdomain_scan\r\n    target_http = requests.get(\"http://\"+subdomain)\r\n  File \"/tmp/env/lib/python3.6/site-packages/requests/api.py\", line 72, in get\r\n    return request('get', url, params=params, **kwargs)\r\n  File \"/tmp/env/lib/python3.6/site-packages/requests/api.py\", line 58, in request\r\n    return session.request(method=method, url=url, **kwargs)\r\n  File \"/tmp/env/lib/python3.6/site-packages/requests/sessions.py\", line 502, in request\r\n    resp = self.send(prep, **send_kwargs)\r\n  File \"/tmp/env/lib/python3.6/site-packages/requests/sessions.py\", line 612, in send\r\n    r = adapter.send(request, **kwargs)\r\n  File \"/tmp/env/lib/python3.6/site-packages/requests/adapters.py\", line 440, in send\r\n    timeout=timeout\r\n  File \"/tmp/env/lib/python3.6/site-packages/urllib3/connectionpool.py\", line 600, in urlopen\r\n    chunked=chunked)\r\n  File \"/tmp/env/lib/python3.6/site-packages/urllib3/connectionpool.py\", line 356, in _make_request\r\n    conn.request(method, url, **httplib_request_kw)\r\n  File \"/usr/lib/python3.6/http/client.py\", line 1239, in request\r\n    self._send_request(method, url, body, headers, encode_chunked)\r\n  File \"/usr/lib/python3.6/http/client.py\", line 1285, in _send_request\r\n    self.endheaders(body, encode_chunked=encode_chunked)\r\n  File \"/usr/lib/python3.6/http/client.py\", line 1234, in endheaders\r\n    self._send_output(message_body, encode_chunked=encode_chunked)\r\n  File \"/usr/lib/python3.6/http/client.py\", line 1026, in _send_output\r\n    self.send(msg)\r\n  File \"/usr/lib/python3.6/http/client.py\", line 964, in send\r\n    self.connect()\r\n  File \"/tmp/env/lib/python3.6/site-packages/urllib3/connection.py\", line 166, in connect\r\n    conn = self._new_conn()\r\n  File \"/tmp/env/lib/python3.6/site-packages/urllib3/connection.py\", line 141, in _new_conn\r\n    (self.host, self.port), self.timeout, **extra_kw)\r\n  File \"/tmp/env/lib/python3.6/site-packages/urllib3/util/connection.py\", line 60, in create_connection\r\n    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):\r\n  File \"/usr/lib/python3.6/socket.py\", line 743, in getaddrinfo\r\n    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):\r\nUnicodeError: encoding with 'idna' codec failed (UnicodeError: label empty or too long)```"},"comment":{"url":"https://api.github.com/repos/m0rtem/CloudFail/issues/comments/310237646","html_url":"https://github.com/m0rtem/CloudFail/issues/5#issuecomment-310237646","issue_url":"https://api.github.com/repos/m0rtem/CloudFail/issues/5","id":310237646,"user":{"login":"shello","id":30915,"avatar_url":"https://avatars2.githubusercontent.com/u/30915?v=3","gravatar_id":"","url":"https://api.github.com/users/shello","html_url":"https://github.com/shello","followers_url":"https://api.github.com/users/shello/followers","following_url":"https://api.github.com/users/shello/following{/other_user}","gists_url":"https://api.github.com/users/shello/gists{/gist_id}","starred_url":"https://api.github.com/users/shello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shello/subscriptions","organizations_url":"https://api.github.com/users/shello/orgs","repos_url":"https://api.github.com/users/shello/repos","events_url":"https://api.github.com/users/shello/events{/privacy}","received_events_url":"https://api.github.com/users/shello/received_events","type":"User","site_admin":false},"created_at":"2017-06-22T00:00:00Z","updated_at":"2017-06-22T00:00:00Z","body":"I also saw this error with the default data files from revision 125169c.\r\n\r\nIt turns out it fails when trying to request `m..<target>` (an invalid address, notice the two periods with an empty string between them). The `m.` entry is in the `data/subdomains.txt` file (line 1275), and as of that commit it's the only entry ending in a period."}}
{"actor":{"display_login":"shello"}}