diff --git a/Cargo.lock b/Cargo.lock index 1feb298..c3f3114 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -82,7 +82,7 @@ checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" [[package]] name = "process_hollowing" -version = "1.10.3" +version = "1.10.4" dependencies = [ "nix", "rco_config", @@ -92,7 +92,7 @@ dependencies = [ [[package]] name = "process_migration" -version = "1.11.3" +version = "1.11.4" dependencies = [ "nix", "rco_config", @@ -136,7 +136,7 @@ version = "0.2.0" [[package]] name = "rco_utils" -version = "1.2.1" +version = "1.2.2" dependencies = [ "rand", "windows", @@ -150,7 +150,7 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" [[package]] name = "tcp_reverse_shell" -version = "1.5.2" +version = "1.5.3" dependencies = [ "rco_config", "rco_utils", @@ -165,18 +165,18 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "windows" -version = "0.46.0" +version = "0.47.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cdacb41e6a96a052c6cb63a144f24900236121c6f63f4f8219fef5977ecb0c25" +checksum = "2649ff315bee4c98757f15dac226efe3d81927adbb6e882084bb1ee3e0c330a7" dependencies = [ "windows-targets", ] [[package]] name = "windows-targets" -version = "0.42.2" +version = "0.47.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" +checksum = "2f8996d3f43b4b2d44327cd71b7b0efd1284ab60e6e9d0e8b630e18555d87d3e" dependencies = [ "windows_aarch64_gnullvm", "windows_aarch64_msvc", @@ -189,45 +189,45 @@ dependencies = [ [[package]] name = "windows_aarch64_gnullvm" -version = "0.42.2" +version = "0.47.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" +checksum = "831d567d53d4f3cb1db332b68e6e2b6260228eb4d99a777d8b2e8ed794027c90" [[package]] name = "windows_aarch64_msvc" -version = "0.42.2" +version = "0.47.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" +checksum = "6a42d54a417c60ce4f0e31661eed628f0fa5aca73448c093ec4d45fab4c51cdf" [[package]] name = "windows_i686_gnu" -version = "0.42.2" +version = "0.47.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" +checksum = "c1925beafdbb22201a53a483db861a5644123157c1c3cee83323a2ed565d71e3" [[package]] name = "windows_i686_msvc" -version = "0.42.2" +version = "0.47.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" +checksum = "3a8ef8f2f1711b223947d9b69b596cf5a4e452c930fb58b6fc3fdae7d0ec6b31" [[package]] name = "windows_x86_64_gnu" -version = "0.42.2" +version = "0.47.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" +checksum = "7acaa0c2cf0d2ef99b61c308a0c3dbae430a51b7345dedec470bd8f53f5a3642" [[package]] name = "windows_x86_64_gnullvm" -version = "0.42.2" +version = "0.47.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" +checksum = "e5a0628f71be1d11e17ca4a0e9e15b3a5180f6fbf1c2d55e3ba3f850378052c1" [[package]] name = "windows_x86_64_msvc" -version = "0.42.2" +version = "0.47.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" +checksum = "9d6e62c256dc6d40b8c8707df17df8d774e60e39db723675241e7c15e910bce7" [[package]] name = "xor_params" diff --git a/process_hollowing/Cargo.toml b/process_hollowing/Cargo.toml index c3faeeb..ce70fd2 100644 --- a/process_hollowing/Cargo.toml +++ b/process_hollowing/Cargo.toml @@ -7,7 +7,7 @@ license = "MIT" name = "process_hollowing" repository = "https://github.com/kmanc/remote_code_oxidation/tree/main/process_hollowing" rust-version = "1.59" -version = "1.10.3" +version = "1.10.4" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -25,7 +25,7 @@ rco_utils = {path = "../rco_utils", version = ">=1.0.1"} nix = ">=0.16" [target.'cfg(windows)'.dependencies] -windows.version = ">=0.46.0" +windows.version = ">=0.47.0" windows.features = [ "Win32_Foundation", "Win32_Security", diff --git a/process_migration/Cargo.toml b/process_migration/Cargo.toml index b384d20..669e5a5 100644 --- a/process_migration/Cargo.toml +++ b/process_migration/Cargo.toml @@ -7,7 +7,7 @@ license = "MIT" name = "process_migration" repository = "https://github.com/kmanc/remote_code_oxidation/tree/main/process_migration" rust-version = "1.59" -version = "1.11.3" +version = "1.11.4" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -24,7 +24,7 @@ rco_utils = {path = "../rco_utils", version = ">=1.0.1"} nix = ">=0.16" [target.'cfg(windows)'.dependencies] -windows.version = ">=0.46.0" +windows.version = ">=0.47.0" windows.features = [ "Win32_Foundation", "Win32_Security", diff --git a/rco_utils/Cargo.toml b/rco_utils/Cargo.toml index 8f37692..6691270 100644 --- a/rco_utils/Cargo.toml +++ b/rco_utils/Cargo.toml @@ -19,7 +19,7 @@ antistring = ["windows"] rand.optional = true rand.version = ">=0.8.5" windows.optional = true -windows.version = ">=0.46.0" +windows.version = ">=0.47.0" windows.features = [ "Win32_Foundation", "Win32_Networking", diff --git a/tcp_reverse_shell/Cargo.toml b/tcp_reverse_shell/Cargo.toml index 597a524..a21fa9a 100644 --- a/tcp_reverse_shell/Cargo.toml +++ b/tcp_reverse_shell/Cargo.toml @@ -20,7 +20,7 @@ rco_config = {path = "../rco_config", version = ">=0.2.0"} rco_utils = {path = "../rco_utils", version = ">=1.0.1"} [target.'cfg(windows)'.dependencies] -windows.version = ">=0.46.0" +windows.version = ">=0.47.0" windows.features = [ "Win32_Foundation", "Win32_Security", diff --git a/tcp_reverse_shell/src/reverse_shell_windows.rs b/tcp_reverse_shell/src/reverse_shell_windows.rs index 3318afe..425f36f 100644 --- a/tcp_reverse_shell/src/reverse_shell_windows.rs +++ b/tcp_reverse_shell/src/reverse_shell_windows.rs @@ -31,8 +31,8 @@ pub fn shell(ip: &str, port: u16) { // RUST --> https://microsoft.github.io/windows-docs-rs/doc/windows/Win32/Networking/WinSock/fn.WSASocketA.html let socket = unsafe { WSASocketA( - AF_INET.0 as i32, - SOCK_STREAM as i32, + AF_INET.0.into(), + SOCK_STREAM.0, IPPROTO_TCP.0, None, 0, diff --git a/tcp_reverse_shell/src/reverse_shell_windows_antistring.rs b/tcp_reverse_shell/src/reverse_shell_windows_antistring.rs index ad25cfa..27b45bb 100644 --- a/tcp_reverse_shell/src/reverse_shell_windows_antistring.rs +++ b/tcp_reverse_shell/src/reverse_shell_windows_antistring.rs @@ -28,8 +28,8 @@ pub fn shell(ip: &str, port: u16) { let function = rco_utils::construct_win32_function!(function; [i32, i32, i32, *const WSAPROTOCOL_INFOA, i32, i32]; [SOCKET]); let socket = unsafe { function( - AF_INET.0 as i32, - SOCK_STREAM as i32, + AF_INET.0.into(), + SOCK_STREAM.0, IPPROTO_TCP.0, ptr::null(), 0,