Dependencies (#48)

* fix dependency compat again

* missed a comma

* Update reverse shell badge data via Github Action

* Update process migration badge data via Github Action

* Update process hollowing badge data via Github Action

Co-authored-by: kmanc <kmanc@users.noreply.github.com>
This commit is contained in:
kmanc
2022-05-25 17:25:26 -07:00
committed by GitHub
parent 987dfa4c3b
commit d0cc506090
12 changed files with 41 additions and 38 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
"label": "process_hollowing",
"message": "1.6.1",
"message": "1.6.2",
"color": "blue"
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
"label": "process_migration",
"message": "1.8.1",
"message": "1.8.2",
"color": "blue"
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
"label": "tcp_reverse_shell",
"message": "1.2.0",
"message": "1.2.1",
"color": "blue"
}
Generated
+18 -18
View File
@@ -41,9 +41,9 @@ dependencies = [
[[package]]
name = "libc"
version = "0.2.124"
version = "0.2.126"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "21a41fed9d98f27ab1c6d161da622a4fa35e8a54a8adc24bbf3ddd0ef70b0e50"
checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836"
[[package]]
name = "memoffset"
@@ -56,9 +56,9 @@ dependencies = [
[[package]]
name = "nix"
version = "0.24.0"
version = "0.24.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f6d99b651ff9697d6710f9613a07c5b4e0d655040faf56b3b471af108d55597"
checksum = "8f17df307904acd05aa8e32e97bb20f2a0df1728bbc2d771ae8f9a90463441e9"
dependencies = [
"bitflags",
"cfg-if",
@@ -74,7 +74,7 @@ checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872"
[[package]]
name = "process_hollowing"
version = "1.6.0"
version = "1.6.1"
dependencies = [
"nix",
"rco_config",
@@ -84,7 +84,7 @@ dependencies = [
[[package]]
name = "process_migration"
version = "1.8.0"
version = "1.8.1"
dependencies = [
"nix",
"rco_config",
@@ -151,9 +151,9 @@ checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6"
[[package]]
name = "windows"
version = "0.35.0"
version = "0.37.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08746b4b7ac95f708b3cccceb97b7f9a21a8916dd47fc99b0e6aaf7208f26fd7"
checksum = "57b543186b344cc61c85b5aab0d2e3adf4e0f99bc076eff9aa5927bcc0b8a647"
dependencies = [
"windows_aarch64_msvc",
"windows_i686_gnu",
@@ -164,33 +164,33 @@ dependencies = [
[[package]]
name = "windows_aarch64_msvc"
version = "0.35.0"
version = "0.37.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "db3bc5134e8ce0da5d64dcec3529793f1d33aee5a51fc2b4662e0f881dd463e6"
checksum = "2623277cb2d1c216ba3b578c0f3cf9cdebeddb6e66b1b218bb33596ea7769c3a"
[[package]]
name = "windows_i686_gnu"
version = "0.35.0"
version = "0.37.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0343a6f35bf43a07b009b8591b78b10ea03de86b06f48e28c96206cd0f453b50"
checksum = "d3925fd0b0b804730d44d4b6278c50f9699703ec49bcd628020f46f4ba07d9e1"
[[package]]
name = "windows_i686_msvc"
version = "0.35.0"
version = "0.37.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1acdcbf4ca63d8e7a501be86fee744347186275ec2754d129ddeab7a1e3a02e4"
checksum = "ce907ac74fe331b524c1298683efbf598bb031bc84d5e274db2083696d07c57c"
[[package]]
name = "windows_x86_64_gnu"
version = "0.35.0"
version = "0.37.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "893c0924c5a990ec73cd2264d1c0cba1773a929e1a3f5dbccffd769f8c4edebb"
checksum = "2babfba0828f2e6b32457d5341427dcbb577ceef556273229959ac23a10af33d"
[[package]]
name = "windows_x86_64_msvc"
version = "0.35.0"
version = "0.37.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a29bd61f32889c822c99a8fdf2e93378bd2fae4d7efd2693fab09fcaaf7eff4b"
checksum = "f4dd6dc7df2d84cf7b33822ed5b86318fb1781948e9663bacd047fc9dd52259d"
[[package]]
name = "xor_params"
+2 -2
View File
@@ -1,6 +1,6 @@
[package]
name = "process_hollowing"
version = "1.6.1"
version = "1.6.2"
edition = "2021"
authors = ["Kevin Conley <koins@duck.com>"]
rust-version = "1.59"
@@ -21,7 +21,7 @@ rco_utils = {path = "../rco_utils"}
nix = ">=0.16"
[target.'cfg(windows)'.dependencies]
windows.version = ">=0.35.0"
windows.version = ">=0.36.0"
windows.features = [
"Win32_Foundation",
"Win32_Security",
@@ -15,8 +15,8 @@ pub fn hollow_and_run(shellcode: &[u8], target_process: &str) {
// Dump the registers for the child process
let registers = match getregs(child) {
Err(error) => panic!("Could not get registers for {target_process}: {error}"),
Ok(value) => value
Ok(value) => value,
Err(error) => panic!("Could not get registers for {target_process}: {error}")
};
// Copy RIP to a mutable variable
+2 -2
View File
@@ -1,6 +1,6 @@
[package]
name = "process_migration"
version = "1.8.1"
version = "1.8.2"
edition = "2021"
authors = ["Kevin Conley <koins@duck.com>"]
rust-version = "1.59"
@@ -20,7 +20,7 @@ rco_utils = {path = "../rco_utils"}
nix = ">=0.16"
[target.'cfg(windows)'.dependencies]
windows.version = ">=0.35.0"
windows.version = ">=0.36.0"
windows.features = [
"Win32_Foundation",
"Win32_Security",
@@ -45,8 +45,8 @@ pub fn inject_and_migrate(shellcode: &[u8], target_process: &str) {
// Dump the registers for the target process
let mut registers = match getregs(target_pid) {
Err(error) => panic!("Could not get registers for {target_process}: {error}"),
Ok(value) => value
Ok(value) => value,
Err(error) => panic!("Could not get registers for {target_process}: {error}")
};
// Copy the RIP register to a mutable variable, then increment RIP by 2
@@ -29,8 +29,8 @@ pub fn inject_and_migrate(shellcode: &[u8], target_process: &str) {
// RUST --> https://microsoft.github.io/windows-docs-rs/doc/windows/Win32/System/Diagnostics/ToolHelp/fn.CreateToolhelp32Snapshot.html
let snapshot = unsafe {
match CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0_u32) {
Err(_) => panic!("Could not obtain handle to snapshot"),
Ok(value) => value
Ok(value) => value,
Err(_) => panic!("Could not obtain handle to snapshot")
}
};
@@ -63,8 +63,8 @@ pub fn inject_and_migrate(shellcode: &[u8], target_process: &str) {
// RUST --> https://microsoft.github.io/windows-docs-rs/doc/windows/Win32/System/Threading/fn.OpenProcess.html
let explorer_handle = unsafe {
match OpenProcess(PROCESS_ALL_ACCESS, false, pid) {
Err(_) => panic!("Could not open a handle to the process"),
Ok(value) => value
Ok(value) => value,
Err(_) => panic!("Could not open a handle to the process")
}
};
+2 -2
View File
@@ -1,6 +1,6 @@
[package]
name = "rco_utils"
version = "0.3.3"
version = "0.3.4"
edition = "2021"
authors = ["Kevin Conley <koins@duck.com>"]
rust-version = "1.59"
@@ -16,7 +16,7 @@ antistring = ["windows"]
rand.optional = true
rand.version = ">=0.8.5"
windows.optional = true
windows.version = ">=0.35.0"
windows.version = ">=0.36.0"
windows.features = [
"Win32_Foundation",
"Win32_Networking",
+4 -1
View File
@@ -200,7 +200,10 @@ pub fn find_function_address(dll: &str, name_hash: u64) -> Result<*const (), Box
// Call LoadLibraryA on a DLL to get its base address
let mut lib_filename: PCSTR = unsafe { mem::zeroed() };
lib_filename.0 = CString::new(dll).unwrap().into_raw() as *mut u8;
let library_base = unsafe { LoadLibraryA(lib_filename) };
let library_base = match unsafe { LoadLibraryA(lib_filename) } {
Ok(value) => value,
Err(_) => panic!("Could not load {lib_filename:?}")
};
let library_base_usize = library_base.0 as usize;
// Get a pointer to the DOS header
+2 -2
View File
@@ -1,6 +1,6 @@
[package]
name = "tcp_reverse_shell"
version = "1.2.0"
version = "1.2.1"
edition = "2021"
authors = ["Kevin Conley <koins@duck.com>"]
rust-version = "1.59"
@@ -16,7 +16,7 @@ rco_config = {path = "../rco_config"}
rco_utils = {path = "../rco_utils"}
[target.'cfg(windows)'.dependencies]
windows.version = ">=0.35.0"
windows.version = ">=0.36.0"
windows.features = [
"Win32_Foundation",
"Win32_Security",