Weird stuff from cargo - Release 0.2.0

Dont know why, but compiling version 0.1.6 of dinvoke_rs was using litcrypt2 version 0.1.3 despite what was specified on cargo.toml (version 0.1.2). This led to compiling errors talking about "unknow crate alloc".
This commit is contained in:
Kudaes
2024-10-11 12:18:24 +02:00
parent 08034fea8e
commit b29ad9b011
8 changed files with 10 additions and 11 deletions
-1
View File
@@ -5,5 +5,4 @@ rustflags = [
"--remap-path-prefix", "manualmap=",
"--remap-path-prefix", "overload=",
"--remap-path-prefix", "dmanager=",
"-C", "link-args=/SUBSYSTEM:CONSOLE",
]
+1 -1
View File
@@ -38,7 +38,7 @@ Import this crate into your project by adding the following line to your `cargo.
```rust
[dependencies]
dinvoke_rs = "0.1.6"
dinvoke_rs = "0.2.0"
```
# Examples
+1 -1
View File
@@ -10,7 +10,7 @@ strip = true
[dependencies]
data = { path = "../data" }
libc = "0.2.101"
litcrypt2 = "0.1.2"
litcrypt2 = "=0.1.2"
winapi = {version = "0.3.9", features = ["psapi"]}
nanorand = {version = "0.7.0", optional = true}
+4 -4
View File
@@ -2328,7 +2328,7 @@ pub fn nt_read_virtual_memory (handle: HANDLE, base_address: PVOID, buffer: PVOI
/// Dynamically calls an exported function from the specified module.
///
/// This macro will use the dinvoke crate functions to obtain an exported
/// function address of the specified module in the runtime by walking process structures
/// function address of the specified module at runtime by walking process structures
/// and PE headers.
///
/// In case that this macro is used to call a dll entry point (DllMain), it will return true
@@ -2353,11 +2353,11 @@ pub fn nt_read_virtual_memory (handle: HANDLE, base_address: PVOID, buffer: PVOI
/// let name = CString::new("ntdll.dll").expect("CString::new failed");
/// let module_name = PSTR{0: name.as_ptr() as *mut u8};
/// //dinvoke::dynamic_invoke(usize,&str,<function_type>,Option<return_type>,[arguments])
/// dinvoke::dynamic_invoke(a.1, "LoadLibraryA", function_ptr, ret, module_name);
/// dinvoke::dynamic_invoke!(kernel32.1, "LoadLibraryA", function_ptr, ret, module_name);
///
/// match ret {
/// Some(x) => if x.0 == 0 {println!("ntdll base address is 0x{:X}",x.0);},
/// None => println!("Error calling LdrGetProcedureAddress"),
/// Some(x) => {println!("ntdll base address is 0x{:X}",x.0);},
/// None => println!("Error calling LoadLibraryA"),
/// }
/// ```
/// # Example - Dynamically calling with referenced arguments
+1 -1
View File
@@ -13,7 +13,7 @@ nanorand = "0.7.0"
manualmap = { path = "../manualmap" }
overload = { path = "../overload" }
data = { path = "../data" }
litcrypt2 = "0.1.2"
litcrypt2 = "=0.1.2"
dinvoke = { path = "../dinvoke" }
[dependencies.windows]
+1 -1
View File
@@ -10,7 +10,7 @@ strip = true
[dependencies]
dinvoke = { path = "../dinvoke" }
data = { path = "../data" }
litcrypt2 = "0.1.2"
litcrypt2 = "=0.1.2"
os_info = { version = "3.0", default-features = false }
winapi = {version = "0.3.9", features = ["ntdef"]}
+1 -1
View File
@@ -564,7 +564,7 @@ pub fn rewrite_module_iat(pe_info: &PeMetadata, image_ptr: *mut c_void) -> Resul
}
}
// This method is reponsible of cleaning IOCs that may reveal the pressence of a
// This method is reponsible for cleaning IOCs that may reveal the pressence of a
// manually mapped PE in a private memory region. It will remove PE magic bytes,
// DOS header and DOS stub.
fn clean_dos_header (image_ptr: *mut c_void)
+1 -1
View File
@@ -11,7 +11,7 @@ strip = true
dinvoke = { path = "../dinvoke" }
data = { path = "../data" }
manualmap = { path = "../manualmap" }
litcrypt2 = "0.1.2"
litcrypt2 = "=0.1.2"
winproc = "0.6.4"
nanorand = "0.7.0"