auxiliary(scanner/smb/smb_ms17_010) > show options
Module options (auxiliary/scanner/smb/smb_ms17_010):
Name Current Setting Required Description
---- --------------- -------- -----------
CHECK_ARCH true no Check for architecture on vulnerable hosts
CHECK_DOPU true no Check for DOUBLEPULSAR on vulnerable hosts
CHECK_PIPE false no Check for named pipe on vulnerable hosts
NAMED_PIPES /data/data/com.termux/files/usr/opt/metasploit-framework/data/wordlists/named_pipes.txt yes List of named pipes to check
RHOSTS yes The target address range or CIDR identifier
RPORT 445 yes The SMB service port (TCP)
SMBDomain . no The Windows domain to use for authentication
SMBPass no The password for the specified username
SMBUser no The username to authenticate as
THREADS 1 yes The number of concurrent threads
msf5 auxiliary(scanner/smb/smb_ms17_010) > set rhosts 10.23.132.10
rhosts => 10.23.132.10
msf5 auxiliary(scanner/smb/smb_ms17_010) > exploit
[-] 10.23.132.10:445 - An SMB Login Error occurred while connecting to the IPC$ tree.
[] 10.23.132.10:445 - Scanned 1 of 1 hosts (100% complete)
[] Auxiliary module execution completed
You need anonymous access to IPC$ in the mode you're using it. Try supplying some creds?
How to make anonymous access??
You don't make it anonymous, the target has to have it enabled. https://support.microsoft.com/en-us/help/3034016/ipc-share-and-null-session-behavior-in-windows
Most helpful comment
You don't make it anonymous, the target has to have it enabled. https://support.microsoft.com/en-us/help/3034016/ipc-share-and-null-session-behavior-in-windows