Ekultek / Ekultek/Zeus-Scanner

Unhandled exception (6df38245)

Open
#869 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
999
Forks
245
PR merge metrics
No merged PRs in 30d

Description

Zeus version:
1.5.2.21b875

Firefox version:
(72, 0)

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

Error info:

  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 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-5.2.0-kali2-amd64-x86_64-with-debian-kali-rolling

Commands used:
zeus.py -d inurl:php?id=

Log file info:

2020-02-07 01:00:15,451;zeus-log;INFO;using default search engine
2020-02-07 01:00:15,451;zeus-log;INFO;starting dork scan with query 'inurl:php?id='
2020-02-07 01:00:15,451;zeus-log;WARNING;will not parse webcache URL's (to parse webcache pass -W)
2020-02-07 01:00:15,451;zeus-log;WARNING;only pulling URLs with GET(query) parameters (to pull all URL's pass -E)
2020-02-07 01:00:15,451;zeus-log;INFO;attempting to gather query URL
2020-02-07 01:00:15,451;zeus-log;INFO;setting up virtual display to hide the browser
2020-02-07 01:00:15,592;zeus-log;INFO;setting the browser
2020-02-07 01:00:45,359;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 "/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 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


2020-02-07 01:01:29,879;zeus-log;INFO;Zeus got an unexpected error and will automatically create an issue for this error, please wait
2020-02-07 01:01:29,879;zeus-log;INFO;getting authorization
2020-02-07 01:01:29,880;zeus-log;INFO;extracting traceback from log file
2020-02-07 01:01:29,880;zeus-log;INFO;attempting to get firefox browser version

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with var/search/init.py at SetBrowser.set_browser and trace its callers in var/search/selenium_search.py, especially get_urls and parse_search_results. Reproduce the reported zeus.py -d inurl:php?id= command and inspect the logged WebDriverException: Message: newSession. Done means the search scan handles this browser-start failure without an unhandled exception and reports the outcome clearly.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
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.