{"action":"created","issue":{"url":"https://api.github.com/repos/0xInfection/XSRFProbe/issues/20","repository_url":"https://api.github.com/repos/0xInfection/XSRFProbe","labels_url":"https://api.github.com/repos/0xInfection/XSRFProbe/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/0xInfection/XSRFProbe/issues/20/comments","events_url":"https://api.github.com/repos/0xInfection/XSRFProbe/issues/20/events","html_url":"https://github.com/0xInfection/XSRFProbe/issues/20","id":395446805,"node_id":"MDU6SXNzdWUzOTU0NDY4MDU=","number":20,"title":"[Bug] => Execution Breaking due to Unhandled Exception.","user":{"login":"0xInfection","id":39941993,"node_id":"MDQ6VXNlcjM5OTQxOTkz","avatar_url":"https://avatars2.githubusercontent.com/u/39941993?v=4","gravatar_id":"","url":"https://api.github.com/users/0xInfection","html_url":"https://github.com/0xInfection","followers_url":"https://api.github.com/users/0xInfection/followers","following_url":"https://api.github.com/users/0xInfection/following{/other_user}","gists_url":"https://api.github.com/users/0xInfection/gists{/gist_id}","starred_url":"https://api.github.com/users/0xInfection/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xInfection/subscriptions","organizations_url":"https://api.github.com/users/0xInfection/orgs","repos_url":"https://api.github.com/users/0xInfection/repos","events_url":"https://api.github.com/users/0xInfection/events{/privacy}","received_events_url":"https://api.github.com/users/0xInfection/received_events","type":"User","site_admin":false},"labels":[{"id":1030431584,"node_id":"MDU6TGFiZWwxMDMwNDMxNTg0","url":"https://api.github.com/repos/0xInfection/XSRFProbe/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"closed","locked":false,"assignee":{"login":"0xInfection","id":39941993,"node_id":"MDQ6VXNlcjM5OTQxOTkz","avatar_url":"https://avatars2.githubusercontent.com/u/39941993?v=4","gravatar_id":"","url":"https://api.github.com/users/0xInfection","html_url":"https://github.com/0xInfection","followers_url":"https://api.github.com/users/0xInfection/followers","following_url":"https://api.github.com/users/0xInfection/following{/other_user}","gists_url":"https://api.github.com/users/0xInfection/gists{/gist_id}","starred_url":"https://api.github.com/users/0xInfection/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xInfection/subscriptions","organizations_url":"https://api.github.com/users/0xInfection/orgs","repos_url":"https://api.github.com/users/0xInfection/repos","events_url":"https://api.github.com/users/0xInfection/events{/privacy}","received_events_url":"https://api.github.com/users/0xInfection/received_events","type":"User","site_admin":false},"assignees":[{"login":"0xInfection","id":39941993,"node_id":"MDQ6VXNlcjM5OTQxOTkz","avatar_url":"https://avatars2.githubusercontent.com/u/39941993?v=4","gravatar_id":"","url":"https://api.github.com/users/0xInfection","html_url":"https://github.com/0xInfection","followers_url":"https://api.github.com/users/0xInfection/followers","following_url":"https://api.github.com/users/0xInfection/following{/other_user}","gists_url":"https://api.github.com/users/0xInfection/gists{/gist_id}","starred_url":"https://api.github.com/users/0xInfection/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xInfection/subscriptions","organizations_url":"https://api.github.com/users/0xInfection/orgs","repos_url":"https://api.github.com/users/0xInfection/repos","events_url":"https://api.github.com/users/0xInfection/events{/privacy}","received_events_url":"https://api.github.com/users/0xInfection/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2019-01-03T03:23:39Z","updated_at":"2019-01-03T04:32:20Z","closed_at":"2019-01-03T04:30:50Z","author_association":"OWNER","body":"#### Describe the bug\r\nConnection Aborted/ Connection Refused.\r\n\r\n#### Command You Used\r\nIt can be reproduced by any command when site is un-responsive.\r\n\r\n#### Full Stack Trace Error\r\n```\r\n [!] Testing site example.com status...\r\n [+] Site seems to be up!\r\n [!] Testing  endpoint status...\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.6/dist-packages/urllib3/connection.py\", line 171, in _new_conn\r\n    (self._dns_host, self.port), self.timeout, **extra_kw)\r\n  File \"/usr/local/lib/python3.6/dist-packages/urllib3/util/connection.py\", line 79, in create_connection\r\n    raise err\r\n  File \"/usr/local/lib/python3.6/dist-packages/urllib3/util/connection.py\", line 69, in create_connection\r\n    sock.connect(sa)\r\nConnectionRefusedError: [Errno 111] Connection refused\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.6/dist-packages/urllib3/connectionpool.py\", line 600, in urlopen\r\n    chunked=chunked)\r\n  File \"/usr/local/lib/python3.6/dist-packages/urllib3/connectionpool.py\", line 354, 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 \"/usr/local/lib/python3.6/dist-packages/urllib3/connection.py\", line 196, in connect\r\n    conn = self._new_conn()\r\n  File \"/usr/local/lib/python3.6/dist-packages/urllib3/connection.py\", line 180, in _new_conn\r\n    self, \"Failed to establish a new connection: %s\" % e)\r\nurllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f6ed533f6d8>: Failed to establish a new connection: [Errno 111] Connection refused\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.6/dist-packages/requests/adapters.py\", line 449, in send\r\n    timeout=timeout\r\n  File \"/usr/local/lib/python3.6/dist-packages/urllib3/connectionpool.py\", line 638, in urlopen\r\n    _stacktrace=sys.exc_info()[2])\r\n  File \"/usr/local/lib/python3.6/dist-packages/urllib3/util/retry.py\", line 398, in increment\r\n    raise MaxRetryError(_pool, url, error or ResponseError(cause))\r\nurllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6ed533f6d8>: Failed to establish a new connection: [Errno 111] Connection refused',))\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/root/PenTest/Audit/XSRFProbe/core/inputin.py\", line 40, in inputin\r\n    requests.get(web)\r\n  File \"/usr/local/lib/python3.6/dist-packages/requests/api.py\", line 75, in get\r\n    return request('get', url, params=params, **kwargs)\r\n  File \"/usr/local/lib/python3.6/dist-packages/requests/api.py\", line 60, in request\r\n    return session.request(method=method, url=url, **kwargs)\r\n  File \"/usr/local/lib/python3.6/dist-packages/requests/sessions.py\", line 533, in request\r\n    resp = self.send(prep, **send_kwargs)\r\n  File \"/usr/local/lib/python3.6/dist-packages/requests/sessions.py\", line 646, in send\r\n    r = adapter.send(request, **kwargs)\r\n  File \"/usr/local/lib/python3.6/dist-packages/requests/adapters.py\", line 516, in send\r\n    raise ConnectionError(e, request=request)\r\nrequests.exceptions.ConnectionError: HTTPConnectionPool(host='example.com', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6ed533f6d8>: Failed to establish a new connection: [Errno 111] Connection refused',))\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"xsrfprobe.py\", line 13, in <module>\r\n    main.Engine()  # start the Scanner Engine ;)\r\n  File \"/root/PenTest/Audit/XSRFProbe/core/main.py\", line 70, in Engine\r\n    web, fld = inputin()  # Take the input\r\n  File \"/root/PenTest/Audit/XSRFProbe/core/inputin.py\", line 52, in inputin\r\n    verbout(R, 'Connection Aborted : '+main_url)\r\nNameError: name 'main_url' is not defined\r\n```\r\n\r\n#### Potential cause or fix\r\nPR #21 fixes it.\r\n\r\n#### Environment:\r\n- OS: Kali Rolling\r\n- Python version: v3\r\n\r\n#### Some Questions\r\n<!-- Please check the boxes with \"x\" like `[x]`. -->\r\n- [x] I am using the latest version of XSFRProbe.\r\n- [x] I installed the dependecies using `pip3` instead of `pip`.\r\n- [x] I have read the documentation before submitting this issue.\r\n- [x] I have checked the other issues to see if someone reported this before.\r\n\r\n#### Other stuff\r\nThe site is unresponsive, however the bug should be handled properly which it isn't. So this is a bug as [pointed out](https://github.com/0xInfection/XSRFProbe/issues/17#issuecomment-450895943) by @sumgro in #17."},"comment":{"url":"https://api.github.com/repos/0xInfection/XSRFProbe/issues/comments/451054013","html_url":"https://github.com/0xInfection/XSRFProbe/issues/20#issuecomment-451054013","issue_url":"https://api.github.com/repos/0xInfection/XSRFProbe/issues/20","id":451054013,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTA1NDAxMw==","user":{"login":"sumgro","id":11391119,"node_id":"MDQ6VXNlcjExMzkxMTE5","avatar_url":"https://avatars1.githubusercontent.com/u/11391119?v=4","gravatar_id":"","url":"https://api.github.com/users/sumgro","html_url":"https://github.com/sumgro","followers_url":"https://api.github.com/users/sumgro/followers","following_url":"https://api.github.com/users/sumgro/following{/other_user}","gists_url":"https://api.github.com/users/sumgro/gists{/gist_id}","starred_url":"https://api.github.com/users/sumgro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumgro/subscriptions","organizations_url":"https://api.github.com/users/sumgro/orgs","repos_url":"https://api.github.com/users/sumgro/repos","events_url":"https://api.github.com/users/sumgro/events{/privacy}","received_events_url":"https://api.github.com/users/sumgro/received_events","type":"User","site_admin":false},"created_at":"2019-01-03T04:32:20Z","updated_at":"2019-01-03T04:32:20Z","author_association":"NONE","body":"> Hi there, can you give me the sites you used? Cause I am really not able to reproduce the error. If it's sensitive, email me via the email address on my profile. :)\r\n\r\nWon't be able to share the sites as they are my clients and it'll not be ethical."}}
{"actor":{"display_login":"sumgro"}}