{"action":"created","issue":{"url":"https://api.github.com/repos/Grunny/zap-cli/issues/23","repository_url":"https://api.github.com/repos/Grunny/zap-cli","labels_url":"https://api.github.com/repos/Grunny/zap-cli/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/Grunny/zap-cli/issues/23/comments","events_url":"https://api.github.com/repos/Grunny/zap-cli/issues/23/events","html_url":"https://github.com/Grunny/zap-cli/issues/23","id":220476316,"number":23,"title":"Connection aborted","user":{"login":"benpick","id":12281003,"avatar_url":"https://avatars2.githubusercontent.com/u/12281003?v=3","gravatar_id":"","url":"https://api.github.com/users/benpick","html_url":"https://github.com/benpick","followers_url":"https://api.github.com/users/benpick/followers","following_url":"https://api.github.com/users/benpick/following{/other_user}","gists_url":"https://api.github.com/users/benpick/gists{/gist_id}","starred_url":"https://api.github.com/users/benpick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benpick/subscriptions","organizations_url":"https://api.github.com/users/benpick/orgs","repos_url":"https://api.github.com/users/benpick/repos","events_url":"https://api.github.com/users/benpick/events{/privacy}","received_events_url":"https://api.github.com/users/benpick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-04-09T14:56:50Z","updated_at":"2017-04-10T13:04:05Z","closed_at":null,"body":"Hello,\r\n\r\nIn attempting to run zap-cli from Ubuntu, I am receiving connection errors according to the following:\r\n\r\nzap-cli quick-scan --self-contained --spider -r -s xss http://127.0.0.1\r\n[INFO]            Starting ZAP daemon\r\n[WARNING]         ZAP is already running on port 8090\r\n[INFO]            Running a quick scan for http://127.0.0.1\r\nTraceback (most recent call last):\r\n  File \"/home/osboxes/.local/bin/zap-cli\", line 11, in <module>\r\n    sys.exit(cli())\r\n  File \"/home/osboxes/.local/lib/python2.7/site-packages/click/core.py\", line 664, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"/home/osboxes/.local/lib/python2.7/site-packages/click/core.py\", line 644, in main\r\n    rv = self.invoke(ctx)\r\n  File \"/home/osboxes/.local/lib/python2.7/site-packages/click/core.py\", line 991, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n  File \"/home/osboxes/.local/lib/python2.7/site-packages/click/core.py\", line 837, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"/home/osboxes/.local/lib/python2.7/site-packages/click/core.py\", line 464, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/home/osboxes/.local/lib/python2.7/site-packages/click/decorators.py\", line 26, in new_func\r\n    return ctx.invoke(f, ctx.obj, *args[1:], **kwargs)\r\n  File \"/home/osboxes/.local/lib/python2.7/site-packages/click/core.py\", line 464, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/home/osboxes/.local/lib/python2.7/site-packages/zapcli/cli.py\", line 281, in quick_scan\r\n    zap_helper.set_enabled_scanners(options['scanners'])\r\n  File \"/home/osboxes/.local/lib/python2.7/site-packages/zapcli/zap_helper.py\", line 295, in set_enabled_scanners\r\n    self.zap.ascan.disable_all_scanners(apikey=self.api_key)\r\n  File \"/home/osboxes/.local/lib/python2.7/site-packages/zapv2/ascan.py\", line 275, in disable_all_scanners\r\n    return next(self.zap._request(self.zap.base + 'ascan/action/disableAllScanners/', params).itervalues())\r\n  File \"/home/osboxes/.local/lib/python2.7/site-packages/zapv2/__init__.py\", line 155, in _request\r\n    return self._request_api(url, get).json()\r\n  File \"/home/osboxes/.local/lib/python2.7/site-packages/zapv2/__init__.py\", line 145, in _request_api\r\n    return self.session.get(url, params=query, proxies=self.__proxies, verify=False)\r\n  File \"/home/osboxes/.local/lib/python2.7/site-packages/requests/sessions.py\", line 501, in get\r\n    return self.request('GET', url, **kwargs)\r\n  File \"/home/osboxes/.local/lib/python2.7/site-packages/requests/sessions.py\", line 488, in request\r\n    resp = self.send(prep, **send_kwargs)\r\n  File \"/home/osboxes/.local/lib/python2.7/site-packages/requests/sessions.py\", line 609, in send\r\n    r = adapter.send(request, **kwargs)\r\n  File \"/home/osboxes/.local/lib/python2.7/site-packages/requests/adapters.py\", line 473, in send\r\n    raise ConnectionError(err, request=request)\r\nrequests.exceptions.ConnectionError: ('Connection aborted.', BadStatusLine(\"''\",))\r\n\r\nIn researching this issue, it appears to be a problem with Python, specifically with python 2.7. I have tried using the recommended solution of Python3. This has not worked. \r\n\r\nHas anyone else experienced this issue and are there any steps to try to troubleshoot so that I may use the zap-cli tool properly?\r\n\r\nThanks. \r\n"},"comment":{"url":"https://api.github.com/repos/Grunny/zap-cli/issues/comments/292942991","html_url":"https://github.com/Grunny/zap-cli/issues/23#issuecomment-292942991","issue_url":"https://api.github.com/repos/Grunny/zap-cli/issues/23","id":292942991,"user":{"login":"benpick","id":12281003,"avatar_url":"https://avatars2.githubusercontent.com/u/12281003?v=3","gravatar_id":"","url":"https://api.github.com/users/benpick","html_url":"https://github.com/benpick","followers_url":"https://api.github.com/users/benpick/followers","following_url":"https://api.github.com/users/benpick/following{/other_user}","gists_url":"https://api.github.com/users/benpick/gists{/gist_id}","starred_url":"https://api.github.com/users/benpick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benpick/subscriptions","organizations_url":"https://api.github.com/users/benpick/orgs","repos_url":"https://api.github.com/users/benpick/repos","events_url":"https://api.github.com/users/benpick/events{/privacy}","received_events_url":"https://api.github.com/users/benpick/received_events","type":"User","site_admin":false},"created_at":"2017-04-10T13:04:05Z","updated_at":"2017-04-10T13:04:05Z","body":"Hi @Grunny. Thank you for the quick response. \r\n\r\nThe tools I am using are:\r\nUbuntu 16.10\r\nPython 2.7.12\r\nOWASP ZAP 2.6.0\r\nJava version 1.8.0_121\r\n\r\nI will try to downgrade ubuntu and see if that resolves the issue. \r\nAs a point of reference, below is the zap-cli command I am running and the initial output before the errors above occur:\r\n\r\nzap-cli quick-scan --self-contained --spider -r -s xss http://127.0.0.1/\r\n[INFO]            Starting ZAP daemon\r\n[WARNING]         ZAP is already running on port 8090\r\n[INFO]            Running a quick scan for http://127.0.0.1/\r\nTraceback (most recent call last):\r\n  File \"/home/osboxes/.local/bin/zap-cli\", line 11, in <module>\r\n"}}
{"actor":{"display_login":"benpick"}}