Add integration test for lib injection

This commit is contained in:
Dimitris Zervas
2023-06-03 18:02:46 +03:00
parent 9180d62d67
commit 141bf26048
9 changed files with 109 additions and 21 deletions

View File

@ -16,7 +16,10 @@ pub extern "C" fn attach(pid: u32) {
#[cfg(feature = "frida")]
{
let frida_code = env!("FRIDA_CODE").to_string();
#[cfg(windows)]
std::thread::spawn(move || frida_attach_pid(frida_code, pid));
#[cfg(not(windows))]
frida_attach_pid(frida_code, pid);
}
}