Ekultek / Ekultek/Zeus-Scanner
Unhandled exception (d9b451cd)
- 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.19.0-linux32.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 148, in set_browser
executable_path=whichcraft.which("geckodriver"))
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py", line 174, in __init__
keep_alive=True)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
SessionNotCreatedException: Message: Failed to start browser /usr/bin/firefox: other os error
```
Running details:
`Linux-5.3.0-kali2-686-pae-i686-with-debian-kali-rolling`
Commands used:
`./zeus.py -d inurl:php?id= -A`
Log file info:
```2020-01-02 22:15:03,165;zeus-log;INFO;log file being saved to '/root/zeus-scanner/log/zeus-log-22.log'
2020-01-02 22:15:03,166;zeus-log;WARNING;AOL will take a little longer due to pop-ups
2020-01-02 22:15:03,166;zeus-log;INFO;specified to use non-default search engine
2020-01-02 22:15:03,166;zeus-log;INFO;starting dork scan with query 'inurl:php?id='
2020-01-02 22:15:03,171;zeus-log;WARNING;only pulling URLs with GET(query) parameters (to pull all URL's pass -E)
2020-01-02 22:15:03,172;zeus-log;INFO;attempting to gather query URL
2020-01-02 22:15:03,173;zeus-log;INFO;setting up virtual display to hide the browser
2020-01-02 22:15:03,342;zeus-log;INFO;setting the browser
2020-01-02 22:15:05,750;zeus-log;ERROR;[7;31;31mselenium_search.pyc failed to gather the URL from search engine, caught exception 'Message: Failed to start browser /usr/bin/firefox: other os error' 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 174, in __init__
keep_alive=True)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
SessionNotCreatedException: Message: Failed to start browser /usr/bin/firefox: other os error
2020-01-02 22:15:08,885;zeus-log;INFO;[32mZeus got an unexpected error and will automatically create an issue for this error, please wait[0m
2020-01-02 22:15:08,885;zeus-log;INFO;[32mgetting authorization[0m
2020-01-02 22:15:08,889;zeus-log;INFO;[32mextracting traceback from log file[0m
2020-01-02 22:15:08,890;zeus-log;INFO;[32mattempting to get firefox browser version[0m
2020-01-02 22:15:08,915;zeus-log;ERROR;[7;31;31mfailed to run firefox[0m
```
Contributor guide
Research direction
Start with var/search/selenium_search.py, especially parse_search_results and get_urls, then inspect var/search/__init__.py around SetBrowser.set_browser. Reproduce the reported command with the listed Linux, Firefox, and geckodriver details and trace the browser-start failure. Done means the search path no longer produces this unhandled exception, with the resulting behavior verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100