commit changes

This commit is contained in:
pozm 2024-02-11 17:35:51 +00:00
parent a4f3a7abd7
commit 1dd617d65b
No known key found for this signature in database
GPG Key ID: 5AB655AFC8AAA822
2 changed files with 13 additions and 2 deletions

View File

@ -14,7 +14,8 @@ static_detour! {
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() {
let mut sigs = HashMap::<u32, (&'static str, i32)>::new();
sigs.insert(
@ -54,6 +55,7 @@ pub fn main() {
let ptr_to_key = (key as usize + 8) as *const *const u8;
std::ptr::copy(*ptr_to_key, read_key.as_mut_ptr(), 32);
sock2.send(read_key.as_slice());
// panic!("good ridance.")
})
.unwrap();
opp.enable();

View File

@ -102,7 +102,16 @@ pub unsafe fn spawn_and_inject(proc: &str) {
{
let target = OwnedProcess::from_pid(proc.get_pid()).unwrap();
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 ");