Ekultek / Ekultek/Zeus-Scanner

Unhandled exception (d82b34dd)

Open
#760 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 "/home/li4/zeus-scanner/var/search/selenium_search.py", line 268, in parse_search_results
tor=tor, batch=batch, xforward=forward_for
File "/home/li4/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-5.0.0-16-generic-x86_64-with-Ubuntu-19.04-disco`

Commands used:
`zeus.py -l /home/li4/zeus-scanner/pars.txt -D -B -A --verbose`

Log file info:
```2019-06-12 17:59:47,295;zeus-log;INFO;found a total of 0 URLs with given query 'com_phocagallery joomla 1.5'
2019-06-12 17:59:47,296;zeus-log;INFO;starting dork scan with query 'com_fireboard joomla 1.5'
2019-06-12 17:59:47,296;zeus-log;DEBUG;parsing blacklist
2019-06-12 17:59:47,296;zeus-log;DEBUG;checking for user-agent and proxy configuration
2019-06-12 17:59:47,297;zeus-log;WARNING;only pulling URLs with GET(query) parameters (to pull all URL's pass -E)
2019-06-12 17:59:47,297;zeus-log;INFO;attempting to gather query URL
2019-06-12 17:59:47,297;zeus-log;INFO;setting up virtual display to hide the browser
2019-06-12 17:59:47,451;zeus-log;INFO;setting the browser
2019-06-12 17:59:50,529;zeus-log;INFO;browser will open shortly
2019-06-12 17:59:51,237;zeus-log;DEBUG;searching search engine for the 'q' element (search button)
2019-06-12 17:59:51,247;zeus-log;INFO;searching search engine using query 'com_fireboard joomla 1.5'
2019-06-12 17:59:54,321;zeus-log;DEBUG;obtaining URL from selenium
2019-06-12 17:59:54,328;zeus-log;DEBUG;found current URL from selenium browser
2019-06-12 17:59:54,329;zeus-log;INFO;closing the browser and continuing process..
2019-06-12 17:59:54,384;zeus-log;INFO;URL successfully gathered, searching for GET parameters
2019-06-12 17:59:54,384;zeus-log;INFO;no proxy configuration detected
2019-06-12 17:59:54,649;zeus-log;INFO;adjusting user-agent header to default user agent 'Zeus-Scanner/1.5.2.21b875 (Language=Python/2.7.16; Platform=Linux)'
2019-06-12 17:59:54,651;zeus-log;WARNING;did not find any URLs with given query 'com_fireboard joomla 1.5' writing query to blacklist
2019-06-12 17:59:54,652;zeus-log;INFO;successfully wrote found items to '/home/li4/zeus-scanner/log/blacklist/.blacklist'
2019-06-12 17:59:54,652;zeus-log;INFO;found a total of 0 URLs with given query 'com_fireboard joomla 1.5'
2019-06-12 17:59:54,652;zeus-log;INFO;starting dork scan with query 'inurl:gov index.php/using-joomla/extensions/components/users-component/registration-form'
2019-06-12 17:59:54,653;zeus-log;DEBUG;parsing blacklist
2019-06-12 17:59:54,653;zeus-log;DEBUG;checking for user-agent and proxy configuration
2019-06-12 17:59:54,653;zeus-log;WARNING;only pulling URLs with GET(query) parameters (to pull all URL's pass -E)
2019-06-12 17:59:54,654;zeus-log;INFO;attempting to gather query URL
2019-06-12 17:59:54,654;zeus-log;INFO;setting up virtual display to hide the browser
2019-06-12 17:59:54,787;zeus-log;INFO;setting the browser
2019-06-12 17:59:57,942;zeus-log;INFO;browser will open shortly
2019-06-12 17:59:58,360;zeus-log;DEBUG;searching search engine for the 'q' element (search button)
2019-06-12 17:59:58,368;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 "/home/li4/zeus-scanner/var/search/selenium_search.py", line 268, in parse_search_results
tor=tor, batch=batch, xforward=forward_for
File "/home/li4/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-12 18:03:11,671;zeus-log;INFO;Zeus got an unexpected error and will automatically create an issue for this error, please wait
2019-06-12 18:03:11,671;zeus-log;INFO;getting authorization
2019-06-12 18:03:11,710;zeus-log;INFO;extracting traceback from log file
2019-06-12 18:03:11,711;zeus-log;INFO;attempting to get firefox browser version
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure with the reported Zeus command and inspect var/search/selenium_search.py at lines 89 and 268. Check why the browser no longer exposes the expected `q` element in the reported Firefox and geckodriver setup. Done means the search step gathers query URLs without raising NoSuchElementException.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.