Files
kmanc-remote_code_oxidation/process_migration/README.md
T
kmanc 1298be49c7 Documentation (#7)
* updated tcp rev shell documentation

* missed a line

* missed another line

* updating documentation for process migration
2021-12-29 01:33:55 -08:00

1.3 KiB

RCO: Process Migration

What it is

RCO's process migration is a technique used to hide malicious code running on a victim machine. It has the added benefit of making it less likely the the malicious code is accidentally closed by a user on a victim machine by moving the payload to a process that is unlikely to be terminated.

How it works

RCO's Windows process migration works by obtaining a handle to the target process and writing the shellcode to it. Then it spawns a remote thread within the process whose starting point is the newly written shellcode. At the time of this writing, RCO's Unix process migration is not yet written.

Using it

  1. Generate shellcode for the desired end result (for example, use msfvenom to generate a reverse TCP shell shellcode for the target operating system)

  2. Open the config file and change the shellcode to the shellcode generated in step 1

  3. Compile the executable

    Build for Unix target

    cargo build -p process_migration --release
    

    Build for Windows target

    cargo build --target x86_64-pc-windows-gnu -p process_migration --release
    
  4. Execute the payload on the victim machine