Giter VIP home page Giter VIP logo

Comments (9)

mxrch avatar mxrch commented on July 17, 2024 1

@presmedia002 @alfonsostg does it works with the last updates ?

from ghunt.

mxrch avatar mxrch commented on July 17, 2024 1

Is it opening an automated browser to execute the obfuscated Javascript.
So I guess you talk about the Chrome browser version, now what's your chromedriver version ? Either it auto installed a folder in the GHunt directory like a folder named "86" either you manually downloaded the chromedriver in the GHunt directory.

from ghunt.

stale avatar stale commented on July 17, 2024 1

This issue has been automatically marked as stale because it has not had recent activity on the last 18 days. It will be closed in 6 days if no further activity occurs.

from ghunt.

presmedia002 avatar presmedia002 commented on July 17, 2024

made sure to not include the quotes when pasting them.

from ghunt.

mxrch avatar mxrch commented on July 17, 2024

Try disconnect and relogin in your Google Account and take the cookies with the right names, and try to login to Hangouts and Google Docs before just to be sure you don't have a popup, warning or anything else, because it uses Hangouts and Google Docs to check for the cookies.

from ghunt.

alfonsostg avatar alfonsostg commented on July 17, 2024

Exact same issue for me.

OS: MacOS catalina 10.15.4

Manual (not docker) installation, clean G account re-logged in, cookies taken from Chrome.

from ghunt.

alfonsostg avatar alfonsostg commented on July 17, 2024

@mxrch [+] The cookies seems valid !!

But after it fails in opening browser with:

Google Docs Token => XXXXXXXXXXXXXXXXXXXXXXXX:NNNNNNNNNNN
Traceback (most recent call last):
  File "check_and_gen.py", line 159, in <module>
    auth_token, hangouts_token = get_hangouts_tokens(cookies, driverpath)
  File "check_and_gen.py", line 70, in get_hangouts_tokens
    chrome_options=chrome_options
  File "/Users/me/opt/anaconda3/lib/python3.7/site-packages/seleniumwire/webdriver/browser.py", line 86, in __init__
    super().__init__(*args, **kwargs)
  File "/Users/me/opt/anaconda3/lib/python3.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 81, in __init__
    desired_capabilities=desired_capabilities)
  File "/Users/me/opt/anaconda3/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
    self.start_session(capabilities, browser_profile)
  File "/Users/me/opt/anaconda3/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 255, in start_session
    self.session_id = response['sessionId']
TypeError: 'NoneType' object is not subscriptable

From the documentation I wasn't expecting it to open a browser, just to generate the tokens.

Why is it opening a browser? Just in case, my chrome version is Version 86.0.4240.111 (Official Build) (x86_64)

from ghunt.

alfonsostg avatar alfonsostg commented on July 17, 2024

Hey.

FYI: ChromeDriver 86.0.4240.22

If I just:

Enter these browser cookies found at accounts.google.com :
__Secure-3PSID => 
APISID => 
SAPISID => 
HSID => 

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

Google Docs Token => XXXX:NNNN
Error making request page...
Traceback (most recent call last):
  File "/Users/me/opt/anaconda3/lib/python3.7/site-packages/seleniumwire/proxy/proxy2.py", line 91, in proxy_request
    conn.request(self.command, path, req_body, dict(req.headers))
(...)

But If I:

./chromedriver&
[1] 12214
Starting ChromeDriver 86.0.4240.22
(...)
(base) ➜  GHunt git:(master) ✗ python check_and_gen.py
[+] Detected stored cookies, checking it

[+] The cookies seems valid !

Do you want to enter new browser cookies from accounts.google.com ? (Y/n) n
Do you want to generate new Google Docs and Hangouts tokens ? (Y/n) y
Generating the Google Docs and Hangouts token...

Google Docs Token => 
Authorization Token =>
Hangouts Token =>

And I can correctly use GHunt!

from ghunt.

Castle-Oak avatar Castle-Oak commented on July 17, 2024

Might I recommend using something to grab the cookies programmatically from Chrome?
https://github.com/n8henrie/pycookiecheat
I could send over a pull request sometime this weekend.

from ghunt.

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.