GithubHelp home page GithubHelp logo

chrome_password.rs's Introduction

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.

chrome_password.rs's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

chrome_password.rs's Issues

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

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.