Ekultek / Ekultek/Zeus-Scanner

Unhandled exception (aa44fa3e)

Open
#1,065 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:
`(57, 0)`

Geckodriver version:
`geckodriver-v0.19.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 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-5.4.0-72-generic-x86_64-with-Ubuntu-20.04-focal`

Commands used:
`zeus.py -d napoli.php?id= --sqli`

Log file info:
```2021-05-08 06:16:35,295;zeus-log;INFO;log file being saved to '/opt/Zeus-Scanner/log/zeus-log-46.log'
2021-05-08 06:16:35,296;zeus-log;INFO;using default search engine
2021-05-08 06:16:35,296;zeus-log;INFO;starting dork scan with query 'napoli.php?id='
2021-05-08 06:16:35,330;zeus-log;WARNING;will not parse webcache URL's (to parse webcache pass -W)
2021-05-08 06:16:35,331;zeus-log;WARNING;only pulling URLs with GET(query) parameters (to pull all URL's pass -E)
2021-05-08 06:16:35,331;zeus-log;INFO;attempting to gather query URL
2021-05-08 06:16:35,332;zeus-log;INFO;setting up virtual display to hide the browser
2021-05-08 06:16:35,332;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 "/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 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-05-08 06:16:45,712;zeus-log;INFO;Zeus got an unexpected error and will automatically create an issue for this error, please wait
2021-05-08 06:16:45,712;zeus-log;INFO;getting authorization
2021-05-08 06:16:45,748;zeus-log;INFO;extracting traceback from log file
2021-05-08 06:16:45,748;zeus-log;INFO;attempting to get firefox browser version
```

Contributor guide

Open the contributing guide

Research direction

Start at var/search/selenium_search.py line 80 and reproduce the reported command, focusing on the pyvirtualdisplay traceback caused while creating the virtual display. Check the installed package interface against the call path shown in the error. Done means the dork scan no longer aborts with the unexpected keyword 'url' error on the reported environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.