Comments (10)
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 -
from google_explorer.
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.
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.
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 WebDriverWaitbrowser_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.
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.
By the way.. can u share your distro? if those test doesn't work, i will need to emulate your enviroment =)
from google_explorer.
Try this too:
http://stackoverflow.com/questions/35212993/selenium-fails-to-start-chromedriver
from google_explorer.
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.
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.
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)
- google_explorer HOT 3
- google_explorer.py HOT 7
- python3 google_explorer.py
- Issue when running python3 google-explorer.py HOT 2
- Issue when running python3 google_explorer.py --xpl_filter='apache_rce_struts2_cve_2017_5638' HOT 3
- Google captcha (20 secs) HOT 2
- Unable to run google explorer ! HOT 1
- chromedriver error not working HOT 5
- unable to use script using putty ssh shell HOT 1
- break on line 176 HOT 7
- I dont find features/support/env.rb HOT 1
- How to launch it under Kali Linux?
- ImportError: No module named docopt
- script doesn't write output to results_google_search.txt HOT 6
- lightweight OS (iso or VM image) ready to use with google_explorer HOT 1
- CVE-2018-7600 (Drupalgeddon2) HOT 1
- Drupal 7.X HOT 2
- CVE-2018-11776
- results inside results_google_search.txt are not complete
- License HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google_explorer.