🪟Installation for Windows
Using Python and pipx
If Python is available it is recommended to install NetExec with pipx
For Windows, git and Rust are required for installation. If you can't install either of these, see below for a standalone executable.
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 install NetExec directly from the repository:
Restart your command line and you should be able to execute 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
Not all functionalities have been tested
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
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
Last updated