Crates.io | chrome_password |
lib.rs | chrome_password |
version | 0.2.0 |
source | src |
created_at | 2022-08-09 13:40:07.263539 |
updated_at | 2022-08-10 08:49:07.28881 |
description | Get username & password from Chrome. |
homepage | |
repository | https://github.com/justjavac/chrome_password.rs |
max_upload_size | |
id | 641809 |
size | 26,629 |
Steal Get username & password from Chrome. (Now Only Windows)
You can download the exe binary from the releases page.
With Cargo:
cargo install chrome_password
➜ ~ 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 |
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);
}
Deno Version Manager(dvm) is released under the MIT License. See the bundled LICENSE file for details.