Ekultek / Ekultek/Zeus-Scanner

Unhandled exception (caa2d95a)

Open
#764 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:
`(58, 0)`

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 89, in get_urls
search = browser.find_element_by_name('q')
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 426, in find_element_by_name
return self.find_element(by=By.NAME, value=name)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 832, in find_element
'value': value})['value']
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 297, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
raise exception_class(message, screen, stacktrace)
NoSuchElementException: Message: Unable to locate element: [name="q"]
```

Running details:
`Linux-4.19.0-kali5-amd64-x86_64-with-Kali-kali-rolling-kali-rolling`

Commands used:
`zeus.py -d instreamset:url:cid= instreamset:url:asp site:ie --random-agent -A`

Log file info:
```2019-06-22 14:16:50,123;zeus-log;INFO;log file being saved to '/root/zeus-scanner/log/zeus-log-27.log'
2019-06-22 14:16:50,123;zeus-log;INFO;random agent being used 'Mozilla/5.0 (Windows; U; Windows NT 5.1; cs-CZ) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7'
2019-06-22 14:16:50,124;zeus-log;WARNING;AOL will take a little longer due to pop-ups
2019-06-22 14:16:50,124;zeus-log;INFO;specified to use non-default search engine
2019-06-22 14:16:50,124;zeus-log;INFO;starting dork scan with query 'instreamset:url:cid= instreamset:url:asp site:ie'
2019-06-22 14:16:54,929;zeus-log;WARNING;only pulling URLs with GET(query) parameters (to pull all URL's pass -E)
2019-06-22 14:16:54,929;zeus-log;INFO;attempting to gather query URL
2019-06-22 14:16:54,929;zeus-log;INFO;setting up virtual display to hide the browser
2019-06-22 14:16:55,047;zeus-log;INFO;setting the browser
2019-06-22 14:16:57,631;zeus-log;INFO;browser will open shortly
2019-06-22 14:16:59,731;zeus-log;ERROR;selenium_search.pyc failed to gather the URL from search engine, caught exception 'Message: Unable to locate element: [name="q"]' 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 89, in get_urls
search = browser.find_element_by_name('q')
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 426, in find_element_by_name
return self.find_element(by=By.NAME, value=name)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 832, in find_element
'value': value})['value']
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 297, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
raise exception_class(message, screen, stacktrace)
NoSuchElementException: Message: Unable to locate element: [name="q"]

2019-06-22 14:17:26,266;zeus-log;INFO;Zeus got an unexpected error and will automatically create an issue for this error, please wait
2019-06-22 14:17:26,266;zeus-log;INFO;getting authorization
2019-06-22 14:17:26,268;zeus-log;INFO;extracting traceback from log file
2019-06-22 14:17:26,269;zeus-log;INFO;attempting to get firefox browser version
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure with `zeus.py -d instreamset:url:cid= instreamset:url:asp site:ie --random-agent -A`, then inspect `var/search/selenium_search.py` at `get_urls` line 89 and `parse_search_results` line 268. Done means the reported search-engine failure is understood and the unhandled exception no longer occurs for this command.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.