Giter Site home page Giter Site logo

Cookies invalid about ghunt HOT 19 CLOSED

E5GEN2 avatar E5GEN2 commented on June 18, 2024
Cookies invalid

from ghunt.

Comments (19)

mxrch avatar mxrch commented on June 18, 2024 7

I confirm the bug, Google changed something.
I unfortunately don't know how to fix this quickly, it will require some time to understand what changes are needed.

from ghunt.

vuter7 avatar vuter7 commented on June 18, 2024 1

@shion1305

Traceback (most recent call last):
  File "/usr/local/bin/ghunt", line 33, in <module>
    sys.exit(load_entry_point('ghunt', 'console_scripts', 'ghunt')())
  File "/root/GHunt/ghunt/ghunt.py", line 15, in main
    parse_and_run()
  File "/root/GHunt/ghunt/cli.py", line 31, in parse_and_run
    process_args(args)
  File "/root/GHunt/ghunt/cli.py", line 38, in process_args
    trio.run(login.check_and_login, None, args.clean)
  File "/usr/local/lib/python3.10/dist-packages/trio/_core/_run.py", line 1946, in run
    raise runner.main_task_outcome.error
  File "/root/GHunt/ghunt/modules/login.py", line 38, in check_and_login
    cookies, oauth_token = await getting_cookies_dialog(wanted_cookies)
  File "/root/GHunt/ghunt/helpers/auth.py", line 143, in getting_cookies_dialog
    data = json.loads(base64.b64decode(received_data))
  File "/usr/lib/python3.10/base64.py", line 87, in b64decode
    return binascii.a2b_base64(s)
binascii.Error: Incorrect padding

help please

from ghunt.

Navitas28 avatar Navitas28 commented on June 18, 2024

Same issue

from ghunt.

AlexMurd avatar AlexMurd commented on June 18, 2024

Same here

from ghunt.

Shoukaku07 avatar Shoukaku07 commented on June 18, 2024

same issue:


     .d8888b.  888    888                   888
    d88P  Y88b 888    888                   888
    888    888 888    888                   888
    888        8888888888 888  888 88888b.  888888
    888  88888 888    888 888  888 888 "88b 888
    888    888 888    888 888  888 888  888 888
    Y88b  d88P 888    888 Y88b 888 888  888 Y88b.
     "Y8888P88 888    888  "Y88888 888  888  "Y888 v2

             By: mxrch (🐦 @mxrchreborn)
       Support my work on GitHub Sponsors ! 💖

[-] 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 => 1
GHunt is listening on port 60067...
[+] Received cookies !

[-] Seems like the cookies are invalid, try regenerating them.

from ghunt.

iKey-333 avatar iKey-333 commented on June 18, 2024

please share the solution if found

from ghunt.

divyani08 avatar divyani08 commented on June 18, 2024

Facing same issue, anyone has the solution?

from ghunt.

Navitas28 avatar Navitas28 commented on June 18, 2024

Whatever I try, keep getting the same issue:

  1. Tried uninstalling the browser, still keeps failing
  2. Tried with the new google account, no luck
  3. Tried with firefox, still failed.
  4. Tried with docker image, but failed

Please suggest

from ghunt.

securekr avatar securekr commented on June 18, 2024

oauth_tokens ???

from ghunt.

iKey-333 avatar iKey-333 commented on June 18, 2024

I confirm the bug, Google changed something. I unfortunately don't know how to fix this quickly, it will require some time to understand what changes are needed.

Hello. please tell me that there is already a solution :)

from ghunt.

shion1305 avatar shion1305 commented on June 18, 2024

Hey, I found a solution and submitted PR!

Both GHunt and Chrome extension ghunt_companion needs to be fixed.
If you want to use before PR merges, do followings.

  • (If you have already installed ghunt_companion...) disable on your browser
  • Clone shion1305/ghunt_companion
  • Load the cloned files in your browser with Developer mode reference
  • Clone shion1305/GHunt
  • Install required packages with pip install -r requirements.txt
  • Run python main.py login

from ghunt.

blackbla1 avatar blackbla1 commented on June 18, 2024

Could you make it more simple to understand for beginners? Thank you.

from ghunt.

shion1305 avatar shion1305 commented on June 18, 2024

@vuter7 Looks like the bug is unrelated to my changes, I think I can't help you.
Providing more details would be appreciated.

from ghunt.

shion1305 avatar shion1305 commented on June 18, 2024

@blackbla1 Then you have to wait until the problem is fixed, unfortunately.

from ghunt.

mxrch avatar mxrch commented on June 18, 2024

Little note about it : #481

from ghunt.

Alice-Deane avatar Alice-Deane commented on June 18, 2024

Hi all,

I'm encountering the same issue as vuter7. The error is as follows:

Traceback (most recent call last):
  File "/GHunt-master/main.py", line 2, in <module>
    from ghunt import ghunt; ghunt.main()
                             ^^^^^^^^^^^^
  File "/GHunt-master/ghunt/ghunt.py", line 15, in main
    parse_and_run()
  File "/GHunt-master/ghunt/cli.py", line 31, in parse_and_run
    process_args(args)
  File "/GHunt-master/ghunt/cli.py", line 38, in process_args
    trio.run(login.check_and_login, None, args.clean)
  File "/GHunt-master/venv/lib/python3.11/site-packages/trio/_core/_run.py", line 1946, in run
    raise runner.main_task_outcome.error
  File "/GHunt-master/ghunt/modules/login.py", line 38, in check_and_login
    cookies, oauth_token = await getting_cookies_dialog(wanted_cookies)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/GHunt-master/ghunt/helpers/auth.py", line 147, in getting_cookies_dialog
    data = json.loads(base64.b64decode(received_data))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/base64.py", line 88, in b64decode
    return binascii.a2b_base64(s, strict_mode=validate)

I suspect that the issue lies in the incomplete transmission of the base64-encoded cookie to the GHunt master. As shion mentioned, I have modified both the Ghunt-companion extension and the GHunt master. When I attempt to print "received_data" in auth.py, the result differs from when I simply copy/paste the cookies from Ghunt-companion, indicating that a portion is missing. Any assistance would be appreciated.

from ghunt.

shion1305 avatar shion1305 commented on June 18, 2024

Hi, I posted a screencapture, hope this helps.
#480 (comment)

from ghunt.

E5GEN2 avatar E5GEN2 commented on June 18, 2024

@mxrch Boss, I saw you made new commits. Have you guys fixed the cookie issue?

from ghunt.

mxrch avatar mxrch commented on June 18, 2024

@mxrch Boss, I saw you made new commits. Have you guys fixed the cookie issue?

Yup ! pipx upgrade ghunt

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.