Skip to content

Commit

Permalink
Update CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
chvancooten committed Jun 16, 2024
1 parent f916202 commit 85cc5af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,9 @@ jobs:
matrix:
include:
- language: 'nim'
paths: |
./client/bin/NimPlant-selfdelete.exe
./client/bin/NimPlant.bin
./client/bin/NimPlant.dll
./client/bin/NimPlant.exe
paths: ./client/bin/NimPlant.exe, ./client/bin/NimPlant.dll, ./client/bin/NimPlant.bin, ./client/bin/NimPlant-selfdelete.exe
- language: 'rust'
paths: |
./client-rs/bin/nimplant.bin
./client-rs/bin/nimplant.dll
./client-rs/bin/nimplant.exe
paths: ./client-rs/bin/nimplant.bin, ./client-rs/bin/nimplant.dll, ./client-rs/bin/nimplant.exe
runs-on: ubuntu-latest
steps:
- name: Checkout code into workspace directory
Expand Down
10 changes: 4 additions & 6 deletions nimplant.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
import toml
from client.dist.srdi.ShellcodeRDI import ConvertToShellcode, HashFunctionName

# TODO: Fix CI/CD paths: https://github.com/chvancooten/NimPlant-private/actions/runs/9530913515/job/26271309362


def print_banner():
"""Print the NimPlant banner."""
Expand Down Expand Up @@ -139,12 +137,14 @@ def compile_implant(implant_type, binary_type, xor_key):
# Compile all
print(f"Compiling .exe for {message}")
compile_function("exe", xor_key, config)
print(f"Compiling self-deleting .exe for {message}")
compile_function("exe-selfdelete", xor_key, config)
print(f"Compiling .dll for {message}")
compile_function("dll", xor_key, config)
print(f"Compiling .bin for {message}")
compile_function("raw", xor_key, config)
# TODO: Exe-Selfdelete
if implant_type != "rust":
print(f"Compiling self-deleting .exe for {message}")
compile_function("exe-selfdelete", xor_key, config)


def compile_nim_debug(binary_type, xor_key, config):
Expand Down Expand Up @@ -256,8 +256,6 @@ def compile_rust(binary_type, xor_key, config, debug=False):
target_path = target_path + "nimplant.exe"
compile_command = compile_command + " --bin=nimplant"
case "exe-selfdelete":
# TODO: Exe-Selfdelete
# TODO: Add to CI/CD as well
print("RUST EXE-SELFDELETE NOT YET IMPLEMENTED.")
exit(1)
case "dll":
Expand Down

0 comments on commit 85cc5af

Please sign in to comment.