Get username & password from Chrome.

Overview

chrome_password

Steal Get username & password from Chrome. (Now Only Windows)

Installation

You can download the exe binary from the releases page.

With Cargo:

cargo install chrome_password

Usage

➜  ~  chrome_password
+----------------------------------------+------------------------+---------------------------+
| url                                    | username               | password                  |
+----------------------------------------+------------------------+---------------------------+ 
| https://baidu.com                      | justjavac              | 12345678                  | 
+----------------------------------------+------------------------+---------------------------+ 
| http://127.0.0.1/login.php             | admin                  | 12345678                  | 
+----------------------------------------+------------------------+---------------------------+ 
| https://www.zhihu.com/login            | root                   | 12345678                  |

Use as crate

Add this to your Cargo.toml:

[dependencies]
chrome_password = "0.2"

Code:

use std::env;
use std::path::PathBuf;

fn main() {
  let user_profile = env::var("LOCALAPPDATA").unwrap();
  let local_state_path = PathBuf::from(&user_profile).join("Google/Chrome/User Data/Local State");
  let login_data_path = PathBuf::from(&user_profile).join("Google/Chrome/User Data/Default/Login Data");

  let master_key = chrome_password::get_master_key(&local_state_path);
  let password = chrome_password::get_password(&login_data_path, &master_key);

  println!("{:?}", &password);
}

Related projects

License

chrome_password is released under the MIT License. See the bundled LICENSE file for details.

You might also like...
A password entropy calculator.

paspio — pasvorta entropio A (naive) password entropy calculator. Refrain from using this as a sole measure of password strength, it should be used in

Password-Authenticated Key Agreement protocols

RustCrypto: PAKEs Password-Authenticated Key Agreement protocols implementation. Warnings Crates in this repository have not yet received any formal c

Password hashing functions / KDFs

RustCrypto: Password Hashes Collection of password hashing algorithms, otherwise known as password-based key derivation functions, written in pure Rus

A Rust port of the password primitives used in Django Project.

Rust DjangoHashers A Rust port of the password primitives used in Django Project. Django's django.contrib.auth.models.User class has a few methods to

Rest API to check if a password is in a data breach

easypwned (haveibeenpwned / HIBP) Rest API to check if a password is in a data breach. Works offline - everything stays on your machine! Database is i

Smarter brute-force password searching for PKZIP encrypted files

Zip Blitz Motivation This program was created for a very specfic problem I had. I had a large encrypted zip file that I lost/forgot the password for.

The free password manager for power users
The free password manager for power users

The free password manager for power users

Rust-based password mutator for brute force attacks

PWFuzz-RS A Rust-based password mutator for brute force attacks Disclaimer This tool works, but was mainly an experiment. Please do not expect frequen

A lightning-fast password generator and manager written in Rust
A lightning-fast password generator and manager written in Rust

Passlane A lightning-fast password manager for the command line Features Generate passwords Place the generated password into the clipboard Save previ

Comments
  • failed to install chrome_password on Mac 12.3

    failed to install chrome_password on Mac 12.3

    cargo install chrome_password

    error[E0433]: failed to resolve: could not find `um` in `winapi`
     --> /Users/yuwdong/.cargo/registry/src/github.com-1ecc6299db9ec823/chrome_password-0.1.0/src/lib.rs:6:13
      |
    6 | use winapi::um::dpapi::CryptUnprotectData;
      |             ^^ could not find `um` in `winapi`
    
    error[E0433]: failed to resolve: could not find `um` in `winapi`
     --> /Users/yuwdong/.cargo/registry/src/github.com-1ecc6299db9ec823/chrome_password-0.1.0/src/lib.rs:7:13
      |
    7 | use winapi::um::wincrypt::CRYPTOAPI_BLOB;
      |             ^^ could not find `um` in `winapi`
    
    For more information about this error, try `rustc --explain E0433`.
    error: could not compile `chrome_password` due to 2 previous errors
    

    envs

    cargo -V cargo 1.62.1 (a748cf5a3 2022-06-08)

    rustc -V rustc 1.62.1 (e092d0b6b 2022-07-16)

    Mac 12.3

    opened by dongyuwei 1
Owner
迷渡
Creator of vscode-deno. Currently a contributor to Deno @denoland.
迷渡
An implementation of the OPAQUE password-authenticated key exchange protocol

The OPAQUE key exchange protocol OPAQUE is an asymmetric password-authenticated key exchange protocol. It allows a client to authenticate to a server

Novi 178 Jan 9, 2023
Master Password in Pure Rust

Master Password •••| This is the Rust version of the original found here. This can be used as a drop-in replacement for the reference C version, offer

Rust India 34 Apr 13, 2022
A Rust port of the password primitives used in Django Project.

Rust DjangoHashers A Rust port of the password primitives used in Django Project. Django's django.contrib.auth.models.User class has a few methods to

Ronaldo Ferreira 52 Nov 17, 2022
The simple password manager for geeks, built with Rust.

Rooster Rooster is a simple password manager for geeks (it works in the terminal). Rooster is made available free of charge. You can support its devel

Conrad Kleinespel 131 Dec 25, 2022
🐴 RusTOTPony — CLI manager of one-time password generators aka Google Authenticator

?? RusTOTPony CLI manager of time-based one-time password generators. It is a desktop alternative for Google Authenticator. Installation Arch Linux Pa

German Lashevich 23 Jan 5, 2023
A safe implementation of the secure remote password authentication and key-exchange protocol (SRP), SRP6a and legacy are as features available.

Secure Remote Password (SRP 6 / 6a) A safe implementation of the secure remote password authentication and key-exchange protocol (SRP version 6a). Ver

Sven Assmann 10 Nov 3, 2022
A simple password manager written in rust

Passman - A password manager written in rust. How to use?: USAGE: passman option Currently available options are: new - initalize passman with a new m

Strawkage 7 Aug 26, 2021
A simple password manager written in Rust

ripasso A simple password manager written in Rust. The root crate ripasso is a library for accessing and decrypting passwords stored in pass format (G

Joakim Lundborg 550 Dec 30, 2022
Ruo is a dictionary-based password cracker written in rust 🦀 .

Ruo is a dictionary-based password cracker written in rust ?? . The primary purpose is to crack weak hashes/commonly used passwords.

Asjid Kalam 10 Mar 6, 2022
A password manager coded in rust

pasman A password manager coded in rust Install Dependency rust Shell git clone https://github.com/AMTitan/pasman.git cd pasman cargo build --release

Arthur Melton 4 Nov 8, 2021