A rust utility to extract encrypted cookies from Chrome. More browsers support will come.
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.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.
$ cd src/target/
$ ./rookie <url> <browser_name>
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();
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(())
}
Jacopo De Gattis - (liljackx0@gmail.com)