Ekultek / Ekultek/Zeus-Scanner

Unhandled exception (8b8d949f)

Open
#1,002 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:
`(52, 7)`

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

Error info:
```Traceback (most recent call last):
File "/root/Desktop/zeus-scanner/var/blackwidow/__init__.py", line 43, in test_connection
proxy=self.proxy
File "/root/Desktop/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: HTTPSConnectionPool(host='iranintl.com', port=443): Read timed out. (read timeout=20)
```

Running details:
`Linux-4.15.0-kali2-amd64-x86_64-with-Kali-kali-rolling-kali-rolling`

Commands used:
`zeus.py -b https://iranintl.com/`

Log file info:
```2020-11-16 20:19:54,324;zeus-log;INFO;log file being saved to '/root/Desktop/zeus-scanner/log/zeus-log-15.log'
2020-11-16 20:19:54,325;zeus-log;INFO;using default search engine
2020-11-16 20:19:54,325;zeus-log;INFO;starting blackwidow on 'https://iranintl.com/'
2020-11-16 20:20:14,975;zeus-log;ERROR;failed to connect to 'https://iranintl.com/' received error 'HTTPSConnectionPool(host='iranintl.com', port=443): Read timed out. (read timeout=20)'
Traceback (most recent call last):
File "/root/Desktop/zeus-scanner/var/blackwidow/__init__.py", line 43, in test_connection
proxy=self.proxy
File "/root/Desktop/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: HTTPSConnectionPool(host='iranintl.com', port=443): Read timed out. (read timeout=20)

2020-11-16 20:39:20,061;zeus-log;INFO;Zeus got an unexpected error and will automatically create an issue for this error, please wait
2020-11-16 20:39:20,062;zeus-log;INFO;getting authorization
2020-11-16 20:39:20,115;zeus-log;INFO;extracting traceback from log file
2020-11-16 20:39:20,115;zeus-log;INFO;attempting to get firefox browser version
```

Contributor guide

Open the contributing guide

Research direction

Start with var/blackwidow/__init__.py at test_connection and lib/core/common.py at get_page, then reproduce the command against the reported URL if it is still available. Trace how the requests ReadTimeout is handled and define completion as preventing the reported unhandled exception, with an appropriate result or error path covered by a test.

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
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.