🛠️Manually building the binary
If you want to build the standalone binary yourself, here is a tutorial for you
This process can vary from time to time as dependencies change, resulting in potential errors. If you don't need to compile the binaries yourself for a specific reason it is recommended to use the precompiled binaries from GitHub.
Linux
Clone the repository:
git clone https://github.com/Pennyw0rth/NetExec.git
cd NetExecCreate a virtual environment for pip, install pyinstaller and build the binary:
virtualenv env
source env/bin/activate
sudo apt remove python3-pyinstaller # Remove old apt pyinstaller
pip install pyinstaller .
pyinstaller netexec.spec # This will compile the binaryYou should now have compiled binaries:
./dist/nxcWindows
For Windows Rust is required to build the python dependencies.
Go to the Rust installation page and follow the installation instructions: https://www.rust-lang.org/tools/install
With Rust installed clone the repository:
git clone https://github.com/Pennyw0rth/NetExec.git
cd NetExecSet up a virtual environment, install required packages and build the binary:
python -m venv env
source env/Scripts/activate
pip install pyinstaller pillow .
pyinstaller netexec.specYou should now have compiled binary:
./dist/nxc.exeLast updated
Was this helpful?

