NetExec
NetExec (AKA nxc) is a network service exploitation tool that helps automate assessing the security of large networks. It is the continuation of CrackMapExec.
Description
NetExec is designed to automate the assessment of security across large networks by exploiting various network services. It supports multiple protocols including MSSQL, WinRM, RDP, WMI, LDAP, NFS, SMB, SSH, FTP, and VNC, enabling users to identify and potentially own targets using these services.
The tool is particularly useful for penetration testers and security researchers evaluating Windows and other networked environments. It builds on the legacy of CrackMapExec, which was discontinued, and is actively maintained as an open source project.
NetExec includes additional utilities like nxcdb for database navigation and workspace management, enhancing its capability for organized scanning and result storage.
How It Works
NetExec operates by targeting specific network protocols to authenticate and execute commands or assess vulnerabilities. It uses concurrent threads for efficient scanning of large networks, with options for timeout, jitter to evade detection, and customizable output. Protocols like SMB, WinRM, WMI leverage authentication techniques to gain access, while others like SSH and FTP focus on service enumeration and exploitation. The tool integrates dependencies like impacket, pypsrp, and others for handling authentication, Kerberos, and protocol-specific interactions.
Installation
sudo apt install netexecFlags
Examples
netexec -hnxc -hnxcdb -hnetexec smb -t 50netexec winrm --verbosenetexec ldap --log results.txtnxcdb -gwnxcdb -cw myworkspace