NetExec Generate Relay Target List
Scan a subnet over SMB and write a file containing every host with SMB signing disabled. The resulting list is what you feed to ntlmrelayx.py -tf for NTLM relay attacks.
- Tool
- nxc
- Category
- Credential Attacks / NTLM Relay & Coercion
- Platform
- linux
- Requires
- no credentials
- Protocols
- SMB
Syntax
Angle-bracket tokens are placeholders — replace them with your target's values, or open this command in the app to fill them in and copy the result.
nxc smb <subnet> --gen-relay-list <relay_targets.txt>
Examples
nxc smb 10.10.10.0/24 --gen-relay-list relay_targets.txt
ntlmrelayx.py -tf relay_targets.txt -smb2support
Tags
References
Related commands
- Coercer Coerce NTLM authentication using multiple RPC protocols
- Coercer Scan (Find Coercion Vectors) Probe a target for every known authentication-coercion RPC method (PetitPotam,…
- DFSCoerce Coerce NTLM authentication using MS-DFSNM (Distributed File System)
- NetExec coerce_plus Module Unified coercion module — replaces the individual…
- NetExec mssql_coerce Module Coerce the MSSQL service account to authenticate to your relay listener via xp_dirtree /…
- NetExec PetitPotam Coercion Coerce a Windows host (typically a DC) to authenticate back to the attacker via the…
- NetExec SMB Coerce Plus Trigger NTLM authentication coercion using multiple methods (PetitPotam, PrinterBug,…
- NetExec SMB NTLMv1 Check Check if NTLMv1 authentication is accepted on remote hosts (enables downgrade attacks)