Ekultek / Ekultek/Zeus-Scanner

Unhandled exception (93782000)

Open
#879 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.18.0-linux32.tar.gz`

Error info:
```Traceback (most recent call last):
File "/home/labu/zeus-scanner/var/search/selenium_search.py", line 268, in parse_search_results
tor=tor, batch=batch, xforward=forward_for
File "/home/labu/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 "/home/labu/zeus-scanner/var/search/__init__.py", line 148, in set_browser
executable_path=whichcraft.which("geckodriver"))
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py", line 144, in __init__
self.service.start()
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py", line 96, in start
self.assert_process_still_running()
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py", line 109, in assert_process_still_running
% (self.path, return_code)
WebDriverException: Message: Service /usr/bin/geckodriver unexpectedly exited. Status code was: -4
```

Running details:
`Linux-3.4.0-perf-gc14c2d5-armv7l-with-debian-kali-rolling`

Commands used:
`zeus.py -r apol.txt`

Log file info:
```2020-04-19 15:20:23,039;zeus-log;ERROR;failed to run firefox
2020-04-19 15:20:34,963;zeus-log;INFO;done, continuing process
2020-04-19 15:20:34,976;zeus-log;INFO;log file being saved to '/home/labu/zeus-scanner/log/zeus-log-10.log'
2020-04-19 15:20:34,978;zeus-log;INFO;using default search engine
2020-04-19 15:20:34,992;zeus-log;INFO;using random dork 'inurl:index.php?pg=' as the search query
2020-04-19 15:20:34,998;zeus-log;WARNING;will not parse webcache URL's (to parse webcache pass -W)
2020-04-19 15:20:35,000;zeus-log;WARNING;only pulling URLs with GET(query) parameters (to pull all URL's pass -E)
2020-04-19 15:20:35,002;zeus-log;INFO;attempting to gather query URL
2020-04-19 15:20:35,010;zeus-log;INFO;setting up virtual display to hide the browser
2020-04-19 15:20:35,606;zeus-log;INFO;setting the browser
2020-04-19 15:20:36,870;zeus-log;ERROR;selenium_search.pyc failed to gather the URL from search engine, caught exception 'Message: Service /usr/bin/geckodriver unexpectedly exited. Status code was: -4' exception has been logged to current log file
Traceback (most recent call last):
File "/home/labu/zeus-scanner/var/search/selenium_search.py", line 268, in parse_search_results
tor=tor, batch=batch, xforward=forward_for
File "/home/labu/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 "/home/labu/zeus-scanner/var/search/__init__.py", line 148, in set_browser
executable_path=whichcraft.which("geckodriver"))
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py", line 144, in __init__
self.service.start()
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py", line 96, in start
self.assert_process_still_running()
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py", line 109, in assert_process_still_running
% (self.path, return_code)
WebDriverException: Message: Service /usr/bin/geckodriver unexpectedly exited. Status code was: -4

2020-04-19 15:21:17,010;zeus-log;INFO;Zeus got an unexpected error and will automatically create an issue for this error, please wait
2020-04-19 15:21:17,019;zeus-log;INFO;getting authorization
2020-04-19 15:21:17,041;zeus-log;INFO;extracting traceback from log file
2020-04-19 15:21:17,052;zeus-log;INFO;attempting to get firefox browser version
2020-04-19 15:21:17,100;zeus-log;ERROR;failed to run firefox
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `zeus.py -r apol.txt` in the reported environment, then inspect `var/search/__init__.py` around `SetBrowser.set_browser` and `var/search/selenium_search.py` around `get_urls` and `parse_search_results`. The report does not define a fix or success condition; confirm the expected behavior for the geckodriver status -4 failure before changing anything.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.