Linux command
nxc 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
SMB authentication check
nxc smb [target] -u [user] -p [password]
Enumerate shares
nxc smb [target] -u [user] -p [password] --shares
Execute command
nxc smb [target] -u [user] -p [password] -x "[command]"
Scan multiple hosts
nxc smb [targets.txt] -u [user] -p [password]
Use hash for auth
nxc smb [target] -u [user] -H [hash]
说明
nxc (NetExec) is a network service exploitation tool that helps automate assessing the security of large networks. It is the community-maintained successor to CrackMapExec, originally created in 2015. The tool supports multiple protocols including SMB, SSH, LDAP, WinRM, MSSQL, RDP, FTP, and others. It enables credential testing, share enumeration, command execution, and Active Directory operations across networks. Authentication results are color-coded: green for success, red for failure, and magenta for valid credentials that were rejected.
参数
- -u _USER_
- Username.
- -p _PASSWORD_
- Password.
- -H _HASH_
- NT hash for pass-the-hash.
- --shares
- Enumerate shares.
- -x _COMMAND_
- Execute command.
- --help
- Display help information.
FAQ
What is the nxc command used for?
nxc (NetExec) is a network service exploitation tool that helps automate assessing the security of large networks. It is the community-maintained successor to CrackMapExec, originally created in 2015. The tool supports multiple protocols including SMB, SSH, LDAP, WinRM, MSSQL, RDP, FTP, and others. It enables credential testing, share enumeration, command execution, and Active Directory operations across networks. Authentication results are color-coded: green for success, red for failure, and magenta for valid credentials that were rejected.
How do I run a basic nxc example?
Run `nxc smb [target] -u [user] -p [password]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -u _USER_ do in nxc?
Username.