πͺ Installation for Windows
Using Python and pipx
{% hint style="success" %}
If Python is available it is recommended to install NetExec with pipx
{% endhint %}
{% hint style="warning" %}
For Windows, git and Rust are required for installation. If you can't install either of these, see below for a standalone executable.
{% endhint %}
Set up git, Rust and C++:\
https://git-scm.com/download/win\
https://www.rust-lang.org/tools/install\
https://visualstudio.microsoft.com/de/visual-cpp-build-tools/
Install pipx and NetExec directly from the repository:
pip install pipx
python -m pipx ensurepath
python -m pipx install git+https://github.com/Pennyw0rth/NetExec
Restart your command line and you should be able to execute NetExec:
NetExec
Using NetExec Binary
- Download the latest Windows binary on the release page (netexec-windows-latest)
- Unzip the folder
- Run the binary from the command line
From Python ZippApp
{% hint style="warning" %}
Not all functionalities have been tested
{% endhint %}
- You can also use the standalone version of Python, then add the path of the folder containing the python.exe file to the PATH env variable of your user.
- Download the ZippApp for your specific OS & Python version here
- Then just run the binary
python.exe .\nxc
{% embed url="https://www.python.org/downloads/windows/" %}
If you got this error
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Admin.shiv\nxc_51b7721208fc3d0af7e301aa9a56e1da0a38e9ec5bc08bfe8cc9ba14853ac5d1.tmp\site-packages\nxc\data\powersploit\CodeExecution\Invoke-ReflectivePEInjection_Resources\DemoDLL_RemoteProcess\DemoDLL_RemoteProcess\DemoDLL_RemoteProcess.vcxproj.filters
Add the following registry key:
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1 /f