Ekultek / Ekultek/Zeus-Scanner

Unhandled exception (398d2eea)

Open
#778 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
999
Forks
245
PR merge metrics
No merged PRs in 30d

Description

Zeus version:
`1.5.2.21b875`

Firefox version:
`failed to start`

Geckodriver version:
`geckodriver-v0.19.0-linux64.tar.gz`

Error info:
```Traceback (most recent call last):
File "/app/zeus-scanner/var/blackwidow/__init__.py", line 43, in test_connection
proxy=self.proxy
File "/app/zeus-scanner/lib/core/common.py", line 335, in get_page
req = requests.get(url, params=headers, proxies=proxies, verify=False, timeout=20)
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 70, in get
return request('get', url, params=params, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 56, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 488, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 609, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 499, in send
raise ReadTimeout(e, request=request)
ReadTimeout: HTTPConnectionPool(host='campsbayhigh.co.za', port=80): Read timed out. (read timeout=20)
```

Running details:
`Linux-4.19.37-parrot1-amd64-x86_64-with-Ubuntu-18.10-cosmic`

Commands used:
`zeus.py -b http://campsbayhigh.co.za -L 10 -a --identify-waf --show-possibles --show-success --verbose`

Log file info:
```2019-07-22 17:16:02,203;zeus-log;DEBUG;checking if the application has been run before
2019-07-22 17:16:02,204;zeus-log;DEBUG;running with options '{'adminPanelFinder': True, 'showSuccessRate': True, 'identifyProtection': True, 'spiderWebSite': 'http://campsbayhigh.co.za', 'runInVerbose': True, 'showAllConnections': True, 'amountToSearch': 10}'
2019-07-22 17:16:02,204;zeus-log;INFO;log file being saved to '/app/zeus-scanner/log/zeus-log-12.log'
2019-07-22 17:16:02,204;zeus-log;DEBUG;using default search engine (Google)
2019-07-22 17:16:02,204;zeus-log;INFO;using default search engine
2019-07-22 17:16:02,205;zeus-log;DEBUG;settings user-agent to 'Zeus-Scanner/1.5.2.21b875 (Language=Python/2.7.16; Platform=Linux)'
2019-07-22 17:16:02,205;zeus-log;INFO;starting blackwidow on 'http://campsbayhigh.co.za'
2019-07-22 17:16:02,205;zeus-log;DEBUG;testing connection to the URL
2019-07-22 17:16:22,487;zeus-log;ERROR;failed to connect to 'http://campsbayhigh.co.za' received error 'HTTPConnectionPool(host='campsbayhigh.co.za', port=80): Read timed out. (read timeout=20)'
Traceback (most recent call last):
File "/app/zeus-scanner/var/blackwidow/__init__.py", line 43, in test_connection
proxy=self.proxy
File "/app/zeus-scanner/lib/core/common.py", line 335, in get_page
req = requests.get(url, params=headers, proxies=proxies, verify=False, timeout=20)
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 70, in get
return request('get', url, params=params, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 56, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 488, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 609, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 499, in send
raise ReadTimeout(e, request=request)
ReadTimeout: HTTPConnectionPool(host='campsbayhigh.co.za', port=80): Read timed out. (read timeout=20)

2019-07-22 17:16:36,557;zeus-log;INFO;Zeus got an unexpected error and will automatically create an issue for this error, please wait
2019-07-22 17:16:36,558;zeus-log;INFO;getting authorization
2019-07-22 17:16:36,558;zeus-log;INFO;extracting traceback from log file
2019-07-22 17:16:36,559;zeus-log;INFO;attempting to get firefox browser version
2019-07-22 17:16:36,622;zeus-log;ERROR;failed to run firefox
```

Contributor guide

Open the contributing guide

Research direction

Start at var/blackwidow/__init__.py:43 and follow the request through lib/core/common.py:335. Reproduce the reported command and timeout if possible; done should mean this connection failure no longer produces an unhandled exception, with the resulting behavior verified against the logged error path.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.