Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix for Invalid Cookies] Make GHunt accept all cookies #480

Closed
wants to merge 2 commits into from

Conversation

Shion1305
Copy link

@Shion1305 Shion1305 commented Jan 10, 2024

This is a solution for these issues.

Due to changes in Google Authentication, GHunt does not work as for 2024/01/11.
I've figured out that including all cookies will work.

I submitted a PR in mxrch/ghunt_companion, which will pass all cookies to GHunt on authentication.
There was some codes that prevents doing so in GHunt, so I removed that.
https://github.com/mxrch/GHunt/blob/e87346963658dd8d80cef49dbf1bd263e96d352e/ghunt/helpers/auth.py#L99C1-L101C21

Required cookies are remained unidentified, so I marked Enter manually all cookies as currently not supported.

@Bang1338
Copy link

i tested it and still not fixed.

image

i'm using ungoogled chromium for this.

image

@Shion1305
Copy link
Author

@Bang1338 Looks like encoded cookies are short, which I think you haven't updated the Chrome extension(ghunt_companion). Try followings. Let me know the results.

  • If you have already installed ghunt_companion, disable it on your browser
  • Clone shion1305/ghunt_companion
  • Load the cloned files in your browser with Developer mode reference

@Bang1338
Copy link

Bang1338 commented Jan 12, 2024

@Bang1338 Looks like encoded cookies are short, which I think you haven't updated the Chrome extension(ghunt_companion). Try followings. Let me know the results.

  • If you have already installed ghunt_companion, disable it on your browser
  • Clone shion1305/ghunt_companion
  • Load the cloned files in your browser with Developer mode reference

Thank, the cookie is longer, but sadly it doesn't work

image

Note: I've performed "robots.txt" and cleared all cookies, before getting cookies.

@Shion1305
Copy link
Author

I found that you have to access http://docs.google.com before you run ghunt_companion.
I created a screen capture of how to run login procedure, hope this helps.

bandicam.2024-01-13.08-56-16-682.mp4

@Shion1305 Shion1305 mentioned this pull request Jan 13, 2024
@hversu
Copy link

hversu commented Jan 13, 2024

I have tried this branch in various ways in chrome and firefox using choice 1: listener
-developer mode on (chrome)
-go to docs.google.com first

I still get invalid cookies

@Bang1338
Copy link

I found that you have to access http://docs.google.com before you run ghunt_companion. I created a screen capture of how to run login procedure, hope this helps.

bandicam.2024-01-13.08-56-16-682.mp4

image

It work, thank!

@Shion1305
Copy link
Author

Shion1305 commented Jan 21, 2024

I'm closing this PR as the issue has been resolved.

@Shion1305 Shion1305 closed this Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants