Giter Site home page Giter Site logo

cant decrypt value about rookie HOT 10 CLOSED

benhacka avatar benhacka commented on May 23, 2024
cant decrypt value

from rookie.

Comments (10)

thewh1teagle avatar thewh1teagle commented on May 23, 2024

The only thing which isn't implemented yet is decryption in Linux using Secret Storage
Most of the time chrome doesn't use it on Linux and simply use constant key for encrypt.
Looks like it's enabled on your os
Does browser_cookie3 works for you with chrome?

Try the following:
pip install browser_cookie3

import browser_cookie3
cj = browser_cookie3.chrome()
print(cj)

Let me know if it works for you, if so I will implement it in rookie
If it doesn't work for you either with browser_cookie3 let me know too

from rookie.

benhacka avatar benhacka commented on May 23, 2024

Hello. Yeah, it works

from rookie.

thewh1teagle avatar thewh1teagle commented on May 23, 2024

I added support for libsecret and kdewallet in new version

pip install -U rookiepy

from rookiepy import chrome, to_dict
cookies = chrome()
print(to_dict(cookies))

You can try it.

let me know if it works :)

from rookie.

uvlad7 avatar uvlad7 commented on May 23, 2024

So, with kdewallet, it requires manual action to unlock it, right? Can you add this into the README?

from rookie.

thewh1teagle avatar thewh1teagle commented on May 23, 2024

@uvlad7
I'm not sure if it always require manual action to unlock it,
I think that it's enough to open the browser once since the computer booted and then it works without asking

Does it opened password prompt for you?
If so, the browser was opened since you booted to the OS?

from rookie.

uvlad7 avatar uvlad7 commented on May 23, 2024

As far as I know, each keyring needs to be opened once after a login (default keyring is opened during a login). Yes, I got a prompt once (during the first try), and yep, browser was opened.

from rookie.

thewh1teagle avatar thewh1teagle commented on May 23, 2024

@uvlad7
In my case, when the browser already open it doesn't requires prompt for unlock kwallet.

from rookie.

uvlad7 avatar uvlad7 commented on May 23, 2024

I tried to relogin and yes, after that I got that prompt again. But I was thinking why is it required at all, so I pressed cancel and, surprisingly, I got the same result I'd got before when I unlocked the keyring. So, I assume you try to access the default one, but trigger something else.
1st invocation - browsers weren't started, 2nd - they were, the same result. In both cases the popup has appeared, but I clicked Cancel.
Screenshot from 2023-10-06 02-03-31
.
Screenshot from 2023-10-06 02-02-31

Btw I don't understand where this cookie came from, I haven't found this value in both my chromes, and of course I have much more that 1 cookie on google.com. And rookiepy.chrome(["mail.google.com"]) returns an empty result.

I also don't understand how to distinguish multiple chromes (I have stable and beta installed):

vladimir@np940x5n:~$ {   IFS=:;   ls -H $PATH; } | grep google-chrome
google-chrome
google-chrome-beta
google-chrome-stable
google-chrome
google-chrome-beta
google-chrome-stable
vladimir@np940x5n:~$ which google-chrome
/usr/bin/google-chrome
vladimir@np940x5n:~$ which google-chrome-beta 
/usr/bin/google-chrome-beta
vladimir@np940x5n:~$ which google-chrome-stable 
/usr/bin/google-chrome-stable
vladimir@np940x5n:~$ ll /usr/bin/google-chrome
lrwxrwxrwx 1 root root 31 сак 21  2020 /usr/bin/google-chrome -> /etc/alternatives/google-chrome*
vladimir@np940x5n:~$ ll /etc/alternatives/google-chrome
lrwxrwxrwx 1 root root 29 сак 21  2020 /etc/alternatives/google-chrome -> /usr/bin/google-chrome-stable*
vladimir@np940x5n:~$ ll /usr/bin/google-chrome-beta
lrwxrwxrwx 1 root root 42 вер 20 05:46 /usr/bin/google-chrome-beta -> /opt/google/chrome-beta/google-chrome-beta*
vladimir@np940x5n:~$ ll /usr/bin/google-chrome-stable
lrwxrwxrwx 1 root root 32 вер 27 07:05 /usr/bin/google-chrome-stable -> /opt/google/chrome/google-chrome*
vladimir@np940x5n:~$ ll /usr/bin/google-chrome-stable
lrwxrwxrwx 1 root root 32 вер 27 07:05 /usr/bin/google-chrome-stable -> /opt/google/chrome/google-chrome*

from rookie.

thewh1teagle avatar thewh1teagle commented on May 23, 2024

@uvlad7
You get the same result when clicking cancel because it takes cookies from another chrome browsers as well from different paths and channels (only chrome browsers)

from rookie.

thewh1teagle avatar thewh1teagle commented on May 23, 2024

@uvlad7
I added this section to the readme

@benhacka
I close this issue as for inactivity, feel free to reopen if you encounter any problems with decryption

from rookie.

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.