mxrch / GHunt

🕵️‍♂️ Offensive Google framework.
Other
15.65k stars 1.3k forks source link

Unable to get cookie. #355

Closed OckhamOdyssey closed 1 year ago

OckhamOdyssey commented 2 years ago

Describe the bug Unable to get cookie with a fresh WSL Ubuntu 20.04 LTS install and python3.

To Reproduce Steps to reproduce the behavior:

  1. Clone repo with python3 -m pip install --upgrade -r requirements.txt
  2. Install pip3 with sudo apt install pip3
  3. Install requirements has documentation says python3 -m pip install --upgrade -r requirements.txt
  4. Install Firefox extension has documentation says (https://addons.mozilla.org/es/firefox/addon/ghunt-companion/)
  5. Enter drive.google.com or accounts.google.com and get the token
  6. Execute token gen with python3 check_and_gen.py, select option 2 and paste the base64 cookie.
  7. See this:
    
    /usr/lib/python3/dist-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.9) or chardet (3.0.4) doesn't match a supported version!
    warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
    [-] No stored cookies found

You can facilitate configuring GHunt by using the GHunt Companion extension on Firefox, Chrome, Edge and Opera here : => https://github.com/mxrch/ghunt_companion

[1] (Companion) Put GHunt on listening mode (currently not compatible with docker) [2] (Companion) Paste base64-encoded cookies [3] Enter manually all cookies

Choice => 2 Paste the cookies here => BASE64_TOKEN

[+] The cookies seems valid ! Traceback (most recent call last): File "check_and_gen.py", line 218, in driver = webdriver.Chrome( File "/home/nicolas/.local/lib/python3.8/site-packages/seleniumwire/webdriver.py", line 211, in init super().init(*args, **kwargs) File "/home/nicolas/.local/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 69, in init super().init(DesiredCapabilities.CHROME['browserName'], "goog", File "/home/nicolas/.local/lib/python3.8/site-packages/selenium/webdriver/chromium/webdriver.py", line 92, in init super().init( File "/home/nicolas/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 277, in init self.start_session(capabilities, browser_profile) File "/home/nicolas/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 370, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "/home/nicolas/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 435, in execute self.error_handler.check_response(response) File "/home/nicolas/.local/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 247, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally. (unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location /usr/bin/chromium-browser is no longer running, so ChromeDriver is assuming that Chrome has crashed.) Stacktrace:

0 0x56212c5f9b13

1 0x56212c400688

2 0x56212c424f1f

3 0x56212c4205aa

4 0x56212c45b64a

5 0x56212c4557a3

6 0x56212c42b0ea

7 0x56212c42c225

8 0x56212c6412dd

9 0x56212c6452c7

10 0x56212c62b22e

11 0x56212c6460a8

12 0x56212c61fbc0

13 0x56212c6626c8

14 0x56212c662848

15 0x56212c67cc0d

16 0x7fab8a8ad609


**Expected behavior**
Working with no errors, being able to go to the next step.

**System (please complete the following information):**
 - WIndows 11, WSL2, Ubuntu 20.04.4 LTS
 - Python 3.8.10
abdalmajid77 commented 2 years ago

I get the same problems

Hackcidental commented 2 years ago

I had the same issue, I resolved it installing Chrome