Ekultek / Ekultek/Zeus-Scanner
Unhandled exception (9d74a047)
- 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 "/sdcard/zeus-scanner/var/search/selenium_search.py", line 268, in parse_search_results
tor=tor, batch=batch, xforward=forward_for
File "/sdcard/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 "/sdcard/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 144, in __init__
self.service.start()
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py", line 74, in start
stdout=self.log_file, stderr=self.log_file)
File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 8] Exec format error
```
Running details:
`Linux-4.4.111-15411975-aarch64-with-Kali-kali-rolling-kali-rolling`
Commands used:
`zeus.py -d intext:mega.nz/*/*`
Log file info:
```2019-08-22 15:35:51,573;zeus-log;INFO;log file being saved to '/sdcard/zeus-scanner/log/zeus-log-6.log'
2019-08-22 15:35:51,574;zeus-log;INFO;using default search engine
2019-08-22 15:35:51,575;zeus-log;INFO;starting dork scan with query 'intext:mega.nz/*/*'
2019-08-22 15:35:51,576;zeus-log;WARNING;will not parse webcache URL's (to parse webcache pass -W)
2019-08-22 15:35:51,576;zeus-log;WARNING;only pulling URLs with GET(query) parameters (to pull all URL's pass -E)
2019-08-22 15:35:51,577;zeus-log;INFO;attempting to gather query URL
2019-08-22 15:35:51,580;zeus-log;INFO;setting up virtual display to hide the browser
2019-08-22 15:35:51,882;zeus-log;INFO;setting the browser
2019-08-22 15:35:51,954;zeus-log;ERROR;[7;31;31mselenium_search.pyc failed to gather the URL from search engine, caught exception '[Errno 8] Exec format error' exception has been logged to current log file
Traceback (most recent call last):
File "/sdcard/zeus-scanner/var/search/selenium_search.py", line 268, in parse_search_results
tor=tor, batch=batch, xforward=forward_for
File "/sdcard/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 "/sdcard/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 144, in __init__
self.service.start()
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py", line 74, in start
stdout=self.log_file, stderr=self.log_file)
File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 8] Exec format error
2019-08-22 15:36:17,934;zeus-log;INFO;[32mZeus got an unexpected error and will automatically create an issue for this error, please wait[0m
2019-08-22 15:36:17,935;zeus-log;INFO;[32mgetting authorization[0m
2019-08-22 15:36:17,938;zeus-log;INFO;[32mextracting traceback from log file[0m
2019-08-22 15:36:17,940;zeus-log;INFO;[32mattempting to get firefox browser version[0m
2019-08-22 15:36:17,963;zeus-log;ERROR;[7;31;31mfailed to run firefox[0m
```
Contributor guide
Research direction
Start with var/search/__init__.py around line 148, then trace the callers in var/search/selenium_search.py around lines 82 and 268. Reproduce the browser setup on the reported aarch64 Linux environment and verify whether the selected geckodriver can execute; done means the scan starts without the Exec format error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, python
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100