Git Product home page Git Product logo

Comments (10)

spythedude avatar spythedude commented on September 22, 2024 4

Ahh wait - I think i fixed it :)

Can not be run as root because chrome/chromium wont run as root by default.

As a regular user the app seems to work okay -

image

from google_explorer.

paralelo14 avatar paralelo14 commented on September 22, 2024

Hi my friend..

take a look if your chrome path is the same as:

    if browser == 'chromium':
        browser_path = '/usr/bin/chromium'

    if browser == 'chrome':
        browser_path = '/usr/bin/google-chrome-stable'

These are at line 113 to 116 of google_explorer.py

Check if you installed all dependencies too =))

from google_explorer.

spythedude avatar spythedude commented on September 22, 2024

100% sure all deps are installed and those files are indeed in the specified locations - Tried on 2 different machines and both the same error

┌─[root@reb00t]─[~/git/google_explorer]
└──╼ #locate /bin/chromium
/usr/bin/chromium
┌─[root@reb00t]─[~/git/google_explorer]
└──╼ #
┌─[root@reb00t]─[~/git/google_explorer]
└──╼ #locate /bin/google-chrome-stable
/usr/bin/google-chrome-stable
┌─[root@reb00t]─[~/git/google_explorer]
└──╼ #

from google_explorer.

paralelo14 avatar paralelo14 commented on September 22, 2024

Another test please:

Open the python3 shell:

import selenium
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support.ui import WebDriverWait

browser_path = '/usr/bin/google-chrome-stable'
opts = Options()
opts.binary_location = browser_path
driver = webdriver.Chrome(chrome_options=opts)

Se if the chrome browser opens

from google_explorer.

paralelo14 avatar paralelo14 commented on September 22, 2024

If it doesn open, please install the chrome webdriver:
https://sites.google.com/a/chromium.org/chromedriver/downloads

and make the test again

from google_explorer.

paralelo14 avatar paralelo14 commented on September 22, 2024

By the way.. can u share your distro? if those test doesn't work, i will need to emulate your enviroment =)

from google_explorer.

paralelo14 avatar paralelo14 commented on September 22, 2024

Try this too:
http://stackoverflow.com/questions/35212993/selenium-fails-to-start-chromedriver

from google_explorer.

spythedude avatar spythedude commented on September 22, 2024

Hi Anarcoder, Thanks so much for your help so far. Still no joy.

My distro is Parrot OS

┌─[root@parrot]─[~/git/google_explorer]
└──╼ #lsb_release -a
Distributor ID: Parrot
Description:    Parrot Security 3.1 - Defcon
Release:    3.1
Codename:   defcon
┌─[root@parrot]─[~/git/google_explorer]
└──╼ #google-chrome --version
Google Chrome 53.0.2785.101 
┌─[root@parrot]─[~/git/google_explorer]
└──╼ #python3
Python 3.5.2+ (default, Aug 30 2016, 19:08:42) 
[GCC 6.2.0 20160822] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from selenium import webdriver
>>> browser = webdriver.Chrome('/opt/google/chromedriver')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/selenium/webdriver/chrome/webdriver.py", line 67, in __init__
    desired_capabilities=desired_capabilities)
  File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webdriver.py", line 91, in __init__
    self.start_session(desired_capabilities, browser_profile)
  File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webdriver.py", line 173, in start_session
    'desiredCapabilities': desired_capabilities,
  File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webdriver.py", line 233, in execute
    self.error_handler.check_response(response)
  File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally
  (Driver info: chromedriver=2.20.353124 (035346203162d32c80f1dce587c8154a1efa0c3b),platform=Linux 4.6.0-parrot-amd64 x86_64)

from google_explorer.

paralelo14 avatar paralelo14 commented on September 22, 2024

Oh very nice my friend =)))

Thanks for testing and i didn't no this detail of running as root.. thanks for using hope u like =))

from google_explorer.

aliaseel avatar aliaseel commented on September 22, 2024

Traceback (most recent call last):
File "google_explorer.py", line 318, in
main()
File "google_explorer.py", line 313, in main
myScan = GoogleScanner(dork, browser, filters)
File "google_explorer.py", line 82, in init
self.driver = self.validate_browser()
File "google_explorer.py", line 106, in validate_browser
driver = webdriver.Chrome(chrome_options=opts)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/chrome/webdriver.py", line 69, in init
desired_capabilities=desired_capabilities)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 90, in init
self.start_session(desired_capabilities, browser_profile)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 177, in start_session
response = self.execute(Command.NEW_SESSION, capabilities)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 236, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 192, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: crashed
(Driver info: chromedriver=2.20.353124 (035346203162d32c80f1dce587c8154a1efa0c3b),platform=Linux 4.8.0-kali1-amd64 x86_64)

from google_explorer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.