Small update

This commit is contained in:
Kudaes
2024-05-08 21:05:30 +02:00
parent 1fabc692f3
commit ebc0084ac1
3 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -3,10 +3,11 @@ name = "exporttracer"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[profile.release]
strip = true
[lib]
crate-type = ["cdylib"]
[dependencies]
dinvoke_rs= "0.1.4"
dinvoke_rs= "0.1.4"
+1 -1
View File
@@ -233,7 +233,7 @@ fn generate_proxy_dll(original_dll_path: String, hijacked_export: String, native
let config_path = format!("{}{}", path, r"..\..\..\ProxyDll\.cargo\config");
let template_path: String = format!("{}{}", &path, r"..\..\template3.txt");
let mut config_content = fs::read_to_string(&template_path).expect("[x] Couldn't read cargo.toml file.");
let mut config_content = fs::read_to_string(&template_path).expect("[x] Couldn't read config template file.");
config_content = config_content.replace("{DEF_PATH}", &def_path);
if link_runtime {
config_content = config_content.replace(r##"#"-C", "target-feature=+crt-static""##, r#""-C", "target-feature=+crt-static""#);
+2 -1
View File
@@ -3,7 +3,8 @@ name = "proxydll"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[profile.release]
strip = true
[lib]
crate-type = ["cdylib"]