DanMcInerney / DanMcInerney/shellshock-hunter-google

Some issues i encountered.

Open
#1 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
27
Forks
13
PR merge metrics
No merged PRs in 30d

Description

Hello, not sure if you are still maintaining this repository but i just wanted to mention a few things.

Your xpath needs to be changed to;
`find_elements_by_xpath("//div[@data-hveid]/div/div/a[@onmousedown]")`

To reflect the current Google source code.

Also, i seem to be getting a selenium error. I realize you don't maintain the selenium library but maybe you had some thoughts.

```
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py", line 174, in __init__
keep_alive=True)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: newSession
```
The problem seems to be in the response handler. I had a quick glance at first and when i saw;
`message, screen, stacktrace`
In the error message it reminded me of an issue i resolved that had to do with python virtual display. I did not encounter this issue on BackBox Ubuntu but on Debian the virtual display issue was resolved by adding the following code.

```
from pyvirtualdisplay import Display

display = Display(visible=0, size=(800, 600))
display.start()
```

It was my initial thought that this might be the issue on my current distro as well. Running Lubuntu at the moment. Adding the above code did not seem to fix it.

In any case, if you're still around. Any ideas on how to resolve this issue?

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the Google result lookup that uses the XPath shown in the issue and inspect its Selenium Firefox setup. Reproduce the reported newSession error on the described environment, then verify whether the XPath update and any confirmed WebDriver-related fix address the reported behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
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.