Ekultek / Ekultek/Zeus-Scanner
Unhandled exception (59dc5672)
- 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.gzgeckodriver-v0.19.0-linux64.tar.gz`
Error info:
```Traceback (most recent call last):
File "/home/asds/Zeus-Scanner/var/search/selenium_search.py", line 268, in parse_search_results
tor=tor, batch=batch, xforward=forward_for
File "/home/asds/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/asds/Zeus-Scanner/var/search/__init__.py", line 148, in set_browser
executable_path=whichcraft.which("geckodriver"))
File "/root/.local/share/virtualenvs/Zeus-Scanner-Hzfi7w1s/lib/python2.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 154, in __init__
keep_alive=True)
File "/root/.local/share/virtualenvs/Zeus-Scanner-Hzfi7w1s/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 140, in __init__
self.start_session(desired_capabilities, browser_profile)
File "/root/.local/share/virtualenvs/Zeus-Scanner-Hzfi7w1s/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 229, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/root/.local/share/virtualenvs/Zeus-Scanner-Hzfi7w1s/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 297, in execute
self.error_handler.check_response(response)
File "/root/.local/share/virtualenvs/Zeus-Scanner-Hzfi7w1s/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
raise exception_class(message, screen, stacktrace)
WebDriverException: Message: newSession
```
Running details:
`Linux-5.4.12-1-MANJARO-x86_64-with-glibc2.2.5`
Commands used:
`zeus.py -r`
Log file info:
```2020-01-17 13:09:43,046;zeus-log;INFO;log file being saved to '/home/asds/Zeus-Scanner/log/zeus-log-17.log'
2020-01-17 13:09:43,046;zeus-log;INFO;using default search engine
2020-01-17 13:09:43,046;zeus-log;INFO;using random dork 'inurl:*.php?inf=' as the search query
2020-01-17 13:09:43,047;zeus-log;WARNING;will not parse webcache URL's (to parse webcache pass -W)
2020-01-17 13:09:43,047;zeus-log;WARNING;only pulling URLs with GET(query) parameters (to pull all URL's pass -E)
2020-01-17 13:09:43,047;zeus-log;INFO;attempting to gather query URL
2020-01-17 13:09:43,047;zeus-log;INFO;setting up virtual display to hide the browser
2020-01-17 13:09:43,166;zeus-log;INFO;setting the browser
2020-01-17 13:09:49,033;zeus-log;ERROR;[7;31;31mselenium_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 "/home/asds/Zeus-Scanner/var/search/selenium_search.py", line 268, in parse_search_results
tor=tor, batch=batch, xforward=forward_for
File "/home/asds/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/asds/Zeus-Scanner/var/search/__init__.py", line 148, in set_browser
executable_path=whichcraft.which("geckodriver"))
File "/root/.local/share/virtualenvs/Zeus-Scanner-Hzfi7w1s/lib/python2.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 154, in __init__
keep_alive=True)
File "/root/.local/share/virtualenvs/Zeus-Scanner-Hzfi7w1s/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 140, in __init__
self.start_session(desired_capabilities, browser_profile)
File "/root/.local/share/virtualenvs/Zeus-Scanner-Hzfi7w1s/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 229, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/root/.local/share/virtualenvs/Zeus-Scanner-Hzfi7w1s/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 297, in execute
self.error_handler.check_response(response)
File "/root/.local/share/virtualenvs/Zeus-Scanner-Hzfi7w1s/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
raise exception_class(message, screen, stacktrace)
WebDriverException: Message: newSession
2020-01-17 13:09:53,630;zeus-log;INFO;[32mZeus got an unexpected error and will automatically create an issue for this error, please wait[0m
2020-01-17 13:09:53,630;zeus-log;INFO;[32mgetting authorization[0m
2020-01-17 13:09:53,635;zeus-log;INFO;[32mextracting traceback from log file[0m
2020-01-17 13:09:53,636;zeus-log;INFO;[32mattempting to get firefox browser version[0m
```
Contributor guide
Research direction
Start with the traceback locations in var/search/selenium_search.py and var/search/__init__.py, then run `zeus.py -r` in the reported Linux, Firefox, and geckodriver setup. Trace the SetBrowser call that produces WebDriverException: newSession and determine what behavior should replace the unhandled exception; done means the command handles this failure without automatically creating another error issue.
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