Ekultek / Ekultek/Zeus-Scanner

Unhandled exception (43d3b09b)

Open
#1,127 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.19.0-linux64.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 80, in get_urls
ff_display = Display(visible=0, size=(800, 600))
File "/usr/local/lib/python2.7/dist-packages/pyvirtualdisplay/display.py", line 34, in __init__
self._obj = self.display_class(
File "/usr/local/lib/python2.7/dist-packages/pyvirtualdisplay/display.py", line 52, in display_class
cls.check_installed()
File "/usr/local/lib/python2.7/dist-packages/pyvirtualdisplay/xvfb.py", line 38, in check_installed
ubuntu_package=PACKAGE).check_installed()
TypeError: __init__() got an unexpected keyword argument 'url'
```

Running details:
`Linux-4.19.0-18-amd64-x86_64-with-debian-10.11`

Commands used:
`zeus.py -d inurl:= -W -E --verbose`

Log file info:
```2021-11-08 21:37:41,216;zeus-log;DEBUG;checking if the application has been run before
2021-11-08 21:38:09,590;zeus-log;ERROR;failed to run firefox
2021-11-08 21:38:32,630;zeus-log;INFO;done, continuing process
2021-11-08 21:38:32,659;zeus-log;DEBUG;running with options '{'noExclude': True, 'runInVerbose': True, 'parseWebcache': True, 'dorkToUse': 'inurl:='}'
2021-11-08 21:38:32,661;zeus-log;INFO;log file being saved to '/root/zeus-scanner/log/zeus-log-4.log'
2021-11-08 21:38:32,662;zeus-log;DEBUG;using default search engine (Google)
2021-11-08 21:38:32,663;zeus-log;INFO;using default search engine
2021-11-08 21:38:32,664;zeus-log;INFO;starting dork scan with query 'inurl:='
2021-11-08 21:38:32,665;zeus-log;DEBUG;parsing blacklist
2021-11-08 21:38:32,685;zeus-log;DEBUG;checking for user-agent and proxy configuration
2021-11-08 21:38:32,686;zeus-log;INFO;attempting to gather query URL
2021-11-08 21:38:32,704;zeus-log;INFO;setting up virtual display to hide the browser
2021-11-08 21:38:32,707;zeus-log;ERROR;selenium_search.pyc failed to gather the URL from search engine, caught exception '__init__() got an unexpected keyword argument 'url'' 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 80, in get_urls
ff_display = Display(visible=0, size=(800, 600))
File "/usr/local/lib/python2.7/dist-packages/pyvirtualdisplay/display.py", line 34, in __init__
self._obj = self.display_class(
File "/usr/local/lib/python2.7/dist-packages/pyvirtualdisplay/display.py", line 52, in display_class
cls.check_installed()
File "/usr/local/lib/python2.7/dist-packages/pyvirtualdisplay/xvfb.py", line 38, in check_installed
ubuntu_package=PACKAGE).check_installed()
TypeError: __init__() got an unexpected keyword argument 'url'

2021-11-08 21:39:00,289;zeus-log;INFO;Zeus got an unexpected error and will automatically create an issue for this error, please wait
2021-11-08 21:39:00,291;zeus-log;INFO;getting authorization
2021-11-08 21:39:00,292;zeus-log;INFO;extracting traceback from log file
2021-11-08 21:39:00,294;zeus-log;INFO;attempting to get firefox browser version
2021-11-08 21:39:00,305;zeus-log;ERROR;failed to run firefox
```

Contributor guide

Open the contributing guide

Research direction

Start with var/search/selenium_search.py, particularly get_urls and parse_search_results, and reproduce the failure with `zeus.py -d inurl:= -W -E --verbose`. Investigate the PyVirtualDisplay/Xvfb initialization shown in the traceback; done means the search command can gather the query URL without the unexpected `url` argument exception.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.