netexec
error when installing on Ubuntu 24.04.2
.
bolke@js-srv01:~$ pipx install git+https://github.com/Pennyw0rth/NetExec
Fatal error from pip prevented installation. Full pip output in file:
/home/bolke/.local/state/pipx/log/cmd_2025-05-12_12.48.53_pip_errors.log
pip failed to build package:
arc4
Some possibly relevant errors from pip install:
error: subprocess-exited-with-error
error: command 'x86_64-linux-gnu-gcc' failed: No such file or directory
ERROR: Failed to build installable wheels for some pyproject.toml based projects (arc4)
Error installing netexec from spec 'git+https://github.com/Pennyw0rth/NetExec'.
bolke@js-srv01:~$
.
de oplossing is:
bolke@js-srv01:~$ pip3 install aardwolf --break-system-packages
Command 'pip3' not found, but can be installed with:
sudo apt install python3-pip
bolke@js-srv01:~$ sudo apt install python3-pip
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
binutils binutils-common binutils-x86-64-linux-gnu build-essential bzip2 cpp cpp-13 cpp-13-x86-64-linux-gnu
--snip--
Setting up build-essential (12.10ubuntu1) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.4) ...
Scanning processes...
Scanning linux images...
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
bolke@js-srv01:~$ pipx install git+https://github.com/Pennyw0rth/NetExec
installed package netexec 1.4.0+68.b243ee87, installed using Python 3.12.3
These apps are now globally available
- NetExec
- netexec
- nxc
- nxcdb
done! ✨ 🌟 ✨
bolke@js-srv01:~$ netexec
[*] First time use detected
[*] Creating home directory structure
[*] Creating missing folder logs
[*] Creating missing folder modules
[*] Creating missing folder protocols
[*] Creating missing folder workspaces
[*] Creating missing folder obfuscated_scripts
[*] Creating missing folder screenshots
[*] Creating missing folder logs/sam
[*] Creating missing folder logs/lsa
[*] Creating missing folder logs/ntds
[*] Creating missing folder logs/dpapi
[*] Creating default workspace
[*] Initializing SSH protocol database
[*] Initializing LDAP protocol database
[*] Initializing WMI protocol database
[*] Initializing VNC protocol database
[*] Initializing NFS protocol database
[*] Initializing SMB protocol database
[*] Initializing WINRM protocol database
[*] Initializing RDP protocol database
[*] Initializing FTP protocol database
[*] Initializing MSSQL protocol database
[*] Copying default configuration file
usage: netexec [-h] [--version] [-t THREADS] [--timeout TIMEOUT] [--jitter INTERVAL] [--verbose] [--debug]
[--no-progress] [--log LOG] [-6] [--dns-server DNS_SERVER] [--dns-tcp] [--dns-timeout DNS_TIMEOUT]
{ssh,ldap,wmi,vnc,nfs,smb,winrm,rdp,ftp,mssql} ...
. .
.| |. _ _ _ _____
|| || | \ | | ___ | |_ | ____| __ __ ___ ___
\\( )// | \| | / _ \ | __| | _| \ \/ / / _ \ / __|
.=[ ]=. | |\ | | __/ | |_ | |___ > < | __/ | (__
/ /˙-˙\ \ |_| \_| \___| \__| |_____| /_/\_\ \___| \___|
˙ \ / ˙
˙ ˙
The network execution tool
Maintained as an open source project by @NeffIsBack, @MJHallenbeck, @_zblurx
For documentation and usage examples, visit: https://www.netexec.wiki/
Version : 1.4.0
Codename: SmoothOperator
Commit : b243ee87
options:
-h, --help show this help message and exit
Generic:
Generic options for nxc across protocols
--version Display nxc version
-t THREADS, --threads THREADS
set how many concurrent threads to use
--timeout TIMEOUT max timeout in seconds of each thread
--jitter INTERVAL sets a random delay between each authentication
Output:
Options to set verbosity levels and control output
--verbose enable verbose output
--debug enable debug level information
--no-progress do not displaying progress bar during scan
--log LOG export result into a custom file
DNS:
-6 Enable force IPv6
--dns-server DNS_SERVER
Specify DNS server (default: Use hosts file & System DNS)
--dns-tcp Use TCP instead of UDP for DNS queries
--dns-timeout DNS_TIMEOUT
DNS query timeout in seconds
Available Protocols:
{ssh,ldap,wmi,vnc,nfs,smb,winrm,rdp,ftp,mssql}
ssh own stuff using SSH
ldap own stuff using LDAP
wmi own stuff using WMI
vnc own stuff using VNC
nfs own stuff using NFS
smb own stuff using SMB
winrm own stuff using WINRM
rdp own stuff using RDP
ftp own stuff using FTP
mssql own stuff using MSSQL
bolke@js-srv01:~$
.
gebruikte referenties:
https://github.com/Pennyw0rth/NetExec/issues/350
en
https://www.netexec.wiki/getting-started/installation/installation-on-unix
.