Ekultek / Ekultek/Zeus-Scanner

Unhandled exception (35874695)

Open
#736 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.f6a3ad`

Firefox version:
`(66, 0)`

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

Error info:
```Traceback (most recent call last):
File "/opt/Zeus-Scanner/var/search/selenium_search.py", line 268, in parse_search_results
tor=tor, batch=batch, xforward=forward_for
File "/opt/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 "/opt/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 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 297, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
raise exception_class(message, screen, stacktrace)
WebDriverException: Message: newSession
```

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

Commands used:
`zeus.py -r -s --random-agent --verbose`

Log file info:
```2019-03-31 17:10:30,901;zeus-log;DEBUG;checking if the application has been run before
2019-03-31 17:10:30,901;zeus-log;DEBUG;running with options '{'runInVerbose': True, 'useRandomAgent': True, 'useRandomDork': True, 'runSqliScan': True}'
2019-03-31 17:10:30,901;zeus-log;INFO;log file being saved to '/opt/Zeus-Scanner/log/zeus-log-9.log'
2019-03-31 17:10:30,901;zeus-log;DEBUG;grabbing random user-agent from '/opt/Zeus-Scanner/etc/text_files/agents.txt'
2019-03-31 17:10:30,902;zeus-log;INFO;random agent being used 'Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.1 SUSE/6.0.428.0 (KHTML, like Gecko) Chrome/6.0.428.0 Safari/534.1'
2019-03-31 17:10:30,902;zeus-log;DEBUG;using default search engine (Google)
2019-03-31 17:10:30,902;zeus-log;INFO;using default search engine
2019-03-31 17:10:30,903;zeus-log;DEBUG;choosing random dork from etc/dorks.txt
2019-03-31 17:10:30,903;zeus-log;INFO;using random dork 'inurl:include.php?sec=' as the search query
2019-03-31 17:10:30,903;zeus-log;DEBUG;parsing blacklist
2019-03-31 17:10:30,903;zeus-log;DEBUG;checking for user-agent and proxy configuration
2019-03-31 17:10:30,903;zeus-log;WARNING;will not parse webcache URL's (to parse webcache pass -W)
2019-03-31 17:10:30,903;zeus-log;WARNING;only pulling URLs with GET(query) parameters (to pull all URL's pass -E)
2019-03-31 17:10:30,903;zeus-log;INFO;attempting to gather query URL
2019-03-31 17:10:30,904;zeus-log;INFO;setting up virtual display to hide the browser
2019-03-31 17:10:31,036;zeus-log;INFO;setting the browser
2019-03-31 17:10:37,307;zeus-log;ERROR;selenium_search.pyc failed to gather the URL from search engine, caught exception 'Message: newSession' exception has been logged to current log file
Traceback (most recent call last):
File "/opt/Zeus-Scanner/var/search/selenium_search.py", line 268, in parse_search_results
tor=tor, batch=batch, xforward=forward_for
File "/opt/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 "/opt/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 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 297, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
raise exception_class(message, screen, stacktrace)
WebDriverException: Message: newSession

2019-03-31 17:10:39,114;zeus-log;INFO;Zeus got an unexpected error and will automatically create an issue for this error, please wait
2019-03-31 17:10:39,115;zeus-log;INFO;getting authorization
2019-03-31 17:10:39,117;zeus-log;INFO;extracting traceback from log file
2019-03-31 17:10:39,118;zeus-log;INFO;attempting to get firefox browser version
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `zeus.py -r -s --random-agent --verbose`, then read `var/search/__init__.py` around `set_browser` and `var/search/selenium_search.py` around `get_urls` and `parse_search_results`. Trace the `newSession` failure using the reported Firefox, geckodriver, and Selenium versions; done means the command handles this setup without an unhandled exception and gathers the search URLs.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.