Ekultek / Ekultek/Zeus-Scanner

Unhandled exception (68f70903)

Open
#767 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:
`(60, 7)`

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

Error info:
```Traceback (most recent call last):
File "/root/桌面/信息搜集/Zeus-Scanner/var/search/selenium_search.py", line 268, in parse_search_results
tor=tor, batch=batch, xforward=forward_for
File "/root/桌面/信息搜集/Zeus-Scanner/var/search/selenium_search.py", line 82, in get_urls
browser = var.search.SetBrowser(agent=user_agent, proxy=proxy, tor=tor, xforward=xforward).set_browser()
File "/root/桌面/信息搜集/Zeus-Scanner/var/search/__init__.py", line 134, in set_browser
browser = webdriver.Firefox(profile, proxy=self.__set_proxy())
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py", line 154, in __init__
keep_alive=True)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 140, in __init__
self.start_session(desired_capabilities, browser_profile)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 229, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 295, in execute
response = self.command_executor.execute(driver_command, params)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/remote_connection.py", line 464, in execute
return self._request(command_info[0], url, body=data)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/remote_connection.py", line 488, in _request
resp = self._conn.getresponse()
File "/usr/lib/python2.7/httplib.py", line 1121, in getresponse
response.begin()
File "/usr/lib/python2.7/httplib.py", line 438, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.7/httplib.py", line 402, in _read_status
raise BadStatusLine("No status line received - the server has closed the connection")
BadStatusLine: No status line received - the server has closed the connection
```

Running details:
`Linux-4.19.0-kali4-amd64-x86_64-with-Kali-kali-rolling-kali-rolling`

Commands used:
`zeus.py -d aaa`

Log file info:
```2019-07-01 21:57:24,947;zeus-log;INFO;log file being saved to '/root/桌面/信息搜集/Zeus-Scanner/log/zeus-log-11.log'
2019-07-01 21:57:24,947;zeus-log;INFO;using default search engine
2019-07-01 21:57:24,947;zeus-log;INFO;starting dork scan with query 'aaa'
2019-07-01 21:57:24,948;zeus-log;WARNING;will not parse webcache URL's (to parse webcache pass -W)
2019-07-01 21:57:24,948;zeus-log;WARNING;only pulling URLs with GET(query) parameters (to pull all URL's pass -E)
2019-07-01 21:57:24,948;zeus-log;INFO;attempting to gather query URL
2019-07-01 21:57:24,948;zeus-log;INFO;setting up virtual display to hide the browser
2019-07-01 21:57:25,074;zeus-log;INFO;setting the browser
2019-07-01 21:57:25,487;zeus-log;ERROR;selenium_search.pyc failed to gather the URL from search engine, caught exception 'No status line received - the server has closed the connection' exception has been logged to current log file
Traceback (most recent call last):
File "/root/桌面/信息搜集/Zeus-Scanner/var/search/selenium_search.py", line 268, in parse_search_results
tor=tor, batch=batch, xforward=forward_for
File "/root/桌面/信息搜集/Zeus-Scanner/var/search/selenium_search.py", line 82, in get_urls
browser = var.search.SetBrowser(agent=user_agent, proxy=proxy, tor=tor, xforward=xforward).set_browser()
File "/root/桌面/信息搜集/Zeus-Scanner/var/search/__init__.py", line 134, in set_browser
browser = webdriver.Firefox(profile, proxy=self.__set_proxy())
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py", line 154, in __init__
keep_alive=True)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 140, in __init__
self.start_session(desired_capabilities, browser_profile)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 229, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 295, in execute
response = self.command_executor.execute(driver_command, params)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/remote_connection.py", line 464, in execute
return self._request(command_info[0], url, body=data)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/remote_connection.py", line 488, in _request
resp = self._conn.getresponse()
File "/usr/lib/python2.7/httplib.py", line 1121, in getresponse
response.begin()
File "/usr/lib/python2.7/httplib.py", line 438, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.7/httplib.py", line 402, in _read_status
raise BadStatusLine("No status line received - the server has closed the connection")
BadStatusLine: No status line received - the server has closed the connection

2019-07-01 21:57:28,419;zeus-log;INFO;Zeus got an unexpected error and will automatically create an issue for this error, please wait
2019-07-01 21:57:28,419;zeus-log;INFO;getting authorization
2019-07-01 21:57:28,420;zeus-log;INFO;extracting traceback from log file
2019-07-01 21:57:28,421;zeus-log;INFO;attempting to get firefox browser version
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `zeus.py -d aaa` in the reported environment and read `var/search/selenium_search.py`, especially `parse_search_results` and `get_urls`. Then inspect `var/search/__init__.py` at `SetBrowser.set_browser()` to trace the Firefox startup failure; done means the unhandled exception has a confirmed cause and an agreed, tested behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.