Type Error after generating the Google Docs Token #506

Closed
opened 2025-10-14 17:36:11 -06:00 by navan · 0 comments
Owner

Originally created by @SaiKrishna0506 on 10/2/2020

┌─[✗]─[XYZ@parrot]─[/opt/GHunt]
└──╼ $python3 check_and_gen.py
__Secure-3PSID => REDACTED
APISID => REDACTED
SAPISID => REDACTED
HSID => REDACTED

[+] The cookies seems valid ! Generating the Google Docs and Hangouts token...

Google Docs Token => REDACTED
Traceback (most recent call last):
File "check_and_gen.py", line 74, in
driver = webdriver.Chrome(executable_path=driverpath, seleniumwire_options=options, options=chrome_options)
File "/usr/local/lib/python3.8/dist-packages/seleniumwire/webdriver/browser.py", line 86, in init
super().init(*args, **kwargs)
TypeError: init() got an unexpected keyword argument 'options'

┌─[✗]─[XYZ@parrot]─[/opt/GHunt]
└──╼ $python3 --version
Python 3.8.5

#After trying to run it with sudo, I got the Following Error:

[+] The cookies seems valid ! Generating the Google Docs and Hangouts token...

Google Docs Token => REDACTED
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/selenium/webdriver/common/service.py", line 72, in start
self.process = subprocess.Popen(cmd, env=self.env,
File "/usr/lib/python3.8/subprocess.py", line 854, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'chromedriver'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "check_and_gen.py", line 74, in
driver = webdriver.Chrome(executable_path=driverpath, seleniumwire_options=options, options=chrome_options)
File "/usr/local/lib/python3.8/dist-packages/seleniumwire/webdriver/browser.py", line 86, in init
super().init(*args, **kwargs)
File "/usr/lib/python3/dist-packages/selenium/webdriver/chrome/webdriver.py", line 92, in init
self.service.start()
File "/usr/lib/python3/dist-packages/selenium/webdriver/common/service.py", line 81, in start
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

#I have the "chromedriver" executable in my current directory. And even added it to my PATH variable.

┌─[✗]─[XYZ@parrot]─[/opt/GHunt]
└──╼ $echo $PATH
/home/XYZ/.local/bin:/snap/bin:/usr/sandbox/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/share/games:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/opt/GHunt/chromedriver

*Originally created by @SaiKrishna0506 on 10/2/2020* ┌─[✗]─[XYZ@parrot]─[/opt/GHunt] └──╼ $python3 check_and_gen.py __Secure-3PSID => REDACTED APISID => REDACTED SAPISID => REDACTED HSID => REDACTED [+] The cookies seems valid ! Generating the Google Docs and Hangouts token... Google Docs Token => REDACTED Traceback (most recent call last): File "check_and_gen.py", line 74, in <module> driver = webdriver.Chrome(executable_path=driverpath, seleniumwire_options=options, options=chrome_options) File "/usr/local/lib/python3.8/dist-packages/seleniumwire/webdriver/browser.py", line 86, in __init__ super().__init__(*args, **kwargs) TypeError: __init__() got an unexpected keyword argument 'options' ┌─[✗]─[XYZ@parrot]─[/opt/GHunt] └──╼ $python3 --version Python 3.8.5 #After trying to run it with sudo, I got the Following Error: [+] The cookies seems valid ! Generating the Google Docs and Hangouts token... Google Docs Token => REDACTED Traceback (most recent call last): File "/usr/lib/python3/dist-packages/selenium/webdriver/common/service.py", line 72, in start self.process = subprocess.Popen(cmd, env=self.env, File "/usr/lib/python3.8/subprocess.py", line 854, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'chromedriver' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "check_and_gen.py", line 74, in <module> driver = webdriver.Chrome(executable_path=driverpath, seleniumwire_options=options, options=chrome_options) File "/usr/local/lib/python3.8/dist-packages/seleniumwire/webdriver/browser.py", line 86, in __init__ super().__init__(*args, **kwargs) File "/usr/lib/python3/dist-packages/selenium/webdriver/chrome/webdriver.py", line 92, in __init__ self.service.start() File "/usr/lib/python3/dist-packages/selenium/webdriver/common/service.py", line 81, in start raise WebDriverException( selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home #I have the "chromedriver" executable in my current directory. And even added it to my PATH variable. ┌─[✗]─[XYZ@parrot]─[/opt/GHunt] └──╼ $echo $PATH /home/XYZ/.local/bin:/snap/bin:/usr/sandbox/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/share/games:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/opt/GHunt/chromedriver
Sign in to join this conversation.
No labels
backdoor-try
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
can't read
can't read
can't read
can't read
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
good first issue
google-patch
google-patch
hacktoberfest-accepted
hacktoberfest-accepted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
knowledge-enrichment
known bug
question
question
question
question
question
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/GHunt#506
No description provided.