2023-05-23 17:21:14 +03:00
|
|
|
pub mod injector;
|
2023-06-03 01:52:10 +03:00
|
|
|
#[cfg(feature = "frida")]
|
|
|
|
pub mod frida_handler;
|
|
|
|
|
2023-05-27 16:38:27 +03:00
|
|
|
pub use injector::attach;
|
2023-05-23 17:21:14 +03:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let args: Vec<String> = std::env::args().collect();
|
|
|
|
|
|
|
|
if args.len() < 2 {
|
2023-05-30 17:00:51 +03:00
|
|
|
eprintln!("Usage: {} <PID>", args[0]);
|
2023-05-23 17:21:14 +03:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
let pid: u32 = args[1].parse().unwrap();
|
2023-05-27 16:38:27 +03:00
|
|
|
attach(pid);
|
2023-05-23 17:21:14 +03:00
|
|
|
}
|
2023-06-03 01:52:10 +03:00
|
|
|
|
|
|
|
// #[cfg(test)]
|
|
|
|
// mod integration_tests;
|