mirror of
https://github.com/kmanc/remote_code_oxidation
synced 2026-06-08 15:21:46 +00:00
8efc7f4707
* ran cargo update * clippy checks for all combinations of features required to pass * hadnt saved the file, this is the desired version * small nitpick on my gitignore lol * new workflow was in the wrong dir and i didnt notice * need windows dependencies in windows builds * name consistency * alphabetizing so i can find things when im adding/changing/removing/etc
414 lines
12 KiB
YAML
414 lines
12 KiB
YAML
name: RCO for Windows targets
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ main ]
|
|
push:
|
|
branches: [ main ]
|
|
workflow_dispatch:
|
|
branches: [ main ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
|
|
windows-all:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Update rust
|
|
run: rustup update
|
|
- name: Apt update
|
|
run: sudo apt-get update
|
|
- name: Install linker
|
|
run: sudo apt-get -y install mingw-w64
|
|
- name: Add Windows build target
|
|
run: rustup target add x86_64-pc-windows-gnu
|
|
- uses: actions/checkout@v3
|
|
- name: Update cargo
|
|
run: cargo update
|
|
- name: Build all for Windows
|
|
run: cargo build --target x86_64-pc-windows-gnu --verbose
|
|
|
|
windows-all-antisand:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Update rust
|
|
run: rustup update
|
|
- name: Apt update
|
|
run: sudo apt-get update
|
|
- name: Install linker
|
|
run: sudo apt-get -y install mingw-w64
|
|
- name: Add Windows build target
|
|
run: rustup target add x86_64-pc-windows-gnu
|
|
- uses: actions/checkout@v3
|
|
- name: Update cargo
|
|
run: cargo update
|
|
- name: Build all for Windows
|
|
run: cargo build --target x86_64-pc-windows-gnu --features antisand --verbose
|
|
|
|
windows-all-antistring:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Update rust
|
|
run: rustup update
|
|
- name: Apt update
|
|
run: sudo apt-get update
|
|
- name: Install linker
|
|
run: sudo apt-get -y install mingw-w64
|
|
- name: Add Windows build target
|
|
run: rustup target add x86_64-pc-windows-gnu
|
|
- uses: actions/checkout@v3
|
|
- name: Update cargo
|
|
run: cargo update
|
|
- name: Build all for Windows
|
|
run: cargo build --target x86_64-pc-windows-gnu --features antistring --verbose
|
|
|
|
windows-all-xor:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Update rust
|
|
run: rustup update
|
|
- name: Apt update
|
|
run: sudo apt-get update
|
|
- name: Install linker
|
|
run: sudo apt-get -y install mingw-w64
|
|
- name: Add Windows build target
|
|
run: rustup target add x86_64-pc-windows-gnu
|
|
- uses: actions/checkout@v3
|
|
- name: Update cargo
|
|
run: cargo update
|
|
- name: Build all for Windows
|
|
run: cargo build --target x86_64-pc-windows-gnu --features xor --verbose
|
|
|
|
windows-all-all:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Update rust
|
|
run: rustup update
|
|
- name: Apt update
|
|
run: sudo apt-get update
|
|
- name: Install linker
|
|
run: sudo apt-get -y install mingw-w64
|
|
- name: Add Windows build target
|
|
run: rustup target add x86_64-pc-windows-gnu
|
|
- uses: actions/checkout@v3
|
|
- name: Update cargo
|
|
run: cargo update
|
|
- name: Build all for Windows
|
|
run: cargo build --target x86_64-pc-windows-gnu --features antisand,antistring,xor --verbose
|
|
|
|
windows-hash-params:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Update rust
|
|
run: rustup update
|
|
- name: Apt update
|
|
run: sudo apt-get update
|
|
- name: Install linker
|
|
run: sudo apt-get -y install mingw-w64
|
|
- name: Add Windows build target
|
|
run: rustup target add x86_64-pc-windows-gnu
|
|
- uses: actions/checkout@v3
|
|
- name: Update cargo
|
|
run: cargo update
|
|
- name: Build xor shellcode for Windows
|
|
run: cargo build -p hash_params --target x86_64-pc-windows-gnu --verbose
|
|
|
|
windows-process-hollowing:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Update rust
|
|
run: rustup update
|
|
- name: Apt update
|
|
run: sudo apt-get update
|
|
- name: Install linker
|
|
run: sudo apt-get -y install mingw-w64
|
|
- name: Add Windows build target
|
|
run: rustup target add x86_64-pc-windows-gnu
|
|
- uses: actions/checkout@v3
|
|
- name: Update cargo
|
|
run: cargo update
|
|
- name: Build process hollowing for Windows
|
|
run: cargo build -p process_hollowing --target x86_64-pc-windows-gnu --verbose
|
|
|
|
windows-process-hollowing-antisand:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Update rust
|
|
run: rustup update
|
|
- name: Apt update
|
|
run: sudo apt-get update
|
|
- name: Install linker
|
|
run: sudo apt-get -y install mingw-w64
|
|
- name: Add Windows build target
|
|
run: rustup target add x86_64-pc-windows-gnu
|
|
- uses: actions/checkout@v3
|
|
- name: Update cargo
|
|
run: cargo update
|
|
- name: Build process hollowing for Windows
|
|
run: cargo build -p process_hollowing --target x86_64-pc-windows-gnu --features antisand --verbose
|
|
|
|
windows-process-hollowing-antistring:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Update rust
|
|
run: rustup update
|
|
- name: Apt update
|
|
run: sudo apt-get update
|
|
- name: Install linker
|
|
run: sudo apt-get -y install mingw-w64
|
|
- name: Add Windows build target
|
|
run: rustup target add x86_64-pc-windows-gnu
|
|
- uses: actions/checkout@v3
|
|
- name: Update cargo
|
|
run: cargo update
|
|
- name: Build process hollowing for Windows
|
|
run: cargo build -p process_hollowing --target x86_64-pc-windows-gnu --features antistring --verbose
|
|
|
|
windows-process-hollowing-xor:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Update rust
|
|
run: rustup update
|
|
- name: Apt update
|
|
run: sudo apt-get update
|
|
- name: Install linker
|
|
run: sudo apt-get -y install mingw-w64
|
|
- name: Add Windows build target
|
|
run: rustup target add x86_64-pc-windows-gnu
|
|
- uses: actions/checkout@v3
|
|
- name: Update cargo
|
|
run: cargo update
|
|
- name: Build process hollowing for Windows
|
|
run: cargo build -p process_hollowing --target x86_64-pc-windows-gnu --features xor --verbose
|
|
|
|
windows-process-hollowing-all:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Update rust
|
|
run: rustup update
|
|
- name: Apt update
|
|
run: sudo apt-get update
|
|
- name: Install linker
|
|
run: sudo apt-get -y install mingw-w64
|
|
- name: Add Windows build target
|
|
run: rustup target add x86_64-pc-windows-gnu
|
|
- uses: actions/checkout@v3
|
|
- name: Update cargo
|
|
run: cargo update
|
|
- name: Build process hollowing for Windows
|
|
run: cargo build -p process_hollowing --target x86_64-pc-windows-gnu --features antisand,antistring,xor --verbose
|
|
|
|
windows-process-migration:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Update rust
|
|
run: rustup update
|
|
- name: Apt update
|
|
run: sudo apt-get update
|
|
- name: Install linker
|
|
run: sudo apt-get -y install mingw-w64
|
|
- name: Add Windows build target
|
|
run: rustup target add x86_64-pc-windows-gnu
|
|
- uses: actions/checkout@v3
|
|
- name: Update cargo
|
|
run: cargo update
|
|
- name: Build process migration for Windows
|
|
run: cargo build -p process_migration --target x86_64-pc-windows-gnu --verbose
|
|
|
|
windows-process-migration-antisand:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Update rust
|
|
run: rustup update
|
|
- name: Apt update
|
|
run: sudo apt-get update
|
|
- name: Install linker
|
|
run: sudo apt-get -y install mingw-w64
|
|
- name: Add Windows build target
|
|
run: rustup target add x86_64-pc-windows-gnu
|
|
- uses: actions/checkout@v3
|
|
- name: Update cargo
|
|
run: cargo update
|
|
- name: Build process migration for Windows
|
|
run: cargo build -p process_migration --target x86_64-pc-windows-gnu --features antisand --verbose
|
|
|
|
windows-process-migration-antistring:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Update rust
|
|
run: rustup update
|
|
- name: Apt update
|
|
run: sudo apt-get update
|
|
- name: Install linker
|
|
run: sudo apt-get -y install mingw-w64
|
|
- name: Add Windows build target
|
|
run: rustup target add x86_64-pc-windows-gnu
|
|
- uses: actions/checkout@v3
|
|
- name: Update cargo
|
|
run: cargo update
|
|
- name: Build process migration for Windows
|
|
run: cargo build -p process_migration --target x86_64-pc-windows-gnu --features antistring --verbose
|
|
|
|
windows-process-migration-xor:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Update rust
|
|
run: rustup update
|
|
- name: Apt update
|
|
run: sudo apt-get update
|
|
- name: Install linker
|
|
run: sudo apt-get -y install mingw-w64
|
|
- name: Add Windows build target
|
|
run: rustup target add x86_64-pc-windows-gnu
|
|
- uses: actions/checkout@v3
|
|
- name: Update cargo
|
|
run: cargo update
|
|
- name: Build process migration for Windows
|
|
run: cargo build -p process_migration --target x86_64-pc-windows-gnu --features xor --verbose
|
|
|
|
windows-process-migration-all:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Update rust
|
|
run: rustup update
|
|
- name: Apt update
|
|
run: sudo apt-get update
|
|
- name: Install linker
|
|
run: sudo apt-get -y install mingw-w64
|
|
- name: Add Windows build target
|
|
run: rustup target add x86_64-pc-windows-gnu
|
|
- uses: actions/checkout@v3
|
|
- name: Update cargo
|
|
run: cargo update
|
|
- name: Build process migration for Windows
|
|
run: cargo build -p process_migration --target x86_64-pc-windows-gnu --features antisand,antistring,xor --verbose
|
|
|
|
windows-tcp-reverse-shell:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Update rust
|
|
run: rustup update
|
|
- name: Apt update
|
|
run: sudo apt-get update
|
|
- name: Install linker
|
|
run: sudo apt-get -y install mingw-w64
|
|
- name: Add Windows build target
|
|
run: rustup target add x86_64-pc-windows-gnu
|
|
- uses: actions/checkout@v3
|
|
- name: Update cargo
|
|
run: cargo update
|
|
- name: Build reverse shell for Windows
|
|
run: cargo build -p tcp_reverse_shell --target x86_64-pc-windows-gnu --verbose
|
|
|
|
windows-tcp-reverse-shell-antisand:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Update rust
|
|
run: rustup update
|
|
- name: Apt update
|
|
run: sudo apt-get update
|
|
- name: Install linker
|
|
run: sudo apt-get -y install mingw-w64
|
|
- name: Add Windows build target
|
|
run: rustup target add x86_64-pc-windows-gnu
|
|
- uses: actions/checkout@v3
|
|
- name: Update cargo
|
|
run: cargo update
|
|
- name: Build reverse shell for Windows
|
|
run: cargo build -p tcp_reverse_shell --target x86_64-pc-windows-gnu --features antisand --verbose
|
|
|
|
windows-tcp-reverse-shell-antistring:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Update rust
|
|
run: rustup update
|
|
- name: Apt update
|
|
run: sudo apt-get update
|
|
- name: Install linker
|
|
run: sudo apt-get -y install mingw-w64
|
|
- name: Add Windows build target
|
|
run: rustup target add x86_64-pc-windows-gnu
|
|
- uses: actions/checkout@v3
|
|
- name: Update cargo
|
|
run: cargo update
|
|
- name: Build reverse shell for Windows
|
|
run: cargo build -p tcp_reverse_shell --target x86_64-pc-windows-gnu --features antistring --verbose
|
|
|
|
windows-tcp-reverse-shell-all:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Update rust
|
|
run: rustup update
|
|
- name: Apt update
|
|
run: sudo apt-get update
|
|
- name: Install linker
|
|
run: sudo apt-get -y install mingw-w64
|
|
- name: Add Windows build target
|
|
run: rustup target add x86_64-pc-windows-gnu
|
|
- uses: actions/checkout@v3
|
|
- name: Update cargo
|
|
run: cargo update
|
|
- name: Build reverse shell for Windows
|
|
run: cargo build -p tcp_reverse_shell --target x86_64-pc-windows-gnu --features antisand,antistring --verbose
|
|
|
|
windows-xor-params:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Update rust
|
|
run: rustup update
|
|
- name: Apt update
|
|
run: sudo apt-get update
|
|
- name: Install linker
|
|
run: sudo apt-get -y install mingw-w64
|
|
- name: Add Windows build target
|
|
run: rustup target add x86_64-pc-windows-gnu
|
|
- uses: actions/checkout@v3
|
|
- name: Update cargo
|
|
run: cargo update
|
|
- name: Build xor shellcode for Windows
|
|
run: cargo build -p xor_params --target x86_64-pc-windows-gnu --verbose
|