Skip to content

A rust utility to extract encrypted cookies from Chrome.

License

Notifications You must be signed in to change notification settings

jacopo-degattis/rookie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cookie Extractor

Description

A rust utility to extract encrypted cookies from Chrome. More browsers support will come.

CLI Usage

First compile the project

$ cargo build

Install and/or execute from target folder

Now you can either install the program in your system (it will be located in /usr/local/bin/) or you can execute it without installation.

Install in your system

$ ./install.sh
$ rookie <url> <browser_name>

N.B: if you exec rookie without parameters example code will run. You can find example code in "main.rs" file of this project.

Executing from local target folder

$ cd src/target/
$ ./rookie <url> <browser_name>

Library Usage

First import rookie library

mod rookie;
pub use rookie::Rookie;

Then instantiate a rookie object

let rk = Rookie::new();

Last but not least call chrome_cookies method

let cookies = r.chrome_cookies(<url:&str>, <browser:&str>).unwrap();

Here's an example

mod rookie;
pub use rookie::Rookie;

fn main() -> Result<(), std::io::Error> {
    let r = Rookie::new();
    let cookies = r.chrome_cookies("https://www.youtube.com").unwrap();
    println!("{:?}", cookies);

    Ok(())
}

Author

Jacopo De Gattis - (liljackx0@gmail.com)

About

A rust utility to extract encrypted cookies from Chrome.

Topics

Resources

License

Stars

Watchers

Forks