SMB (445)

Rpcclient

Connect: rpcclient -U "" <ip> 
Useful commands
  • Query: Description
  • srvinfo: Server information.
  • enumdomains: Enumerate all domains implemented on the network.
  • querydominfo: Provides domain, server, and user information for the implemented domains.
  • netshareenumall: Enumerates all available shares (enumerates all directories).
  • netsharegetinfo <share>: Provides information about a specific share.
  • enumdomusers: Enumerates all domain users.
  • queryuser <RID>: Provides information about a specific user.
Enumerating Users with Samrdump.py
terminal
samrdump.py <ip>
Tools such as smbmap, crackmapexec, and enum4linux-ng can also be used for enumeration