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

πŸ•Š Some Fixes and Expansions #27

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

keyiflerolsun
Copy link

@keyiflerolsun keyiflerolsun commented Sep 5, 2022

  • Added Specific temp Folder Β» chrome_pwd = Chrome(tmp_dir="tmp")
  • Added Other Chromium Based Browser Support
  • Added Cookies Support Β» chrome_pwd.get_cookies() | chrome_pwd.cookies_dbs
  • Added History Support Β» chrome_pwd.get_history() | chrome_pwd.history_dbs
  • Added Downloads Support Β» chrome_pwd.get_downloads() | chrome_pwd.downloads_dbs
  • Added FileZilla Support Β» chrome_pwd.get_ftp() | chrome_pwd.ftp_dbs
  • Fixed Windows Chrome > v10 crypt
  • Added Data Save (.json) Β» chrome_pwd.data_save()
  • Edit Readme File

Please Rewrite Readme :)

@keyiflerolsun keyiflerolsun changed the title πŸ•Š Some Fixex and Extendes πŸ•Š Some Fixes and Expansions Sep 5, 2022
@Yakabuff
Copy link

Yakabuff commented Sep 19, 2022

Getting this error with Chromium on Linux:

Traceback (most recent call last):
  File "/home/user/Documents/dev/python/chrome_password_grabber/test.py", line 4, in <module>
    print(pwd.get_password())
  File "/home/user/Documents/dev/python/chrome_password_grabber/chrome.py", line 259, in get_password
    _pass = self.chrome_os.decrypt_func(result[2], browser_name)
  File "/home/user/Documents/dev/python/chrome_password_grabber/chrome.py", line 214, in decrypt_func
    return decrypted.strip().decode("utf8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

Doesn't look like it's decrypting properly.

from chrome import Chrome

pwd = Chrome()
print(pwd.get_password())

I looked through my key manager and there seems to be "Chromium safe storage" and "Chrome safe storage" (I have 2 browsers installed). I changed it to Chromium Safe Storage and it still doesn't work, but should we check for that if we're planning to support other Chromium based browsers?.

If I do return decrypted.strip().decode("utf8", "ignore"), it spits out a garbage value, not my password. I have verified in chromium that the database isn't corrupted and it can actually see the password.

@Yakabuff
Copy link

I changed the master_key value to "peanuts" despite having a Chrome Safe Storage key and it seems to work now... very strange

@Tugamer89
Copy link

Fixed cookie stealer for newer browser versions:

Added to line 113:
file2tmp(f"{browser}\\Network\\Cookies", tmp_dir, f"{app}_NetCookies.sql")

Modified line 279:
self.cookies_dbs = {file for file in listdir(self.tmp_dir) if (file.endswith("_Cookies.sql") or file.endswith("_NetCookies.sql"))}

Modified line 286:
browser_name = cookies_sql.split("_NetCookies.sql" if "_NetCookies.sql" in cookies_sql else "_Cookies.sql")[0]

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.

None yet

3 participants