Comments (10)
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.
Hello. Yeah, it works
from rookie.
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.
So, with kdewallet
, it requires manual action to unlock it, right? Can you add this into the README?
from rookie.
@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.
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.
@uvlad7
In my case, when the browser already open it doesn't requires prompt for unlock kwallet
.
from rookie.
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.
.
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.
@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.
@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)
- Some cookies are missing(?) HOT 10
- python 3.12 wheels on windows and macOS HOT 2
- Incorrect expiry times HOT 3
- Retrieving session cookies expires them HOT 18
- [Bug]: Chrome config additional profiles may have "Cookies" filename instead of "Cookie" HOT 2
- [Feature Request]: Dealing with cookies with "Session" expiry HOT 2
- [Feature Request]: How to specify cookie_file and key_file in rookie? HOT 4
- [Feature Request]: Error size cannot be known at compilation time. HOT 6
- [Bug]: panicked at macos HOT 4
- [Bug]: It doesn't work correctly with Octo Browser HOT 3
- [Bug]: Firefox: Incomplete profiles.ini parsing HOT 3
- [Bug]: microsoft-edge-dev cookie file path should be dev instead of Dev? HOT 2
- [Bug]: Inability to Decrypt Cookies in Octo Browser HOT 5
- [Feature Request]: Windows reading chrome cookies that are currently in use. HOT 2
- [Feature Request]: is there a way to copy user profile of a browser? HOT 1
- [Bug]: Panic with chrome 'range end index 3 out of range for slice of length 0' HOT 1
- Can i hide the rust panic message? HOT 1
- [Feature Request]: Replace cfg_if macros with someting else HOT 1
- [Feature Request]: Can you add a function to save cookie as Netscape cookie file format? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rookie.