3 stable releases

1.2.21 Mar 28, 2023
1.2.0 Mar 5, 2023

#39 in #bug

29 downloads per month

MIT and GPL-3.0 licenses

40KB
799 lines

"pre" obfuscated version using goldberg and ptrace anti debug

keyauth rust library

https://docs.rs/keyauth/latest/keyauth/

if you find any bugs. please report them https://github.com/D0A1V2I3D/keyauth-rust/issues

note

a lot of code is from the official keyauth library, now you may ask why does this even exist if it's the same code from the official library? well the official library is old and uses 1.0 api only this has all 3 api versions and also seller api additionaly its on crates.io, so you can just import it in Cargo.toml


lib.rs:

unofficial keyauth library that implements all versions of the api. to make an api version available use the feature flag for that version. example

keyauth = { version = "*" } # this will enable 1.2 api version (default)

by default the 1.2 api is enabled because it is most commonly used. so if you dont want the 1.2 api you have to disable it.

keyauth = { version = "*", features = ["v1_1", "seller"], default-features = false } # this will enable 1.1 and seller api

the default-features = false disabled the default v1_2 api.

basic usage:

let mut auth = keyauth::v1_2::KeyauthApi::new("application name", "ownerid", "application secret", "application version", "api url"); // if you dont have a custom domain for api use "https://keyauth.win/api/1.2/"
auth.init(None).unwrap(); // None -> no hash set, Some("hash") -> if you have has checking enabled
auth.login("username".to_string(), "password".to_string(), Some("hwid".to_string())).unwrap(); // if you want to automaticly generate hwid use None insted of Some(...)

also if you want to use an obfuscator for rust i recommend using obfstr and llvm obfuscator

if the panic feature is enabled then the v1_2 api will panic insted of returning an error when it detects that the request was tampered with

Dependencies

~9–22MB
~310K SLoC