chvancooten / NimPlant

A light-weight first-stage C2 implant written in Nim.
MIT License
779 stars 109 forks source link

sh: 1: nim: not found #13

Closed Pen-Ace closed 1 year ago

Pen-Ace commented 1 year ago

Great work here bro. I am looking to review this under my C2 reviews.

I am running the server on Kali Linux, but encountering errors while attempting to generate the compile command and add it to the Client/bin directory.

the "all" command generates this:

Compiling .exe for NimPlant /home/kali/Desktop/NimPlant/client/util/functions.nim(1, 8) Error: cannot open file: parsetoml Compiling self-deleting .exe for NimPlant /home/kali/Desktop/NimPlant/client/util/functions.nim(1, 8) Error: cannot open file: parsetoml Compiling .dll for NimPlant /home/kali/Desktop/NimPlant/client/util/functions.nim(1, 8) Error: cannot open file: parsetoml Compiling .bin for NimPlant /home/kali/Desktop/NimPlant/client/util/functions.nim(1, 8) Error: cannot open file: parsetoml Traceback (most recent call last): File "/home/kali/Desktop/NimPlant/NimPlant.py", line 229, in compile_implant(implant, binary, xor_key) File "/home/kali/Desktop/NimPlant/NimPlant.py", line 109, in compile_implant compile_function("raw", xor_key) File "/home/kali/Desktop/NimPlant/NimPlant.py", line 189, in compile_nim dll = open("client/bin/NimPlant.dll", "rb").read() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: 'client/bin/NimPlant.dll'

I did try: pip install toml - no luck.

Any help would be great. Thanks Ace

chvancooten commented 1 year ago

Hey @Pen-Ace, it looks like you haven't installed Nim dependencies correctly. Please use the Docker container, or install them locally. Per the readme: Install required packages using the Nimble package manager (cd client; nimble install -d).

P.s., please follow the issue template next time ;)

Pen-Ace commented 1 year ago

Noted. Safe bro.