mirror of https://github.com/pozm/gdke.git
commit changes
This commit is contained in:
parent
a4f3a7abd7
commit
1dd617d65b
|
@ -14,7 +14,8 @@ static_detour! {
|
||||||
pub static OpenAndParse: unsafe extern "fastcall" fn(*const i32, *const i32, *const u8, bool) -> ();
|
pub static OpenAndParse: unsafe extern "fastcall" fn(*const i32, *const i32, *const u8, bool) -> ();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[poggers_derive::create_entry(no_free)]
|
#[cfg_attr(debug_assertions, poggers_derive::create_entry)]
|
||||||
|
#[cfg_attr(not(debug_assertions), poggers_derive::create_entry(no_console))]
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
let mut sigs = HashMap::<u32, (&'static str, i32)>::new();
|
let mut sigs = HashMap::<u32, (&'static str, i32)>::new();
|
||||||
sigs.insert(
|
sigs.insert(
|
||||||
|
@ -54,6 +55,7 @@ pub fn main() {
|
||||||
let ptr_to_key = (key as usize + 8) as *const *const u8;
|
let ptr_to_key = (key as usize + 8) as *const *const u8;
|
||||||
std::ptr::copy(*ptr_to_key, read_key.as_mut_ptr(), 32);
|
std::ptr::copy(*ptr_to_key, read_key.as_mut_ptr(), 32);
|
||||||
sock2.send(read_key.as_slice());
|
sock2.send(read_key.as_slice());
|
||||||
|
// panic!("good ridance.")
|
||||||
})
|
})
|
||||||
.unwrap();
|
.unwrap();
|
||||||
opp.enable();
|
opp.enable();
|
||||||
|
|
11
src/lib.rs
11
src/lib.rs
|
@ -102,7 +102,16 @@ pub unsafe fn spawn_and_inject(proc: &str) {
|
||||||
{
|
{
|
||||||
let target = OwnedProcess::from_pid(proc.get_pid()).unwrap();
|
let target = OwnedProcess::from_pid(proc.get_pid()).unwrap();
|
||||||
let syrnge = Syringe::for_process(target);
|
let syrnge = Syringe::for_process(target);
|
||||||
let injmod = syrnge.inject("./target/debug/gdkeinj.dll").unwrap();
|
let injmod = syrnge
|
||||||
|
.inject(format!(
|
||||||
|
"./target/{}/gdkeinj.dll",
|
||||||
|
if cfg!(debug_assertions) {
|
||||||
|
"debug"
|
||||||
|
} else {
|
||||||
|
"release"
|
||||||
|
}
|
||||||
|
))
|
||||||
|
.unwrap();
|
||||||
|
|
||||||
println!("waiting until udp is ok ");
|
println!("waiting until udp is ok ");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue